Implementation-oriented specification repository for an AI-native visual editor engine.
docs/spec/README.md: overview and design principlesdocs/spec/domain-model.md: document, page, scene, node, layout, and state ownershipdocs/spec/runtime-engine.md: runtime actions, command bus, middleware, handlers, and historydocs/spec/semantic-system.md: semantic actions, compiler pipeline, and AI schemadocs/spec/plugin-system.md: plugin contracts, registry, and renderer boundariesdocs/spec/engine-api.md: public API surface for plugins, components, and the editor shelldocs/spec/component-types.md: built-in types and default plugin component definitionsdocs/spec/component-states.md: named component states, props overrides, and exclusive state groupsdocs/spec/prototype-components.md: user-definable reusable component presets and instance inheritancedocs/spec/rich-text.md: rich text model, Tiptap integration, and Markdown interopdocs/spec/editor-interaction.md: selection, transform, drag and drop, multi-page, and collaborationdocs/spec/collaboration-framework.md: Yjs transport, action sync, presence, and conflict convergencedocs/spec/collaboration-infrastructure.md: Cloudflare Workers + Durable Objects relay and persistencedocs/spec/history-and-undo-redo.md: undo/redo model, inverse-action contracts, and collaboration-history interactiondocs/spec/constraints-and-validation.md: constraint system and validation layersdocs/spec/schema-validation.md: Zod schema strategy, trust boundaries, and plugin schema contractdocs/spec/roadmap.md: phased delivery and acceptance criteriadocs/spec/document-runtime.md: document-level actions, command bus, history, and event logdocs/spec/bootstrap-and-lifecycle.md: document initialization, session lifecycle, and import/exportdocs/spec/renderer-contract.md: renderer interface, rendering modes, and fallback policiesdocs/spec/testing-and-fixtures.md: test strategy, fixture format, and per-phase test requirementsdocs/spec/persistence-and-serialization.md: storage, serialization, snapshot, and event log truncationdocs/spec/error-handling.md: error taxonomy, propagation, and recovery strategiesdocs/spec/theme-and-tokens.md: theme model, token system, and cascade rulesdocs/spec/data-binding.md: data source binding, variable resolution, and binding lifecycledocs/spec/data-interaction.md: cross-filtering, drill-down, drill-through, and filter integrationdocs/spec/implementation-stack.md: engineering toolchain, package layout, and runtime environmentdocs/spec/deployment.md: Cloudflare Pages deployment and CI pipelinedocs/adr/README.md: accepted architecture decisions and ADR backlog
Define the architecture and delivery plan for an engine that supports:
- AI page generation
- AI-driven page updates
- scene graph based editing
- multi-page dashboards
- runtime rendering
- plugin extension
- undo and redo
- collaboration
Phases 1-6 complete. Core engine, editor interactions, semantic compiler, AI integration, collaboration, and deployment infrastructure all implemented.
# Install dependencies
pnpm install
# Build all packages
pnpm build
# Run tests
pnpm test
# Lint and format
pnpm exec biome check --write
# Start editor dev server (requires packages/editor setup)
cd packages/editor && pnpm dev# Start collab relay worker locally
cd packages/collab-worker && pnpm devpnpm exec biome check— lint + format, enforced in CIpnpm -r exec tsc --noEmit— typecheck all packagespnpm -r test— run all tests- PR previews deployed to Cloudflare Pages automatically