JSON-first editor core
Page, layout, block, preset, migration, validation, and structured-data contracts are implemented as typed JSON documents.
This is the current engineering surface, not a mock roadmap. Everything listed here is already implemented in the workspace and exercised in the playground runtime.
Page, layout, block, preset, migration, validation, and structured-data contracts are implemented as typed JSON documents.
Astro routes can turn a page document into preview HTML, head tags, and JSON-LD with one render artifact contract.
D1 stores page metadata and versions, KV stores preview cache, and R2 is available for large document snapshots.
Current draft and published live versions are now separated with explicit publish and unpublish operations.
The implementation is intentionally split so the editor contract can be reused across standalone Astro apps and Cloudflare-backed projects such as to.gether.
Typed contracts, validation, presets, migrations, and structured data collection.
Astromer-flavored layout and block registry pack.
Astro preview rendering, head tags, and JSON-LD output helpers.
D1, KV, and R2 repository helpers for page versions and previews.
The demo page renders a sample document through the same pipeline used by the preview route and exposes the current API surface for storage and publishing checks.
Preview the sample page output, generated head tags, FAQ structured data, and registry-backed block rendering in one place.
GET /api/editor/healthInspect runtime bindings and migration statement availability.POST /api/editor/pagesCreate a page row and initial version document in D1.POST /api/editor/pages/[slug]/publishPromote the current version to the live published version.GET /preview/[key]Render a KV-cached preview document through the Astro pipeline.The current recommendation is to deploy the Astro-facing playground on Cloudflare Pages and reserve Workers for service extraction when the editor backend grows beyond the site boundary.
| Cloudflare Pages | Playground, docs, demo, and Astro SSR frontend. |
|---|---|
| Cloudflare Workers | Future extracted editor APIs, auth flows, and service-level runtime control. |
| D1 | Page rows, version rows, publish state, and ownership metadata. |
| KV / R2 | Preview cache, transient state, and large JSON snapshot storage. |