emdash-cms / emdash-build
git clone https://github.com/emdash-cms/emdash-build.git
Chat-based site builder for EmDash CMS — describe a site, watch an AI agent build it in a Cloudflare Sandbox
—
stars, 24h
—
stars, 7 days
+80
stars, 30 days · #2,815
80
★ total
6
forks · 5 open issues
Star history starts 2026-10-20; the chart appears after the second daily snapshot.
LanguageTypeScript
LicenseMIT
Created2026-09-28 (22d ago)
Last push6d ago
Watchers1
OwnerOrganization
Links
- GitHub: github.com/emdash-cms/emdash-build
- Homepage: https://build.emdashcms.com/
- Releases · Issues · Hacker News mentions
README excerpt
EmDash Build An open source AI site builder for editable EmDash sites, built on Cloudflare. Try the demo · Self-host EmDash Build · Architecture · EmDash documentation > [!IMPORTANT] > EmDash Build is an alpha reference application for hosting providers, website builders, and platforms. The hosted demo has site publishing disabled. ## Editable sites from a brief EmDash Build turns a site brief into an editable EmDash website. The agent designs a content model, fills it through EmDash's Model Context Protocol (MCP) server, and writes the Astro pages and components that render it. The result includes server-rendered pages, structured content, media storage, and the EmDash admin interface. The generated site remains useful after the first build. Editors can update content in EmDash, add and reorder page sections, schedule posts, and return to the agent for larger content or design changes. ## Capabilities - **Structured clarification**: Ask focused questions when a brief leaves important decisions open. - **Agent-designed content models**: Create collections for reusable entities and structured blocks for editor-reorderable page sections. - **Editable Astro sites**: Generate typed Astro components while keeping ordinary content in EmDash. - **Live preview and repair**: Render the site in a private Builder preview, validate the generated project, inspect the result, and repair failures in the same agent loop. - **EmDash content workflows**: Edit text and media, add or duplicate sections, reorder blocks, and manage content from the admin interface. - **Durable project history**: Save source and local CMS state as Git commits in Cloudflare Artifacts and restore a project after its Sandbox sleeps. - **Provider-controlled publishing**: Package validated, static site releases for Workers for Platforms when the operator explicitly enables and configures publishing. ## Project architecture Each project receives a Cloudflare Sandbox with a prepared EmDash, Astro, and Tailwind project. A `BuilderAgent` Durable Object owns the conversation and model-and-tool loop. The agent creates the schema and content through EmDash MCP tools, writes the public frontend in the Sandbox, and validates the rendered site before completing a turn. Cloudflare Artifacts stores the project as Git history. If the Sandbox sleeps, EmDash Build restores the source and local CMS state into a new container and restarts the preview. [code] ## Agent workflow 1. **Understand**: Read the brief and ask structured questions when a material decision is missing. 2. **Model**: Decide which content belongs in collections and which narrative pages need structured blocks. 3. **Build**: Create the EmDash schema, refresh generated types, and write typed Astro renderers. 4. **Populate**: Add representative content and media through EmDash MCP tools. 5. **Verify**: Type-check the project, render public routes, inspect the preview, and repair failures. 6. **Save**: Commit the coherent project s