The machine contract

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.

Contract

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.

Open

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.

Repeatable

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.

Full tenant generation

From brief to build.

In one pass.

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.

  • Claude, GPT-4, Gemini — all tested and verified
  • System prompt + golden reference = complete tenant
  • Zod validates every section — invalid AI output fails at build, not in prod
  • Olon deploys the generated tenant, AI maintains it
AI generation
#Input: business description
>"SaaS for indie developers..."
#AI generates tenant DNA
→ 9 capsules ✓
→ schemas.ts ✓ types.ts ✓
→ 5 pages ✓ theme.json ✓
$npm run build
✓ Built in 2.4s — 0 TypeScript errors

Developer velocity

Hours, not weeks.

Every time.

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

< 5min
From npx to deployed tenant
0
TypeScript errors on green build
1 spec
Context needed for AI generation
Tenants from the same contract

Native AI INTEGRATION

OlonJS is built to be operated by AI agents, not just read by them.

Try it now

Terminal
$npx olonjs new tenant

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.