EmDash: Cloudflare's CMS for Astro, explained

By

Updated

Tagged: Cloudflare

What EmDash is, how it's built, what the admin and the MCP server look like, where it runs and what it costs, and where it falls short of WordPress and Ghost.

On November 4, 2026 Wes Bos asked where to move the last WordPress site he still had on a $600 a year Bluehost account. It was his wife’s site, so it had to keep working exactly like before, plugins included. Two days later he posted the result: 307 posts, 6.7 GB of photos, 4 custom content types, 5 page templates, 15 custom fields and one semi-complicated plugin moved to EmDash, pixel perfect on the front end, with the page speed score up from 52 to 75.

I have a similar problem with a smaller site. My Ghost blog runs in Docker on a VPS, and a VPS is a machine I have to keep patched. Ghost shipped three security fixes in 2026 alone that I had to care about, one of them a stored XSS in the editor fixed in 6.67.0. Tailscale and a locked down VPS reduce the exposure, but the real fix is to stop running a server for a blog.

So I spent a day with EmDash. I scaffolded a project, read everything it generates, drove the public playground at try.emdashcms.com through its admin and its REST API, and read the docs and the source of the parts I care about. This post is what I found.

I updated it on November 16, 2026 for EmDash 1.5, and again on November 23, 2026 for EmDash 1.6. If you already know 1.5, what changed in 1.6 has the differences in one place.

What EmDash is

EmDash is an open source CMS built on Astro. Cloudflare announced it on April 1, 2026 as a developer beta, with a blog post that called it “the spiritual successor to WordPress”, and shipped 1.0 on September 28, 2026. It’s MIT licensed, the code is at github.com/emdash-cms/emdash, and in November 2026 the repo shows 14.5K stars and nearly 200 external contributors. The current release is 1.6.0, on npm since November 22, 2026. The two people behind it are Matt Kane, who built Astro’s content layer, and Matt “TK” Taylor.

The Cloudflare blog post from April 1, 2026 titled Introducing EmDash, the spiritual successor to WordPress that solves plugin security, by Matt "TK" Taylor and Matt Kane

The Cloudflare blog itself moved to EmDash before 1.0, in August 2026, which is the “customer zero” the team points at when someone asks if it holds up under traffic.

The pitch has three parts:

  • A WordPress-style admin with posts, pages, media, menus, widgets, comments, redirects, taxonomies and a visual schema builder, running inside your Astro site.
  • Plugins that can’t take over your site. Each plugin runs in a sandbox with capabilities it declares up front. Cloudflare’s post cites a Patchstack number that 96% of WordPress security issues come from plugins.
  • An agent interface that’s the same as the human one. Every site exposes an MCP server, a REST API and a CLI with the same permissions as a team member.

The tagline on emdashcms.com is “The CMS for you and your agent”. The FAQ on the same page is careful to say it works fine without any AI.

The emdashcms.com home page with the headline The CMS for you and your agent, a button to try the playground, the npm create emdash@latest command, and a preview of the admin below

How it’s put together

EmDash is an Astro integration, not a separate backend. You add emdash() to astro.config.mjs, set output: "server", and the integration mounts the admin at /_emdash/admin, the API at /_emdash/api, and a live content collection your pages query at request time.

How a request flows through an EmDash siteA visitor's request hits one Astro app. Public pages query the EmDash runtime, which reads the database and media storage. Editors, the REST API, the CLI and MCP clients write through the same runtime. Plugins run in a separate sandbox.VisitorAstro app, output:serverEditor in/_emdash/adminAgent via MCP, CLI,RESTEmDash runtimeD1 or SQLite orPostgresR2, S3 or localfilesPlugin sandbox

The parts under the runtime are adapters, and each one has a Cloudflare version and a portable version:

ConcernOn Cloudflare WorkersAnywhere Node.js runs
DatabaseD1, or PostgreSQL through HyperdriveSQLite, libSQL/Turso, PostgreSQL
MediaR2Local files, S3 or any S3-compatible bucket
SessionsKVFile based or Redis
Scheduled publishingCron TriggerA scheduler inside the Node process
Plugin sandboxDynamic WorkersA workerd child process
Collaborative editingA Durable Object per entryWebSockets inside the Node process

Postgres on Workers connects to a database you already run, like PlanetScale Postgres, through a Hyperdrive binding. Keep Hyperdrive’s query cache off on that binding, because the admin writes a row and reads it back right away. You can add a second, cached binding, and EmDash uses it only for anonymous reads of the public pages.

Rich text is stored as Portable Text, a JSON array of typed blocks, not as HTML. The editor is TipTap in the admin, and the public site renders the blocks with a <PortableText /> component. This is the single biggest difference from Ghost and WordPress when you migrate, so I’ll come back to it.

Authentication is passkeys first, with magic links, GitHub, Google and Microsoft login as alternatives, and Cloudflare Access for teams. There’s no password anywhere in the default setup. Magic links need a way to send email, and since 1.5 that can be any SMTP server, set in the admin.

Setting up a project

The scaffolder takes a template and a target. I used the blog template with the Node target, non-interactive:

npm create emdash@latest -- demo-blog --template node:blog --yes

It wrote an EMDASH_ENCRYPTION_KEY to .env, installed 633 packages in 35 seconds, and left this project:

AGENTS.md
README.md
astro.config.mjs
emdash-env.d.ts
seed/seed.json
src/components
src/layouts
src/live.config.ts
src/pages
.agents/skills/building-emdash-site
.agents/skills/creating-plugins
.agents/skills/emdash-cli
.mcp.json

The whole configuration is one file. The blog template on Node uses SQLite and a local uploads folder:

import node from '@astrojs/node'
import react from '@astrojs/react'
import { defineConfig } from 'astro/config'
import emdash, { local } from 'emdash/astro'
import { sqlite } from 'emdash/db'

