← Back to archive

Repo of the Day

emdash-cms/emdash: EmDash is a full-stack TypeScript CMS based on Astro; the spiritual successor to WordPress

Published: Nov 18, 2026

Open repository ↗

EmDash is a full-stack TypeScript CMS based on Astro; the spiritual successor to WordPress - emdash-cms/emdash

Summary

EmDash is a full-stack TypeScript CMS built as an Astro integration, providing an admin panel, REST API, authentication, media management, structured content, and a plugin system. It brings WordPress-style content editing to Astro projects, with SQL-backed collections, Portable Text content, and plugins restricted by declared capabilities.

What it is useful for

EmDash is useful for content-driven Astro sites where editors need to manage posts, pages, custom collections, taxonomies, drafts, schedules, and media without changing application code. Collections defined through the admin UI receive real SQL tables, and engineers can generate TypeScript types from the live schema with npx emdash types.

The included Blog, Marketing, and Portfolio templates provide practical starting points for different site types. For example, the Blog template includes categories, tags, search, RSS, and dark/light modes, while the Portfolio template provides project grids, tag filtering, and case-study pages.

It also fits extension-heavy projects. The definePlugin() API supports lifecycle hooks, settings, custom blocks, API routes, and dashboard widgets. A plugin can request only specific capabilities—for example, content:read and email:send—and run in a sandboxed Worker isolate on Cloudflare or a workerd child process on Node.js. The README’s notification example sends an email to editors after a post is published.

Portable Text provides a structured alternative to storing rich text as HTML. It is also relevant for WordPress migrations: the project documents importing posts, pages, media, and taxonomies from WXR exports, the WordPress REST API, or WordPress.com.

How engineers can use it

Create a new EmDash project with the documented scaffolder:

npm create emdash@latest

For an existing Astro project, the README shows adding EmDash with a Cloudflare D1 database:

import emdash from "emdash/astro";
import { d1 } from "emdash/db";

export default defineConfig({
  integrations: [emdash({ database: d1() })],
});

After defining collections, generate types and query them through Astro Live Collections:

npx emdash types
---
import { getEmDashCollection } from "emdash";
const { entries: posts } = await getEmDashCollection("posts");
---

{posts.map((post) => <article>{post.data.title}</article>)}

For local repository development, the README uses pnpm install, pnpm build, and pnpm --filter emdash-demo dev; the demo runs with Node.js and SQLite, with the admin at http://localhost:4321/_emdash/admin.

Cloudflare is described as the best-supported platform, though Node.js with SQLite is also available. The core packages are stable and follow semantic versioning, but first-party plugins and plugin tooling remain on 0.x and may change between minor releases.