Skip to content

Quick Start

Kitsune applications have five cooperating parts: an owned environment, domain capabilities, presentation components, declared integration and a surface owner. Start with a complete supported recipe, then adapt product policy. Native custom elements, DOM properties/events, ES modules and inherited CSS remain the foundation.

This page describes unpublished 0.2.0-preview.0. Registry 0.1.0 lacks current contracts; use exact matching candidate archives. Prepare matching current local runtime/UI archives as described in the repository release guide, or select an explicitly compatible published release. Equal version labels alone do not make local and registry bytes interchangeable.

For the tested pnpm 10.33.2 archive profile, first merge this package-manager pin and override into the consumer project’s package.json so UI/React also resolve the local runtime instead of querying the registry:

{
"packageManager": "pnpm@10.33.2",
"pnpm": {
"overrides": {
"@atheory-ai/kitsune": "file:./archives/atheory-ai-kitsune-0.2.0-preview.0.tgz"
}
}
}

This archive-only override is unnecessary after installing the verified exact registry release. Keep it while testing these local bytes.

NeedRecommended starting point
One static application surface with custom capabilitiesRuntime package skillex/examples/multi-capability/README.md: typed implementations, native form/result components, optional telemetry and owned static mounting
Navigation, shared layouts and replaceable panelsRuntime package skillex/references/recommended-application-path.md, then UI package skillex/references/composed-workspace.md
Collection/detail, recoverable form or operation panelUI package’s kitsune-patterns skill and its corresponding executable recipe
A custom trusted lazy panelRuntime package skillex/examples/managed-extension/README.md: canonical inert metadata, explicit loaders and existing managed ownership
A component delivered without a buildUI component skill: browser-ready JavaScript, exact host admission and prepared dependencies; untrusted code needs a separately qualified isolated host

The multi-capability starter ships as source inside the runtime archive. Follow its README to copy the example and adapt consumer-package.json to your prepared dependencies and toolchain. Its archive paths are illustrative; it is not a published create command. Keep formatter/config/tests and production/qualification separation. A managed workspace uses the existing presentation session rather than the static starter’s mounting slot.

After copying the typed starter, its actual application entry is:

import { createWorkbench } from './application.ts'
import { presentation } from './presentation.ts'
import { readConfig } from './config.ts'
import './style.css'
presentation.register() // Explicit; importing the component classes registers nothing.
const root = document.querySelector<HTMLElement>('#app')!
const application = createWorkbench(root, readConfig(location.search))
try {
await application.owner.ready
} catch (error) {
document.querySelector('#startup')!.textContent =
`The workbench could not start: ${String(error)}`
}
// The embedding host awaits this before releasing its application resources.
export const dispose = () => application.owner.dispose()
<p id="startup" role="status">Starting…</p>
<main id="app"></main>
<script type="module" src="/src/main.ts"></script>

The root chooses owners and adapters; it contains no product handler or persistence transaction. Read contracts.ts, domain/capabilities.ts, composition.ts, presentation.ts, environment.ts and application.ts by responsibility. Components emit semantic native events; createKitComposition declares consumers and silent query bindings. Domain implementations enforce product validation and outcomes.

For managed panels, omitted composition boundaries produce the default root; an explicit empty map produces none. The packaged managed recipe derives only the sole default-root placement. Raw preparation and named/nested boundaries require exact explicit references. Routing, state and typed tool results select presentation; they do not issue domain commands or grant execution authority.

Install runtime/UI directly in the consumer project, adapt runtime skillex/assets/AGENTS.md, and establish its dependency boundary:

{ "Version": 4, "Rules": [{ "Scope": "**", "DependencyBoundary": ".", "Skills": [] }] }
Terminal window
skillex refresh --mode prod
skillex query --json --path src/application.ts --search "application architecture"
skillex read --ref <ref-from-query>

The installed architecture/runtime and UI component/pattern skills supply versioned public guidance. Private product/backend policy stays with the application. Installation enables discovery; application AGENTS establishes when to read it. The React wrapper is optional and uses the same runtime contracts.

Run the example’s read-only formatting, strict types and native tests. Persistent apps additionally need actual reload, conflict and original-receipt tests without command replay; graph validity alone is insufficient. Application architecture explains those boundaries. The lower-level first loop and Quill tutorial remain supported introductions to shell/boundary/module mechanics.