export default defineConfig({
  output: 'server',
  adapter: node({ mode: 'standalone' }),
  integrations: [
    react(),
    emdash({
      database: sqlite({ url: 'file:./data.db' }),
      storage: local({
        directory: './uploads',
        baseUrl: '/_emdash/api/media/file',
      }),
    }),
  ],
})

react() is there because the admin is a React app. The public site doesn’t need React, and the template’s pages are plain .astro files.

Since 1.5 the emdash() options are type-checked. A value of the wrong type, like mcp: 'yes', stops astro dev and astro build with an error that names the option, and an option that doesn’t exist logs a warning that suggests the closest match.

src/live.config.ts registers one live collection for all content types, and the template’s AGENTS.md tells you not to touch it:

import { defineLiveCollection } from 'astro:content'
import { emdashLoader } from 'emdash/runtime'

export const collections = {
  _emdash: defineLiveCollection({ loader: emdashLoader() }),
}

The content model comes from seed/seed.json. It defines collections, fields, taxonomies, menus and widgets, and the runtime applies it once to an empty database. This is the Posts collection from the blog template:

{
  "slug": "posts",
  "label": "Posts",
  "labelSingular": "Post",
  "urlPattern": "/posts/{slug}",
  "supports": ["drafts", "revisions", "preview", "search", "seo"],
  "commentsEnabled": true,
  "fields": [
    { "slug": "title", "label": "Title", "type": "string", "required": true, "searchable": true },
    { "slug": "featured_image", "label": "Featured Image", "type": "image" },
    { "slug": "content", "label": "Content", "type": "portableText", "searchable": true },
    { "slug": "excerpt", "label": "Excerpt", "type": "text" }
  ]
}

The 1.4 template also listed scheduling in supports. Leaving it out never turned scheduling off, so 1.5 deprecates the value and the template drops it. Every collection can schedule entries unless you add no-scheduling.

A seed can now bring its own images too. { "$media": { "file": "assets/photo.jpg" } } imports a file that sits next to the seed, where before the image had to be served over HTTP. A collection’s dateField can be publishedAt, createdAt or updatedAt, which is how the content list sorts by publication date without a duplicate custom field.

After the first boot the model lives in the database, and you change it in the admin. The seed only bootstraps. Changing the seed later does nothing to an existing site, which surprised me until I read the docs.

The three things the scaffolder adds for agents are worth noticing. AGENTS.md describes the project. .agents/skills/ holds three skills (building a site, creating plugins, using the CLI) that Claude Code, Codex and Cursor pick up. And .mcp.json points at https://docs.emdashcms.com/mcp, a docs MCP server, so an agent working on the site can check the current API instead of guessing from training data.

Then npm run dev and http://localhost:4321/_emdash/admin/ opens the setup wizard, which asks for a site title, your email, and a passkey. The first person through the wizard becomes the administrator, which matters on a deployed site: finish setup right after you deploy.

A site created through the wizard on 1.5 starts in staging, with a noindex tag on every page until you choose Go live. I tried it on the playground, and it’s in the 1.5 section.

The admin

The screenshots in this section are from the public playground when it ran EmDash 1.4.0. 1.5 redesigned the dialogs and most tables, so a few details differ now, and the screens that are new are in the next section. Opening it builds a fresh site with demo content in a few seconds, and the site lasts an hour (a bar at the bottom of the admin counts down):

The playground loading screen on try.emdashcms.com: Creating your playground, with Setting up database and Loading demo content checked and Almost ready still pending

The dashboard is the usual overview, with content counts and recent activity:

The EmDash dashboard: counts of drafts, media files and users, a content panel listing Pages and Posts, and a recent activity list with sample posts

The sidebar on the left is the whole feature list: Pages, Posts, Media, Comments, Menus, Redirects, Widgets, Sections, Categories, Tags, Bylines, Content Types, Byline Schema, Users, Plugins, Import, Settings. If you’ve used WordPress, you know where everything is.

Content Types is the schema builder. Each collection shows its slug, where it came from (the seed or the dashboard) and which features are on:

The Content Types screen listing the Pages and Posts collections with their slugs, source and features, plus an empty Block types table

Opening Posts shows the system fields EmDash manages for you (id, slug, status, created, updated and published timestamps) and the custom fields from the seed. Every field is typed, and required and searchable are checkboxes here, not code:

The Posts content type editor: settings on the left with labels, description and the routable and edit locking toggles, and the fields list on the right with six system fields and the start of the custom fields

The Posts list filters by status, byline and date, and deleted entries go to a Trash tab:

The Posts list with All and Trash tabs, search, status, byline and date filters, and seven sample posts, one of them a draft called Work in Progress

The post editor is a two-column page with the rich text editor on the left and publishing, URL, ownership, bylines and taxonomies on the right:

The post editor for the published post Notes on Simplicity, with title, featured image, a rich text toolbar and the body text on the left, and a right column with the live version, publication date, slug, language, ownership and bylines

There’s a media library with folders:

The Media Library grid showing seven sample JPEG images with filenames, with search and type filters and upload buttons

And a Redirects screen that also logs 404s, so you can turn a missed URL into a redirect from the same place. When you change a published entry’s slug, EmDash adds the 301 for you:

The Redirects screen with tabs for Redirects and 404 Errors, filters, and an empty state saying No redirects yet

Settings covers site identity, social links, SEO, media usage tracking, passkeys, self-signup domains, API tokens and email:

The Settings screen with General, Social Links and SEO under Site, Media usage tracking under Media, and Security under Security Settings

The public side of the playground is the blog template, which is what the scaffolder gives you:

The public blog template home page: a My Blog heading with the tagline Thoughts on building for the web, an RSS feed link and a featured post card for Notes on Simplicity

What changed in EmDash 1.5

EmDash 1.5.0 went on npm on November 11, 2026, and the release post followed two days later. The playground runs it now, so I went back in and tried what a playground lets me try.

