The AI-Native Content Infrastructure.
Deterministic. Sovereign. Git-Backed.
OlonJS is an open-source JavaScript infrastructure designed to bridge the gap between human-centric websites and AI agents. It introduces a deterministic machine contract for web content: every page is natively available as a typed JSON endpoint (/{slug}.json), making websites reliably readable and operable by AI agents while preserving a high-end human UI.
This repository contains the OlonJS stack:
packages/core: runtime engine (@olonjs/core)packages/cli: tenant generator (@olonjs/cli)packages/stack: dependency manifest (@olonjs/stack)apps/tenant-alpha: reference DNA template source
Use this file as entrypoint. Canonical docs are under docs/
Websites are currently built for humans (HTML-heavy, fragmented). AI agents struggle with scraping and non-deterministic structures. OlonJS standardizes the web-to-agent interface through:
- WebMCP Readiness: Native integration with the Model Context Protocol. OlonJS sites act as MCP Servers, exposing content as Resources and sections as Tools for AI-orchestrated browsers (Chrome WebMCP).
- Predictable Endpoints: Canonical JSON sidecars for every route. No scraping, just pure data.
- Schema-Driven Contracts: Zod-validated content structures defined by the tenant. The schema is the API.
- Sovereign Architecture: A core JavaScript engine that orchestrates the runtime state and deterministic rendering of polymorphic web content.
This repository manages the entire OlonJS ecosystem:
packages/core(@olonjs/core): The runtime engine. Handles routing, state orchestration, and the Visual Studio (ICE).packages/cli(@olonjs/cli): The primary entry point for developers. Scaffolds new tenants by projecting DNA templates.packages/stack(@olonjs/stack): Version manifest package to keep dependency policy aligned.apps/tenant-alpha: Source of truth for thealphaDNA template.
The only command you need to start a new project with the OlonJS DNA:
npx @olonjs/cli new tenant my-agentic-site --template alphaSupported templates: alpha (default).
# Install dependencies for all packages and apps
npm install
# Run the reference alpha tenant
npm run dev
npm run dev: runtenant-alphain dev modenpm run build: buildtenant-alphanpm run build:all: runbuildfor all workspaces (if script exists)npm run check:templates: validate CLI template assets (alpha)npm run dist:dna:all: regenerate DNA via tenant SOT (tenant-alpha)npm run release: legacy release flow (scripts/release.js)npm run release:enterprise: gated release flow (check:templates+dist:dna:all+release)
DNA is generated from tenant apps, not edited manually:
apps/tenant-alpha-> templatealpha
Each source app owns its own dist script.
Root dist:dna:all delegates to those dist scripts.
Detailed technical documentation is available in the docs/ directory:
- Architecture: Monorepo layout, package responsibilities, and DNA regeneration flow.
- CLI Contract: Command surface, template resolution, and generation pipeline.
- Templates Governance: Rules for managing DNA source of truth and conformance checks.
- WebMCP (Browser API): The Agent-Native browser API for Zero-UI mutations and programmatic exploration.
- Client Onboarding: Guide for graphics and data development.
- Governance Path: Full CMS integration (Studio, ICE, Form Factory, IDAC).
- Publishing & Release: Operational source of truth for NPM releases and DNA sync.
- Compatibility Cutoff: Decommissioning plan for legacy
jsonpagesresidues.
- Runtime: React 19, TypeScript, Zod.
- Build: Vite 6 + Tailwind CSS v4.
- Protocol: WebMCP (Model Context Protocol) ready via deterministic JSON endpoints.
OlonJS is a pure JavaScript/TypeScript ecosystem project. It leverages runtime polymorphism and Zod-driven schemas to redefine how content is served and manipulated by AI. By providing a standard library for machine-readable websites, OlonJS contributes to the evolution of the JavaScript ecosystem in the age of AI.
Distributed under the MIT License. See LICENSE for more information.
Built for the Agentic Web by the OlonJS Team.
olonjs.io