Universal Runtime Kernel
URK is the public, open-source runtime kernel for interactive browser experiences. It stays standalone-first, adapter-based, controller-driven, and explicit about runtime state.
@urk/coreprovidesKernel,createKernel, explicit runtime phases, registries, service lookup, the event bus, the scheduler abstraction, and the runtime inspector.@urk/adaptersprovides the referenceaudio,pointer,input,storage,loading,three, andui-widgetsadapters.@urk/adapters/domprovides the dependency-light DOM-only adapter surface.@urk/react-urkprovides the thin React provider and hooks for consuming an existing kernel instance.@urk/next-urkprovides the thin Next App Router client-boundary wrapper on top of@urk/react-urk.@urk/examplesprovides internal, unstable runtime examples consumed by the public website.@urk/cliprovides early developer tooling for URK projects and proofs.apps/wwwprovides the public Astro/Starlight website, docs, package pages, example pages, and runtime demo shells.examples/provides the repo-only proof workspace with one folder per proof.apps/next-proofprovides the standalone Next proof app for validating@urk/next-urkin a real App Router runtime.
Use Node 22. The repo uses Yarn workspaces with nodeLinker: node-modules; Yarn cache archives are tracked as part of the repo's zero-install workflow.
corepack enable
corepack yarn install
corepack yarn build
corepack yarn build:www
corepack yarn devRun the public website:
corepack yarn workspace @urk/www devRun the private proof workspace:
corepack yarn workspace urk-examples devRun the standalone Next proof separately:
corepack yarn workspace @urk/next-proof devTry the CLI locally:
corepack yarn workspace @urk/cli build
node packages/cli/dist/index.js --help@urk/cli is developer tooling only. It helps scaffold, check, and inspect URK projects, but it
does not own runtime architecture.
Open:
http://localhost:4321/for the public websitehttp://localhost:4321/docs/for public docshttp://localhost:4321/examples/minimal-runtime/for the first live website-consumed URK runtime examplehttp://localhost:5173/for the private proof index whenurk-examplesis runninghttp://localhost:5173/audio-proof/http://localhost:5173/picking/http://localhost:5173/loading-transition/http://localhost:5173/app-shell/http://localhost:5173/react-starter/http://localhost:5173/scrollytelling/http://localhost:5173/runtime-inspector/
import { createKernel } from '@urk/core';
import {
createInputAdapter,
createLoadingAdapter,
createPointerAdapter,
createUiWidgetsAdapter,
} from '@urk/adapters/dom';
const kernel = createKernel({
services: {
'ui:host': document.querySelector('#overlay-host'),
},
adapters: [
createPointerAdapter(),
createInputAdapter(),
createLoadingAdapter(),
createUiWidgetsAdapter(),
],
});
await kernel.boot();The canonical runtime phases are boot, loading, ready, transition, paused, and error. Shutdown is disposal, not another phase.
urk/
apps/
www/
next-proof/
docs/
examples/
audio-proof/
picking/
loading-transition/
app-shell/
react-starter/
scrollytelling/
runtime-inspector/
packages/
core/
adapters/
examples/
cli/
react-urk/
next-urk/
apps/www is the public website shell. Content-first pages use Astro/Starlight; runtime-first surfaces use URK examples imported from packages/examples.
packages/ contains publishable runtime packages, publishable tooling, and the private website examples package. @urk/examples stays internal and unstable; it is consumed by apps/www and is not treated as a public npm API. examples/ and apps/next-proof are private repo proofs and are not published to npm.
@urk/cli is the URK Command-Line Interface package.
urk create <name>scaffolds a standalone URK appurk create-proof <name>scaffolds a repo-only proofurk add adapter <name>adds one supported adapterurk create controller <name>scaffolds one controllerurk checkruns static checksurk inspectruns static inspection
See packages/cli/README.md for the full command reference and boundary notes.
docs/BOUNDARY.mddocs/ARCHITECTURE.mddocs/DECISIONS.mddocs/DEFERRED.mddocs/EXAMPLES.mddocs/IMPLEMENTATION_PLAN.mddocs/PUBLIC_SITE_PLAN.mddocs/DOCUMENTATION_IA.mddocs/UI_UX_SYSTEM.mddocs/DEPLOYMENT.md
docs/07_URK/ remains draft and reference material. The top-level docs above are the canonical entry points.