1.41.5
Two people on one entryThe first gets an edit lock, the second reads or takes overBoth edit at once, with coEditing: true
AutosaveReplaces the last version, even one you saved with SaveReplaces only earlier autosaves
Who a version namesIts authorEveryone who edited it since the version before
A new site and search enginesIndexable from the first deployIn staging, with noindex, until you choose Go live
EmailA provider pluginAny SMTP server, or a plugin
Admin sidebarsHidden for everyone in the configEach user also hides and reorders their own
Image outputAn <img>A <picture> with AVIF and WebP when you pass formats
WordPress file importNo menus, password-protected posts publishedMenus, password-protected posts as drafts
Sandboxed plugin subrequests10 per call30 per call
emdash() optionsNot checkedA wrong type stops the build

Editing together

Until 1.5, opening an entry locked it, and anyone else could only read it or take it over. With collaborative editing on, everyone works in the entry at the same time. You see the others’ avatars in the editor bar and the field each one is in, their cursors show in rich text, and undo reverts only your own edits.

It’s off by default in this release. You turn it on with one option, then rebuild and deploy:

emdash({
  database: sqlite({ url: 'file:./data.db' }),
  storage: local({
    directory: './uploads',
    baseUrl: '/_emdash/api/media/file',
  }),
  coEditing: true,
})

The playground keeps it off (its /_emdash/api/manifest answers "coEditing": false), so I haven’t watched two cursors in one post. This part comes from the docs and the 1.5 templates.

Each entry gets a room. The room saves everyone’s edits together two seconds after the last change, and at least every 10 seconds while people keep typing, through the same permissions, validation, hooks and revisions as any other save. What happens when two people touch the same thing depends on the field:

Two people changeWhat happens
The same rich textBoth edits are merged as they type
The same plain field, like the titleOne change wins
Bylines, references or taxonomy termsEach person’s additions and removals are kept
A block, one typing in it while the other moves, converts or deletes itThe typing is lost

Edits that can’t be merged are saved as a recovery revision. It sits in Revisions with the other versions, never becomes the draft or the published version, and you restore it like any other.

If your connection drops you keep typing, and after 5 seconds the Save button reads Offline. The edits merge when you reconnect. Until then they exist only in that browser tab, so don’t close it.

Changes that come in another way, through the REST API, MCP, the CLI or a plugin, show up in open editors within a second. That’s the case I care about, because on a site with an MCP server the other editor is often an agent.

On Node, rooms run inside the site’s own process and keep their state in the site database. On Cloudflare each room is a Durable Object, and I show the binding in where to run it. The editor goes back to the edit lock in collections without revisions, for entries larger than 1 MB, and in browsers that can’t open a WebSocket.

Revisions keep every save

In 1.4 autosave replaced the previous version even when you had saved it yourself with Save. Now autosave only replaces earlier autosaves.

I checked it on the playground. I changed the title of the sample post Notes on Simplicity and pressed Save, then changed it again ten seconds later and saved again. Both versions are in the Revisions panel, above the one the playground was seeded with:

The post editor in EmDash 1.5 with the title Notes on Simplicity, revised again, and the Revisions panel on the right listing three versions: 5:10 PM as the current version and 5:09 PM, both by Playground User, and 5:06 PM marked Published with an unknown author

Each version also names everyone who edited it since the version before. The revisions API returns that as editedBy. This is the 5:09 PM version as GET /_emdash/api/content/posts/01M7JHRTQRMJ55AMT57TEQ8FHW/revisions returned it, without its data:

{
  "id": "01M7JHYJMMV13V5J8AAPCF8PHV",
  "collection": "posts",
  "entryId": "01M7JHRTQRMJ55AMT57TEQ8FHW",
  "authorId": "playground-admin",
  "createdAt": "2026-11-16 16:09:55",
  "author": { "id": "playground-admin", "name": "Playground User" },
  "editedBy": [{ "id": "playground-admin", "name": "Playground User" }]
}

With a team, the publish confirmation names everyone who edited the entry since it was last published. A new endpoint, GET /_emdash/api/content/{collection}/{id}/revisions/editors, lists everyone who edited an entry, and for this post it returned the Playground User alone. Versions saved before the upgrade name only their author.

A new site starts in staging

A site created through the setup wizard now starts in staging. Every page that renders <EmDashHead> gets a noindex, nofollow robots tag, and the admin header shows a Staging badge. Visitors can still open every page, because staging only asks search engines not to index the site.

The playground starts live, so I switched it to staging through the settings API, from the browser console of the admin:

await fetch('/_emdash/api/settings', {
  method: 'POST',
  headers: { 'Content-Type': 'application/json' },
  body: JSON.stringify({ staging: true }),
}).then((r) => r.json())

It answered with the new settings:

{
  "success": true,
  "data": {
    "staging": true,
    "tagline": "Thoughts on building for the web",
    "title": "My Blog"
  }
}

The home page had this in its <head> right after:

<meta name="robots" content="noindex, nofollow">

Sending { "staging": false } removed the tag. In the admin the same switch is the Go live button in Settings → General, and the MCP settings_update tool flips it too:

The General Settings screen in EmDash 1.5: a Site Status card reading Staging, Hidden from search engines, with a blue Go live button, an orange Staging badge in the admin header, and the Site Identity fields below

A site that existed before the upgrade stays live, and a template that doesn’t render <EmDashHead> doesn’t get the tag. This is what you want during a migration, when the half-imported copy shouldn’t be indexed next to the old site.

Email through any SMTP server

EmDash sends email for magic links, invites and account recovery. Until 1.5 that needed a provider plugin. Now Settings → Email has a provider dropdown with SMTP in it, and choosing it shows the server fields:

The Email Settings screen in EmDash 1.5 with SMTP chosen as the provider and fields for the SMTP host, port 587, STARTTLS security, username, password, sender name, sender email and reply-to email, above a warning that no email provider is configured yet

Port 465 uses implicit TLS, port 587 uses STARTTLS, and port 25 is refused. Saving in the admin needs EMDASH_ENCRYPTION_KEY, because the password is stored encrypted in the database. You can also set EMAIL_SMTP_HOST, EMAIL_SMTP_USER and EMAIL_SMTP_PASS in the environment (with wrangler secret put on Cloudflare), and the settings saved in the admin win over those.

