Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

442 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OlonJS — Websites for Humans and AI Agents

OlonJS Logo

OlonJS

The AI-Native Content Infrastructure.
Deterministic. Sovereign. Git-Backed.

npm version license

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/

🚀 The Vision

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.

📦 Monorepo Structure (Nx + Workspaces)

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 the alpha DNA template.

🚦 Getting Started

Scaffolding a new Tenant

The only command you need to start a new project with the OlonJS DNA:

npx @olonjs/cli new tenant my-agentic-site --template alpha

Supported templates: alpha (default).

Local Monorepo Development

# Install dependencies for all packages and apps
npm install

# Run the reference alpha tenant
npm run dev

Root scripts

  • npm run dev: run tenant-alpha in dev mode
  • npm run build: build tenant-alpha
  • npm run build:all: run build for 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 source of truth

DNA is generated from tenant apps, not edited manually:

  • apps/tenant-alpha -> template alpha

Each source app owns its own dist script. Root dist:dna:all delegates to those dist scripts.

📖 Documentation Index

Detailed technical documentation is available in the docs/ directory:

Specs 1.6

Core Architecture & CLI

  • 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.

Onboarding & Governance

Ops & Maintenance

🛠️ Technical Stack

  • Runtime: React 19, TypeScript, Zod.
  • Build: Vite 6 + Tailwind CSS v4.
  • Protocol: WebMCP (Model Context Protocol) ready via deterministic JSON endpoints.

🌐 JavaScript Ecosystem Integration

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.

📄 License

Distributed under the MIT License. See LICENSE for more information.


Built for the Agentic Web by the OlonJS Team.
olonjs.io


About

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

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages