Skip to content
SharpWrite
Docs menu

How SharpWrite works

Ten minutes with this page makes every other page easier. It explains the words SharpWrite uses and how the pieces fit together.

The big picture

SharpWrite is a content management system (CMS). You write and organise content in SharpWrite. Your own website reads that content through a plain JSON API and shows it to visitors. SharpWrite never decides how your site looks; it only holds the words, images and settings.

The flow is always the same:

  1. You model your content once: for example a "Posts" type with a title, an excerpt and a body.
  2. You write entries in the editor. An entry starts as a draft and stays private until you press Publish.
  3. Your website asks the API for published entries and renders them.
  4. When you publish, SharpWrite can ping a webhook so your site rebuilds with the new content.

You can use SharpWrite in two ways. Cloud is hosted by us, with a 7-day free trial and a monthly or yearly plan. Self-host is a one-time license: you download the software and run it on your own Cloudflare account. The editor and the API are the same in both.

The words we use

WordWhat it means
WorkspaceYour account. It holds the plan, the billing, the team and the sites. A person has one workspace of their own and can be invited into others.
SiteA project inside a workspace, for example "Marketing blog". Content, images, API keys, webhooks and previews belong to one site.
Content typeA blueprint: a name, an API id and a list of fields. "Posts" is a type.
FieldOne piece of a type: a short text, a rich-text body, a number, a date, a yes/no, or a choice list.
EntryOne piece of content of a type: one post, one product. It has a slug, a status and the field values.
SlugThe part of an entry's address after its type, such as hello-world.
Draft and publishedA draft is only visible inside SharpWrite and to preview tokens. A published entry is served by the public API.
PageA page you build from widgets with the page builder, without code. Pages are served by the same API under the type site-pages.
API keyA secret that lets one site's content be read by your website or an AI agent. Looks like sw_live_....
Preview tokenA second secret that lets your own site read drafts too, for private previews. Looks like sw_prev_....
WebhookAn address SharpWrite calls when content is published, changed, unpublished or deleted.
MCPThe standard way for AI tools such as Claude to talk to an app. SharpWrite has an MCP endpoint.

What belongs to what

  • A user signs in with an emailed link (or with Google on Cloud).
  • A workspace has an Owner, and can have Admins, Editors and Viewers. Everyone in a workspace can reach every site of that workspace.
  • A site owns its content types, entries, pages, media, API keys, MCP keys, webhooks and preview tokens. Nothing is shared between sites, and nothing is ever shared between workspaces.

Drafts, publishing and your live site

Publishing is a deliberate step. Saving never changes your live site. When you press Publish, the entry becomes visible in the public API within about 30 seconds (the API response may be cached by a CDN for that long).

Your website decides when to show new content:

  • A static site (Astro, Next.js with static export) needs a rebuild. Add a webhook that triggers your host's deploy hook.
  • A server-rendered site reads the API on each request and can show new content right away.

You can also preview drafts on your real site with a preview token. See Connect your site.

Content types and entries

A content type is the shape of your content. You can start from a template (Blog posts, Changelog, Pages, Products, Newsletter issues) or build one field by field. The editor form for an entry is generated from the type, and the API returns entries with the same fields.

Two things are deliberately fixed after you create them, because live websites depend on them:

  • A type's API id (for example posts) cannot change.
  • Entry slugs are unique inside a type.

Everything else can be renamed and reordered later. See Content types.

Reading content from your site

Your site calls the public API with an API key as a bearer token:

GET https://app.sharpwritecms.com/api/public/v1/posts
Authorization: Bearer sw_live_YOUR_KEY

The response is JSON with the published entries, newest first. Rich text arrives as safe HTML. A key belongs to one site and can only read that site. Keep keys on your server or in a build step, never in browser code. The full details are in the API reference, and a machine-readable description is available as OpenAPI.

AI in SharpWrite

There are two separate ideas, and they are easy to mix up:

  • Built-in AI tools (Cloud only): rewrite and improve text in the editor, and generate images, within monthly allowances for your plan. Self-host has no built-in AI.
  • AI agents over MCP (Cloud and Self-host): your own AI tool, such as Claude, connects to your site's MCP endpoint. It can read your content and save drafts. It can never publish or delete. A person always reviews and publishes. See AI agents (MCP).

Cloud and Self-host side by side

CloudSelf-host
Who runs itWe doYou, on your own Cloudflare account
PayMonthly or yearly (Starter $39, Pro $59 a month)Once (Single $149, Agency $349)
Free trial7 days, no cardRefundable within 7 days
Sites1 on Starter, 5 on ProAs many as you like
Sign-inEmailed link or GoogleEmailed link
Built-in AI toolsYes, with monthly allowancesNo (use MCP with your own AI)
Your data livesIn our databaseIn your own D1 database and R2 bucket
UpdatesAlways the newest versionOne year of updates included; it keeps working afterwards
If a plan or license endsEditing pauses; reading and the API keep workingEditing pauses; reading and the API keep working

Whatever happens with billing, your live website keeps getting its content. That is a design rule, not a courtesy.

Where to go next

Using an AI assistant? This page as plain Markdown, or the llms.txt index of every page.