It works on Node and on Workers with the nodejs_compat flag, which the Cloudflare template already sets. It sends sign-in links, invites and notices, so it doesn’t replace a newsletter service.

Your own sidebars

Settings → Sidebars lets each user hide and reorder the entries of the admin navigation, and the sections of the editor’s settings sidebar. I turned off Widgets and Sections, and they left the navigation on the left right away:

The Sidebars settings screen in EmDash 1.5 with Navigation and Editor sidebar tabs, a list of every admin page with a toggle each, Widgets and Sections switched off, and the navigation on the left no longer showing them

The layout is saved to your account, so it follows you to another browser and doesn’t change anyone else’s. Dashboard always stays first. admin.hiddenNavItems in the config still hides entries for everyone.

The smaller changes

  • Much of the admin now fits a phone. Dialogs open as bottom sheets, tables fold away their less important columns, and the editor toolbar becomes a grid.
  • blocks fields have a new editor where every block starts closed, showing its type and a one-line summary, so you scan the page before opening one. The blog template has no blocks field, so it’s not on the playground.
  • The admin sends a small thumbnail with each upload, and EmDash makes the blurhash and dominant-color placeholders from it. imagePlaceholders: false turns them off on a site with a tight CPU budget.
  • The admin is complete in Ukrainian and Japanese.

Upgrading from 1.4

One command updates the packages:

npx upgrade-emdash@latest

On Cloudflare, @emdash-cms/cloudflare now requires the exact same version as emdash. Update the two together, or npm stops with an ERESOLVE error.

The release adds six database migrations, 092 to 097, and on most sites they run on their own. Two kinds of site need a planned upgrade:

  • Sites with sandboxed plugins that store KV values, registry plugins included. Don’t do a rolling upgrade. Back up the database, stop every instance, upgrade emdash together with the sandbox runner, run emdash migrate from the new build, then start the site.
  • Sites whose plugins declare storage uniqueIndexes. Migration 095 rebuilds them, and an old instance still serving traffic can put the old constraints back, so this needs a maintenance window.

Once a site has run these migrations, an earlier EmDash version can’t use site transfer to export from it or import into it. And if you imported a WordPress site before 1.5, its password-protected posts were published for anyone to read, so unpublish the ones that should stay private.

What changed in EmDash 1.6

EmDash 1.6.0 went on npm on November 22, 2026, and the release post came out the next day. The playground runs 1.6.0 (0917f1b), so I went back in to try the new caching and editor changes.

1.51.6
Images on a route cacheNot cached automaticallyCached for a year, purged on replace or delete
Missing entry 404 pagesRendered on every requestCached up to 60 seconds, purged on publish
Editor settings panelAlways open on desktop, distraction-free modeHide settings toggle, centers the editor
Nested admin pagesBack button inside the pageBreadcrumb trail in the admin header
Scheduled publishingUp to a minute lateOn the minute (70s wait window on Cloudflare)
Trusted plugin panels on a draftSaved entry onlyeditorDraft.get() and editorDraft.patch()
Media Used in trackingImage fields and blocksAlso counts /_emdash/api/media/file/ links
Confirmation dialogsNo default focus, no unpublish confirmationEnter confirms safe actions, cancels permanent ones
Admin languagesIncluded Ukrainian and JapaneseAdds Italian, Lithuanian and Vietnamese

One-year image caching and cached 404s

On sites with a compatible route-cache provider like cacheCloudflare(), EmDash now caches original images from /_emdash/api/media/file/ and resized variants from /_image for a year. Both share the tag emdash:media:<storageKey>, so replacing an image or deleting it through the Media Library, the media picker, the MCP media_delete tool or ctx.media.delete() purges the original and every resized copy at once.

There’s nothing to turn on. Audio, video, partial responses and file URLs with query strings stay out of the cache, and Astro’s memoryCache() skips media caching so large files don’t crowd out page cache entries. Editing or deleting a file directly in R2 or S3 bypasses EmDash and won’t purge the cache.

Resized variant caching works with Astro’s stock sharp service on Node and @astrojs/cloudflare/image-service-workerd on Cloudflare. Both now redirect /_image URLs for EmDash media with a 301 when the query string has unknown parameters, repeated parameters, a different order or unencoded values. I tested a mangled URL against the playground:

curl -I "https://try.emdashcms.com/_image?w=400&href=/_emdash/api/media/file/playground-v1-case-for-static.jpg&bogus=1"

It returned HTTP/2 301 with the normalized path:

location: /_image?href=%2F_emdash%2Fapi%2Fmedia%2Ffile%2Fplayground-v1-case-for-static.jpg&w=400

URLs built by <Image> and getImage() already use that form, so normal pages don’t redirect.

Missing entries can be cached too. Before 1.6, a request for an unknown slug that rewrote to /404 rendered on every hit. Now getEmDashEntry() puts the collection tag in cacheHint even when it finds no entry, and a route cache can hold the 404 for up to 60 seconds with no stale-while-revalidate window. When you publish that slug, EmDash purges the collection tag and clears the cached 404.

For that to work, pass cacheHint to Astro.cache.set() before you rewrite to /404. I updated the snippet in Content, as your pages see it below. Cached 404s don’t reach the origin, so the admin’s 404 log won’t count them. To keep 404s uncached, call Astro.cache.set(false) in the 404 page’s frontmatter.

More room in the editor, breadcrumbs and safer dialogs

On screens 1024px and wider, the post editor bar has a toggle at the far right to hide the right-hand settings panel. Clicking it centers the title, featured image and body across the full editor area, and each browser remembers the choice. Distraction-free mode and its shortcut are gone. The panel still opens on its own if you edit image settings or hit a validation error inside it:

