Architecture Overview
System Overview
Layer Boundaries
This repository works best when four boundaries stay explicit:
generator-sdkowns platform capabilitiesgenerator-workbenchowns the official shell- the generator runtime owns business state and rendering
- the host page decides how the runtime is mounted
If a generator must support both full-page editing and embedded template scenarios, the runtime should converge to Runtime Contract instead of relying on ad-hoc host bridges.
Release Handoff
The platform-side release path is:
- local engineering finishes integration
- build artifacts are uploaded through the developer console
- the platform review flow runs
- approved generators are hosted and exposed through platform entry points
This repository mostly covers stages 1 and 2.
SDK Internal Structure
At a high level, the SDK is organized into:
core/for config, HTTP, storage, and event infrastructuremodules/for auth, cloud, history, credits, billing, and exporthelpers/for utilities such aswithBillingtypes/for public type definitions
Tech Stack
- TypeScript
- Vite library mode
- ESM + UMD + declaration outputs
- framework-agnostic API design