Skip to main content
Docs
⌘K
Deutsch
English
On this page
A total of 5 apps and 6 packages, all in one repo.
Docs
/
5. Architecture at a glance
5. Architecture at a glance
mdcms is a
pnpm monorepo
with three layers:
Cloudflare Pages
OpenRouter
PostgreSQL
Converter
(FastAPI · Python)
API Server
(Express + tsx)
Preview Iframe
(React)
Web SPA
(React + Vite)
Browser
Cloudflare Pages
OpenRouter
PostgreSQL
Converter
(FastAPI · Python)
API Server
(Express + tsx)
Preview Iframe
(React)
Web SPA
(React + Vite)
Browser
editor.tld
postMessage(RENDER_DOCS)
GET /api/.../generate
SELECT page
chatComplete (mapper)
ComponentMapping[]
prerender mermaid via JSDOM
{ html, sections }
PREVIEW_READY
Click Deploy
POST /api/.../deploy
generateStaticSite()
Upload .html files
deployment.url
{ deploymentId, url }
Cloudflare Pages
OpenRouter
PostgreSQL
Converter
(FastAPI · Python)
API Server
(Express + tsx)
Preview Iframe
(React)
Web SPA
(React + Vite)
Browser
Cloudflare Pages
OpenRouter
PostgreSQL
Converter
(FastAPI · Python)
API Server
(Express + tsx)
Preview Iframe
(React)
Web SPA
(React + Vite)
Browser
editor.tld
postMessage(RENDER_DOCS)
GET /api/.../generate
SELECT page
chatComplete (mapper)
ComponentMapping[]
prerender mermaid via JSDOM
{ html, sections }
PREVIEW_READY
Click Deploy
POST /api/.../deploy
generateStaticSite()
Upload .html files
deployment.url
{ deploymentId, url }
A total of
5 apps
and
6 packages
, all in one repo.
#