The post editor in EmDash 1.6 with the settings panel hidden: Title, Featured Image and Content centered in the page, Publish changes with its new globe icon, and the panel toggle at the far right of the editor bar

Nested admin pages like Settings › General, Menus › Main navigation and media folders now show a breadcrumb trail in the admin header instead of back buttons inside the page body. Leaving a media folder also keeps your scroll position:

The General Settings screen in EmDash 1.6 showing the Settings › General breadcrumb trail in the top header and EmDash v1.6.0 in the bottom-left footer

Confirmation dialogs now focus a button when they open so pressing Enter behaves predictably. For reversible actions like Publish now, Move to Trash or Restore this version, Enter confirms. For permanent ones like Delete Permanently, publishing over a schedule or restoring a version over unsaved edits, Enter cancels. Unpublish in the editor and bulk Publish or Set to draft in content lists ask for confirmation now too.

Scheduled posts on the minute

Scheduled entries used to publish up to a minute late because they waited for the next scheduler tick. On Cloudflare, createScheduledHandler() now keeps a Cron Trigger invocation open for up to 70 seconds when entries are due soon and publishes each one at its exact minute. Waiting uses no CPU time, though overlapping runs can appear in Workers logs. A custom Worker calling runScheduledTasks() itself opts in by passing { publishUpcomingWithinMs: 70 * 1000 }.

On Node.js, the scheduler runs at the top of every minute, so entries scheduled from the admin go live on the minute. A schedule with seconds, which only the API or MCP can set, can still run up to a minute late on Node.

Plugin panels can edit the open draft

Native plugin panels in the content editor now receive editorDraft next to the saved entry. editorDraft.get() reads the values open in the form, including unsaved edits, the slug, and the SEO title and meta description, together with a revision token. editorDraft.patch(operations, { expectedRevision }) writes new values into the form without saving the entry.

If you changed a field while a translation or excerpt plugin was running, the editor refuses the patch so your typing isn’t overwritten. Patched values sit in the form for you to review and save, and in collections with revisions the first save after a patch keeps the draft revision it replaced. Sandboxed plugin panels got a fix here too: patching a rich text field now updates the editor instead of reverting on the next keystroke.

The Used in tab on a media item now finds places that link to a file by its /_emdash/api/media/file/ URL. That covers links in rich text, href and src attributes in HTML blocks, and string or URL fields, including inside blocks and repeaters.

I tested it on the playground by adding a rich text link to /_emdash/api/media/file/playground-v1-case-for-static.jpg inside Notes on Simplicity through the content API, then reading GET /_emdash/api/media/01M1A5H7P5ENTD9V05G0PZX6CZ/usage. The response picked up the link ("referenceType": "link", "fieldPath": "content[5].markDefs[0].href"), and opening case-for-static.jpg in the Media Library listed both posts:

The Used in tab of Media details for case-for-static.jpg in EmDash 1.6 listing two posts: The Case for Static (Featured Image) and Notes on Simplicity (Content, from a direct file link)

Existing entries aren’t re-indexed automatically after an upgrade, so you run the repair command once (see Upgrading from 1.5 below).

The smaller changes

  • Italian, Lithuanian and Vietnamese now cover the full admin, including system emails.
  • The Users page shows the last sign-in time for magic links, OAuth, AT Protocol and external providers, not just passkeys.
  • search() normalizes scores from 0 to 1 per collection and ranks title matches ahead of body matches. On PostgreSQL and Hyperdrive, built-in search now returns 503 SEARCH_UNAVAILABLE and the editor’s link picker suggests pasting a URL instead of retrying.
  • Exact redirect rules now apply to paths with file extensions, like /old/report.pdf.
  • Rich text read and written back through the CLI, MCP or EmDashClient escapes leading # and 1. markers so literal text doesn’t turn into headings or lists.
  • On Cloudflare, installing, updating or removing a plugin updates plugin routes on warm isolates without a redeploy. On Node, sandboxed plugins exit when the host process stops (including PID 1 in Docker) and are stopped if they run past their wall-time limit.

Upgrading from 1.5

Update with the same command:

npx upgrade-emdash@latest

The release adds one automatic migration, 098_user_last_login, which adds last_login_at to users. Three things need attention after you update:

  • Re-index media links once. Run npx emdash media repair-usage --all --url https://blog.flaviocopes.com (or call the media_usage_repair MCP tool with { "scope": "all" }) so Used in counts /_emdash/api/media/file/ links in existing entries.
  • Update packages together. The admin, @emdash-cms/blocks and the official plugins now require @cloudflare/[email protected]. On Durable Object SQL deployments, update emdash and @emdash-cms/cloudflare in the same deploy.
  • Check your 404s and local SQLite scripts. Move Astro.cache.set(cacheHint) above the !entry rewrite in detail pages so publishing purges cached 404s. On Node, EmDash now refuses to open a SQLite database when data.db is missing but data.db-wal or data.db-shm still exists, so scripts that reset a local database need to delete all three files.

Content, as your pages see it

On the Astro side there are two functions. getEmDashCollection lists entries, with filters, ordering and cursor pagination:

---
import { getEmDashCollection } from 'emdash'

const cursor = Astro.url.searchParams.get('cursor') ?? undefined
const { entries: posts, nextCursor, error } = await getEmDashCollection('posts', {
  limit: 10,
  cursor,
  orderBy: { published_at: 'desc' },
})
if (error) return new Response('Unable to load posts', { status: 500 })
---
<ul>{posts.map(post => <li><a href={`/posts/${post.id}`}>{post.data.title}</a></li>)}</ul>
{nextCursor && <a href={`/posts?cursor=${encodeURIComponent(nextCursor)}`}>Older posts</a>}

getEmDashEntry fetches one, and PortableText and Image from emdash/ui render it:

---
import { decodeSlug, getEmDashEntry } from 'emdash'
import { Image, PortableText } from 'emdash/ui'

