Zod schemas as contracts
Every section ships a Zod schema. AI generates valid content without hallucination because the contract is explicit and machine-readable.
The machine contract
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.
Every section type has a Zod schema. AI knows the fields, types, and constraints before generating content. Invalid output fails fast at build time.
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.
npx olonjs new tenant produces the same TypeScript structure every time. AI can replicate, extend, or regenerate any tenant from the spec alone.
Full tenant generation
Describe your business to an AI agent. It generates every file — capsules, schemas, wiring, page JSON, theme tokens. The OlonJS spec is deterministic enough that AI makes no assumptions. The output compiles green on the first run.
Developer velocity
Deterministic structure means AI-assisted development is faster and more reliable. Shared conventions reduce prompt ambiguity. Teams ship new tenant experiences in hours — with lower regression risk than traditional development.
Measured impact
OlonJS is built to be operated by AI agents, not just read by them.
Every section ships a Zod schema. AI generates valid content without hallucination because the contract is explicit and machine-readable.
All page content lives in plain JSON files in your repo. AI reads, mutates, and validates with no proprietary API or runtime SDK.
From business description to green TypeScript build. AI generates capsules, schemas, wiring, and data in one deterministic pass.
Try it now
npx olonjs new tenantThe 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.
Schema is the spec. The spec is enough.