The architecture AI was waiting for.
Schema-first, JSON-native, deterministic. AI agents scaffold, operate, and evolve OlonJS tenants without custom glue.
Schema is the spec.
The spec is enough.
Give an AI agent the OlonJS spec and a business description. It generates a complete, production-ready tenant - capsules, schemas, page JSON, theme tokens, and wiring - in a single pass. We have tested this with Claude, GPT-4, and Gemini. A green TypeScript build every time.
Zod as AI contract
Every section type has a Zod schema. AI knows the fields, types, and constraints before generating content. Invalid output fails fast at build time.
JSON-native content
All page content is plain JSON in your repo. AI reads, writes, and diffs without any proprietary API or SDK. Standard tooling. Zero lock-in.
Deterministic scaffolding
npx olonjs new tenant produces the same TypeScript structure every time. AI can replicate, extend, or regenerate any tenant from the spec alone.
The scaffolded tenant is immediately operable by AI agents - structured schemas, typed data, canonical JSON endpoints. Hand it to Claude and ask it to add a pricing page.
Tested with Claude Sonnet 4, GPT-4o, and Gemini 1.5 Pro.
The architecture AI was waiting for.
Schema is the spec. The spec is enough.