const slug = decodeSlug(Astro.params.slug)
const { entry: post, error, cacheHint } = await getEmDashEntry('posts', slug)
if (error) return new Response('Unable to load post', { status: 500 })
if (Astro.cache?.enabled) Astro.cache.set(cacheHint)
if (!post) return Astro.rewrite('/404')
---
<article>
  {post.data.featured_image && <Image image={post.data.featured_image} priority />}
  <h1>{post.data.title}</h1>
  <PortableText value={post.data.content} />
</article>

Notice that post.id is the slug, and the database ID is post.data.id. The template’s AGENTS.md calls this out because agents get it wrong.

In 1.5 Image takes a formats prop. List the formats in order of preference, and it renders a <picture> with a fallback <img>:

<Image image={post.data.featured_image} width={1200} height={675} formats={['avif', 'webp']} />

This applies to the images the site’s own image service optimizes. Images from an external media provider keep their URLs.

The types are generated. During development the integration writes emdash-env.d.ts every time the schema changes, so post.data.title is a string and post.data.featured_image is an image object, and the editor complains when you query a field that doesn’t exist. For a deployed site, npx emdash types fetches the schema and writes the same file.

This is what a stored entry looks like, read from the playground’s API. I cut the content to the first block:

{
  "id": "01M6RRZ5SQ3W7E64QNW34TMCNA",
  "type": "posts",
  "slug": "notes-on-simplicity",
  "status": "published",
  "data": {
    "title": "Notes on Simplicity",
    "featured_image": {
      "provider": "local",
      "id": "01M1A5H7P50MKJJ39ZGZH0K78M",
      "alt": "Geometric pattern carved into white paper",
      "filename": "notes-on-simplicity.jpg",
      "mimeType": "image/jpeg",
      "width": 1200,
      "height": 800
    },
    "content": [
      {
        "_type": "block",
        "style": "normal",
        "children": [{ "_type": "span", "text": "Every piece of software starts simple." }]
      }
    ],
    "excerpt": "Simplicity isn't the absence of complexity."
  },
  "publishedAt": "2026-11-06T15:52:20.023Z",
  "locale": "en",
  "seo": { "title": null, "description": null, "image": null, "canonical": null, "noIndex": false }
}

Headings are blocks with style: "h2", lists are blocks with listItem and level, code is a code block with a language, and images are image blocks with an asset. Anything you have as HTML has to be converted into this. The WordPress importer does it for Gutenberg and classic HTML, and since 1.5 a classic-editor post keeps its paragraphs, where it used to arrive as one long paragraph. For Ghost there’s a community converter, and the steps are in migrating a Ghost blog to EmDash.

Agents, MCP, CLI

Every EmDash site is an MCP server at /_emdash/api/mcp. It’s on by default, speaks stateless streamable HTTP, and takes a bearer token: either an OAuth flow with PKCE for interactive clients, a device flow for CLIs, or a personal access token you create under Settings → API Tokens. Session cookies don’t work on it on purpose.

The API Tokens settings page with a Create Token button and an empty list saying No API tokens yet

The server exposes 72 tools, grouped the way the admin is grouped:

GroupToolsWhat they cover
Content16Create, update, publish, schedule, trash, restore, compare, duplicate, translations
Schema13Collections, fields and block types
Taxonomies10Definitions and terms
Site transfer8Export and import whole sites, admin only
Media7Upload, metadata, delete, usage repair
Menus7Menus and their items
Bylines6Author credits
Revisions, settings, search5Restore a revision, read or update settings, search

In 1.5 revision_list also returns who edited each version, and settings_update takes a site in and out of staging.

A token has scopes, like content:write or media:read, and the user’s role is checked separately, so a scope can never grant more than the user has. The docs recommend clearing every scope the client doesn’t need when you approve the OAuth prompt, and asking the agent for drafts rather than published posts. Both sound like advice written after someone’s agent published something.

Adding it to Codex is two commands:

codex mcp add emdash-site --url https://blog.flaviocopes.com/_emdash/api/mcp
codex mcp login emdash-site

In Claude you add the same URL as a remote connector and approve the scopes in the browser.

The CLI wraps the same API. npx emdash login runs the device flow, then the commands mirror the admin:

npx emdash content list posts --status published
npx emdash content create posts --data '{"title": "Hello"}' --draft
npx emdash media upload ./cover.jpg --alt "The cover"
npx emdash schema add-field posts reading_time --type integer
npx emdash site export --output blog.emdash

On localhost the CLI authenticates automatically, so you can script against a dev server without a token.

1.5 adds emdash import wordpress, which converts a WordPress export file into JSON files on disk. The first run analyzes the export and writes a plan you can review, and the second converts the content:

npx emdash import wordpress export.xml
npx emdash import wordpress export.xml --execute

It works on local files and never connects to a site. Getting content into a site is still the job of the importer in the admin.

I used the REST API directly from the playground, because that’s what a migration script does. Creating a draft, then publishing it with a date in the past, is two calls:

curl -X POST https://try.emdashcms.com/_emdash/api/content/posts \
  -H "Authorization: Bearer $EMDASH_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"slug": "hello-from-ghost", "status": "draft", "data": {"title": "Hello from Ghost"}}'

curl -X POST https://try.emdashcms.com/_emdash/api/content/posts/01M6RS34H769EAF3PKEDJEF8S1/publish \
  -H "Authorization: Bearer $EMDASH_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"publishedAt": "2021-03-15T09:30:00.000Z"}'

The second call answered with the entry as "status": "published" and "publishedAt": "2021-03-15T09:30:00.000Z". Listing posts by publishedAt ascending put it first, ahead of the sample posts dated today, and /posts/hello-from-ghost returned 200. Backdating needs the content:publish_any permission, which an admin token has. This is the one API detail that makes a migration keep its archive in order.

Plugins and the sandbox

This is the part Cloudflare leads with. A WordPress plugin is PHP with the same access to the database and filesystem as WordPress itself. An EmDash plugin declares what it needs in a manifest, and runs where it can’t get anything else:

