Architecture of emdash-cms/emdash
emdash-cms/emdash is 2,388 source files holding 16,869 symbols across 12 modules, written mainly in TypeScript, JavaScript, Shell. The largest module is packages, with 1,724 files, and 197 files are entry points into the dependency graph.
How emdash fits together
The packages/core directory is an Astro integration that provides the admin UI, APIs, authentication and CLI once it is added to astro.config.mjs. Content types are stored in the database, and each collection becomes an SQL table with typed columns that the Astro site reads with getEmDashCollection. packages/cloudflare is the adapter that maps the database, storage and plugin loader onto D1, R2 and Worker Loader, while other databases and storage backends work through portable abstractions. Plugins are built with the definePlugin API and run in sandboxed Worker isolates on Cloudflare, with first-party plugins such as forms, embeds and SEO in packages/plugins. packages/core/src/mcp/server.ts provides the built-in MCP server that lets AI tools work with the site, and the templates directory holds starter sites such as blog, marketing and portfolio.
Largest modules
- packages: 1,724 files and 302,476 lines of code
- templates: 252 files and 65,609 lines of code
- docs: 84 files and 25,258 lines of code
- infra: 83 files and 15,840 lines of code
- demos: 60 files and 11,094 lines of code
- .github: 40 files and 5,524 lines of code
- skills: 37 files and 7,554 lines of code
- apps: 36 files and 15,202 lines of code
Languages
By file count: TypeScript 1,758 files, JavaScript 46 files, Shell 4 files, Dockerfile 1 file.
More on emdash: summary and FAQ, codebase overview, code health.
Related guide: Best dependency graph tools for monorepos