export default definePlugin({
  id: 'notify-on-publish',
  capabilities: ['read:content', 'email:send'],
  hooks: {
    'content:afterSave': async ({ entry }, ctx) => {
      if (entry.status === 'published') await ctx.email.send({ ... })
    },
  },
})

On Cloudflare each plugin is a Dynamic Worker, loaded through a Worker Loader binding. On Node it runs inside a workerd child process, which is the same open source runtime Workers use (I wrote about workerd separately). The limits are fixed:

LimitValueEnforced on CloudflareEnforced on Node
CPU time per call50 msyesno
Subrequests per call30yesno
Memory128 MBper isolate, not per pluginno
Wall time per call30 syesyes

The subrequest limit was 10 until 1.5. Settings reads, storage operations and HTTP requests through the plugin bridge all count toward it.

A plugin can’t read environment variables, the filesystem, another plugin’s storage, or any host it didn’t name. When a hook times out, EmDash logs it and finishes the request without that plugin. When the sandbox runner is missing, sandboxed plugins don’t load and the rest of the site keeps working.

Two things cost you here. Dynamic Workers need the Workers Paid plan, $5 a month, and the Cloudflare templates ship with the loader binding commented out so a new site deploys on the free plan. And plugins come in two formats: sandboxed ones, which can only draw admin UI through a JSON schema called Block Kit, and native ones, which run in-process with full access and can ship React admin pages and Astro components. The Ghost importer I’ll use is a native plugin, because it has to register itself into EmDash’s import pipeline.

The Plugins screen on a fresh site: No plugins configured, with a link to the documentation

The registry at plugins.emdashcms.com is built on the AT Protocol, the same thing under Bluesky. Anyone can run a compatible store, and the moderation labeler is optional. One comparison I read counted 98 plugins from 52 publishers on October 21, 2026. WordPress.org has over 60,000. The “recently updated” list the day I looked had SEO checkers, a content approval workflow, a Bluesky cross-poster, lead delivery to HubSpot and Zapier, broken link checks, and a few CSV tools. No newsletter and no analytics.

For commerce there’s Otta, from Urumi, a team with a WooCommerce background that Cloudflare mentioned in the 1.0 post. It’s an MIT licensed sandboxed plugin, @urumi.ai/otta-plugin, at version 0.1.0 on npm since October 20, 2026. The admin has products, orders, inventory, discounts, shipping, and rules for what AI agents can browse and buy.

Each release is signed by its publisher and stored in the publisher’s own AT Protocol account, not in the catalog. Before installing, EmDash checks the checksum, package name, version, requested permissions and build provenance against that signed record, and that the downloaded bundle matches it. The install dialog shows “Signed release verified” next to the permissions the plugin asks for.

The plugins.emdashcms.com home page with the headline Make EmDash your own, a search box for name, keyword or publisher, and popular tags like ecommerce, mcp, seo, csv, images and review

Comments are built in, with moderation in the admin. x402 payments are built in too: a page can answer 402 Payment Required with payment instructions, and an agent that supports x402 pays per request and retries. There’s a bot-only mode that charges only requests Cloudflare scores as bots. I’d want to see who pays before I put a post behind it.

Where to run it and what it costs

The reference deployment is Cloudflare Workers. wrangler.jsonc from the Cloudflare template is short:

{
  "name": "my-blog",
  "main": "./src/worker.ts",
  "compatibility_date": "2026-11-06",
  "compatibility_flags": ["nodejs_compat"],
  "d1_databases": [{ "binding": "DB", "database_name": "my-blog" }],
  "r2_buckets": [{ "binding": "MEDIA", "bucket_name": "my-blog-media" }],
  "durable_objects": {
    "bindings": [{ "name": "EMDASH_ROOMS", "class_name": "EmDashRoom" }]
  },
  "exports": {
    "EmDashRoom": { "type": "durable-object", "storage": "sqlite" }
  },
  "triggers": { "crons": ["* * * * *"] }
}

The durable_objects and exports entries are new in the 1.5 template. EMDASH_ROOMS is the binding for the collaborative editing rooms, one Durable Object per entry being edited, and the template’s src/worker.ts exports the EmDashRoom and EmDashRoomSite classes next to PluginBridge. A site created before 1.5 needs both added by hand before coEditing: true does anything. Without the binding the editor keeps the edit lock.

npm run deploy creates the D1 database, the R2 bucket and a KV namespace for sessions on the first run. The cron trigger is what publishes scheduled posts (since 1.6 it waits up to 70 seconds for posts due in the next minute so they go live on time) and runs backups, so don’t delete it. Passkeys are bound to the hostname they were created on, so either run the setup wizard on the final domain or set EMDASH_SITE_URL before the first visit.

For a blog, all of it fits in Cloudflare’s free tiers. These are the numbers from Cloudflare’s pricing pages in November 2026:

ServiceFreePaid, $5 a month
Workers requests100,000 a day10 million a month, then $0.30 per million
D1 rows read5 million a day25 billion a month
D1 rows written100,000 a day50 million a month
D1 storage5 GB5 GB, then $0.75 per GB
R2 storage10 GB a month$0.015 per GB
R2 egressfreefree
Durable Objects requests100,000 a day1 million a month, then $0.15 per million
Durable Objects duration13,000 GB-s a day400,000 GB-s a month, then $12.50 per million GB-s
Image transformations5,000 unique a month$0.50 per 1,000
Dynamic Workers for pluginsnot availableincluded

The Durable Objects rows only matter with collaborative editing on. The rooms use the SQLite storage backend, which is the kind of Durable Object the free plan allows, so editing together doesn’t force the paid plan.

The 5,000 transformations are the one to watch with a big media library. Past that, new resizes fail with error 9422 while cached ones keep serving. With cacheCloudflare() on, 1.6 caches originals and resized /_image variants for a year and purges them when replaced or deleted, which cuts repeat reads and transforms. The D1 free tier also has a 7-day Time Travel window for restores, 30 days on Paid.

On Node you build with npm run build and run node ./dist/server/entry.mjs with the environment variables in the process, because the standalone entry doesn’t read .env. The docs have a Dockerfile and a compose file with a volume for the SQLite database and uploads. Two things to know: the scheduler only runs while a Node process is alive, so scale-to-zero hosting breaks scheduled publishing, and FTS5 has to be compiled into Node’s SQLite for search to work. Builds without FTS5 (and PostgreSQL or Hyperdrive setups since 1.6) answer search requests with 503 SEARCH_UNAVAILABLE.

With collaborative editing on, a reverse proxy in front of Node has to forward WebSocket upgrades on /_emdash/api/content/{collection}/{id}/room. EmDash pings each room socket every 30 seconds, so the proxy’s idle timeout has to be longer than that (nginx waits 60 seconds by default). Sites running node:cluster or PM2 in cluster mode keep the edit lock.

The portable path is real. A .emdash site package exported from one deployment imports into any other, SQLite to D1 or D1 to Postgres, with everything except users, sessions, tokens and plugin secrets. But Matt Mullenweg’s criticism that the plugin sandbox “only works on Cloudflare” was true at launch and is half true now: on Node you get a sandbox through workerd, with the wall time limit enforced and the CPU and memory limits not.

Compared with WordPress and Ghost

WordPressGhostEmDash
LanguagePHPNode.jsTypeScript, Astro
Content storageHTML in MySQLLexical JSON and HTML in MySQL or SQLitePortable Text in D1, SQLite or Postgres
ThemePHP templatesHandlebarsYour Astro pages
Serverless hostingnonoyes, Cloudflare Workers
Plugin isolationnoneno plugin system, integrations via webhookssandbox with declared capabilities
Newsletter and memberspluginsbuilt in, with Stripenone
Commentsbuilt inbuilt in, members onlybuilt in
Two people in one postpost lock, one editor at a timeno lock, the second save is rejectedreal-time editing, off by default
Agent accessREST API, MCP via pluginsAdmin APIMCP, REST and CLI built in
ImportersWordPress, many via pluginsWordPress, Substack, MediumWordPress; Ghost via a community plugin
Plugins available60,000+not applicableabout 100
LicenseGPLMITMIT

The row that decides it for most people is the ecosystem. If your site depends on WooCommerce, a membership plugin or a form builder with ten years of edge cases, there’s nothing mature to move to yet. Otta is the first commerce plugin, and it’s at 0.1.0. Wes Bos converted his one complicated plugin with the agent skills EmDash ships, and that’s the answer for everyone else too. You rebuild it, and the skills make rebuilding cheaper than it used to be.

WordPress planned real-time collaboration for 7.0 and cut it twelve days before the May 2026 release, so EmDash has it in a release before WordPress does.

For a Ghost site the gap is newsletters. Ghost’s members, paid tiers and email sending have no EmDash equivalent. The SMTP provider in 1.5 sends sign-in links and invites, not campaigns. If you send a newsletter from Ghost, you need a separate service before you move.

What I’d watch out for

  • Schema changes touch data. Deleting a field drops its column, deleting a collection drops its table, and the admin can’t change a field’s type except between string, text and slug. Back up before you reshape a model.
  • Two passkeys, minimum. Lose your only passkey on a site with no email provider configured and the docs say to reset authentication through the database. With 1.5 an SMTP server in Settings → Email is enough to get magic links, so set one up on the first day.
  • The encryption key is yours to keep. EMDASH_ENCRYPTION_KEY encrypts plugin secrets and isn’t in the database. Restore a backup without it and those settings are gone.
  • JSON backups don’t restore. The built-in backup is for inspection. A real recovery point is D1 Time Travel, a SQLite .backup, or pg_dump, plus a copy of the bucket.
  • Trailing slashes. Astro’s trailingSlash: "always" also 404s EmDash’s own routes. Use ignore and redirect the old form yourself, and don’t redirect .well-known, which is where OAuth and MCP discovery live.
  • Collaborative editing is opt-in. It’s off by default in 1.5, a site created before 1.5 on Cloudflare needs the Durable Object binding first, and a reverse proxy in front of Node has to forward WebSockets. Until all of that is in place the editor keeps the edit lock.
  • Upgrades can need a manual step. 1.5 moved plugin KV data in a non-rolling migration, and 1.6 needs npx emdash media repair-usage --all once after deploying so Used in indexes direct file links in old entries. Read the upgrade notes of each release before you deploy it.
  • Cached 404s skip the 404 log. With route caching on, 1.6 caches missing entry pages for up to 60 seconds, so repeat hits don’t reach the origin or appear in Redirects → 404 Errors. Call Astro.cache.set(false) in /404 if you rely on that log.
  • The admin is React, the site isn’t. Fine for me, but Joost de Valk’s and Jamie Marsland’s reviews both note the admin sits in an uncanny valley between WordPress and something new, and the editor is a rich text editor, not a block builder.

Where I land

1.5 and 1.6 don’t change my answer, they just clean up the rough edges I’d hit on a real site. On a one-person blog I’d use staging, the SMTP provider, the revision history that keeps my saves, one-year image caching with automatic purge on replace, and hiding the editor sidebar while writing. Collaborative editing is for sites with a team, and I’d wait for it to be on by default before I rely on it.

For a new content site on Astro, EmDash is what I’d reach for now. The admin is good, the typed schema is the right idea, the MCP server means I can write and publish from Claude Code with the same permissions I’d give a contributor, and running it on Workers removes the server I’d otherwise have to patch.

For my Ghost blog it’s a yes, because that blog has no members and no newsletter, and every post, tag and image can be moved with a script. That script is in migrating a Ghost blog to EmDash.

For a WordPress site that leans on plugins, it’s a maybe that depends on how many of them you can rebuild. Wes Bos did it in two days for 307 posts and one real plugin. Count yours first. The checklist is migrating a WordPress blog to EmDash.

Want me to talk about your product? You can sponsor this site.

Related posts about cloudflare: