Packages
| Package | Version | Role |
|---|---|---|
@atheory-ai/kitsune-core | 0.x | Runtime — events, commands, modules, providers, boundaries, diagnostics, metadata normalization |
@atheory-ai/kitsune-app | 0.x | <kit-shell>, <kit-boundary>, the metadata bridge |
@atheory-ai/kitsune-ui | 0.x | UI custom elements + the modules that drive them |
@atheory-ai/kitsune-theme | 0.x | Token-driven CSS, theme switching helpers |
@atheory-ai/kitsune-react | 0.x | React provider, boundary, and hooks |
@atheory-ai/kitsune-dev | 0.x | Debug module + diagnostic helpers |
@atheory-ai/kitsune-modules-analytics | 0.x | Analytics capability module |
@atheory-ai/kitsune-modules-audit | 0.x | Audit trail capability module |
@atheory-ai/kitsune-modules-observability | 0.x | Observability capability module |
@atheory-ai/kitsune-modules-storage | 0.x | Storage capability module |
@atheory-ai/kitsune-modules-permissions | 0.x | Permission-checking capability module |
@atheory-ai/kitsune-modules-flags | 0.x | Feature flag capability module |
@atheory-ai/kitsune-modules-validation | 0.x | Native form validation capability module |
@atheory-ai/kitsune-modules-search | 0.x | In-memory search capability module |
@atheory-ai/kitsune-modules-sync | 0.x | Runtime event sync capability module |
@atheory-ai/kitsune-modules-command-palette | 0.x | Command palette registry capability module |
All packages are published under @atheory-ai. They follow ^0.x until the runtime API is committed to v1.
@atheory-ai/kitsune-core
Section titled “@atheory-ai/kitsune-core”The framework-neutral runtime.
pnpm add @atheory-ai/kitsune-coreExports
createKitRuntime()→KitRuntimedefineKitModule(module)→KitModulecreateProviderToken<T>(description)→ProviderToken<T>normalizeMetadata(input)→NormalizedMetadata- Types:
KitRuntime,KitModule,KitEvent,KitEventInput,KitCommandInput,CommandResult,KitContext,Entity,BoundaryHandle,BoundaryOptions,ProviderToken,KitDiagnostic,EventHandler,CommandHandler,DiagnosticHandler,Unsubscribe
Dependencies — none. Plain TypeScript.
@atheory-ai/kitsune-app
Section titled “@atheory-ai/kitsune-app”Custom elements for the application skeleton.
pnpm add @atheory-ai/kitsune-appRegisters
<kit-shell>— application root, owns the runtime<kit-boundary>— context zone with click delegation<kit-route>— route context zone that emitsroute.changed
Exports
KitShellElement,KitBoundaryElement,KitRouteElement— the classesformDraftModule(options?)— applies loaded draft values into matching form controlsparseMetadata(element, context)— read DOM metadatareadDomMetadata(element, context)— raw read without normalization- Types:
RouteContext
Dependencies — @atheory-ai/kitsune-core, lit.
@atheory-ai/kitsune-ui
Section titled “@atheory-ai/kitsune-ui”Web-native UI components and the modules that activate them.
pnpm add @atheory-ai/kitsune-uiRegisters
<kit-button>— slot-bearing native button<kit-card>— card with header / default / footer slots<kit-disclosure>— native details/summary disclosure wrapper<kit-dialog>— wrapper around native<dialog><kit-field>— labelled form-field container<kit-form>— light-DOM form wrapper with composed submit/reset events<kit-input>— form-associated custom input<kit-select>— form-associated native select wrapper<kit-tabs>— ARIA tablist and tabpanel coordinator<kit-table>— semantic table styling wrapper<kit-toast-region>— fixed-position toast container witharia-live
Exports
- Element classes:
KitButtonElement,KitCardElement,KitDisclosureElement,KitDialogElement,KitFieldElement,KitFormElement,KitInputElement,KitSelectElement,KitTabsElement,KitTableElement,KitToastRegionElement - Modules:
dialogModule(options?),notificationModule(options?) - Events:
KitDisclosureToggleEvent,KitFieldChangedEvent,KitFormSubmitEvent,KitFormResetEvent,KitTabsChangeEvent - Types:
KitDisclosureToggleDetail,KitFieldChangedDetail,KitFormSubmitDetail,KitInputType,KitTabsChangeDetail,Toast,ToastTone,DialogModuleOptions,NotificationModuleOptions
Dependencies — @atheory-ai/kitsune-core, lit.
@atheory-ai/kitsune-theme
Section titled “@atheory-ai/kitsune-theme”CSS tokens and theme switching.
pnpm add @atheory-ai/kitsune-themeExports
defaultTheme: KitTheme— the built-in token setdefineTheme(theme)— type-safe theme constructorthemeToCss(theme, selector?)— render a theme to a CSS stringapplyTheme(theme, root?)— set custom properties on a root element- Types:
KitTheme,KitThemeTokens
Dependencies — none.
@atheory-ai/kitsune-react
Section titled “@atheory-ai/kitsune-react”React adapter — same runtime, React idioms.
pnpm add @atheory-ai/kitsune-react react react-domExports
<KitShellProvider>— wraps a tree, installs modules, creates runtime<KitBoundary>— semantic context zone with click delegationuseKitRuntime(),useKitContext(),useKitEmit(),useKitCommand()readReactDomMetadata(element, context)— for advanced cases- Types:
KitShellProviderProps,KitBoundaryProps
Dependencies — @atheory-ai/kitsune-core, react (peer), react-dom (peer).
@atheory-ai/kitsune-dev
Section titled “@atheory-ai/kitsune-dev”Development-time diagnostics.
pnpm add -D @atheory-ai/kitsune-devExports
debugModule(options?)→ a module that logs every event and diagnosticdevtoolsModule(options?)→ a module that records a runtime timeline for in-app inspectiondefineKitDevtoolsElement(registry?)→ registers<kit-devtools>bindKitDevtoolsElement(element, runtime)→ connects an element to an installed devtools moduleDevtoolsToken→ provider token for the devtools serviceconsoleInspector(options?)→ console-backed inspector modulediagnosticsRecorder(options?)→ bounded diagnostics recorder moduleformatDiagnostic(diagnostic)→ string formatter- Types:
DebugModuleOptions,DevtoolsModuleOptions,DevtoolsService,DevtoolsTimelineEntry,KitDevtoolsElement,InspectorOptions,RecorderOptions,DiagnosticsRecorder
Dependencies — @atheory-ai/kitsune-core.
@atheory-ai/kitsune-modules-storage
Section titled “@atheory-ai/kitsune-modules-storage”Storage capability module.
pnpm add @atheory-ai/kitsune-modules-storageExports
storageModule(options?)→ a module that handles storage commandsStorageToken→ provider token for the storage servicememoryStorageAdapter(seed?)→ test/SSR-friendly adapterStorageQuotaError- Types:
StorageModuleOptions,StorageAutosaveOptions,StorageAdapter,StorageService,StorageBackend,StorageCommandPayload,StorageCommandResult
Commands
storage.writestorage.readstorage.deletestorage.liststorage.clear
Autosave
When storageModule({ autosave: true }) is installed, the module observes field.changed, writes a draft, and clears the draft on form.submit or form.reset.
It also observes form.connected and emits storage.draft_loaded when a saved draft exists.
Dependencies — @atheory-ai/kitsune-core.
@atheory-ai/kitsune-modules-analytics
Section titled “@atheory-ai/kitsune-modules-analytics”Analytics capability module.
pnpm add @atheory-ai/kitsune-modules-analyticsExports
analyticsModule(options?)→ a module that queues, tracks, and flushes analytics eventsAnalyticsToken→ provider token for the analytics servicememoryAnalyticsTransport()→ test/SSR-friendly transport- Types:
AnalyticsModuleOptions,AnalyticsAutoTrackOptions,AnalyticsEvent,AnalyticsTransport,AnalyticsService,AnalyticsTrackInput,AnalyticsTrackResult,AnalyticsFlushResult
Commands
analytics.trackanalytics.flush
Auto Tracking
When analyticsModule({ autoTrack: true }) is installed, the module observes runtime events and queues product events while ignoring internal analytics.*, storage.*, and runtime.* events.
Dependencies — @atheory-ai/kitsune-core.
@atheory-ai/kitsune-modules-audit
Section titled “@atheory-ai/kitsune-modules-audit”Audit trail capability module.
pnpm add @atheory-ai/kitsune-modules-auditExports
auditModule(options?)→ a module that records and queries audit entriesAuditToken→ provider token for the audit servicememoryAuditStore(seed?)→ test/SSR-friendly store- Types:
AuditModuleOptions,AuditAutoRecordOptions,AuditEntry,AuditActor,AuditStore,AuditService,AuditRecordInput,AuditRecordResult,AuditQuery
Commands
audit.recordaudit.queryaudit.clear
Auto Recording
When auditModule({ autoRecord: true }) is installed, the module observes runtime events and records append-only audit entries while ignoring internal audit.*, analytics.*, observability.*, storage.*, and runtime.* events.
Dependencies — @atheory-ai/kitsune-core.
@atheory-ai/kitsune-modules-observability
Section titled “@atheory-ai/kitsune-modules-observability”Observability capability module.
pnpm add @atheory-ai/kitsune-modules-observabilityExports
observabilityModule(options?)→ a module that captures issues, breadcrumbs, and selected diagnosticsObservabilityToken→ provider token for the observability servicememoryObservabilityTransport()→ test/SSR-friendly transport- Types:
ObservabilityModuleOptions,ObservabilityIssue,ObservabilityBreadcrumb,ObservabilityTransport,ObservabilityService,ObservabilityCaptureInput,ObservabilityCaptureResult,ObservabilityFlushResult,ObservabilitySeverity
Commands
observability.captureobservability.breadcrumbobservability.flush
Diagnostics
When observabilityModule({ captureDiagnostics: true }) is installed, the module captures command.failed, event.handler_failed, and module.failed diagnostics as issues.
Dependencies — @atheory-ai/kitsune-core.
@atheory-ai/kitsune-modules-permissions
Section titled “@atheory-ai/kitsune-modules-permissions”Permission-checking capability module.
pnpm add @atheory-ai/kitsune-modules-permissionsExports
permissionsModule(options?)→ a module that evaluates permission rulesPermissionsToken→ provider token for the permission service- Types:
PermissionsModuleOptions,PermissionInput,PermissionResult,PermissionRule,PermissionService
Commands
permission.check
Dependencies — @atheory-ai/kitsune-core.
@atheory-ai/kitsune-modules-flags
Section titled “@atheory-ai/kitsune-modules-flags”Feature flag capability module.
pnpm add @atheory-ai/kitsune-modules-flagsExports
flagsModule(options?)→ a module that evaluates local or provider-backed flagsFlagsToken→ provider token for the flag service- Types:
FlagsModuleOptions,FlagProvider,FlagService,FlagEvaluateInput,FlagEvaluateResult,FlagValue
Commands
flag.evaluateflag.set
Dependencies — @atheory-ai/kitsune-core.
@atheory-ai/kitsune-modules-validation
Section titled “@atheory-ai/kitsune-modules-validation”Native form validation capability module.
pnpm add @atheory-ai/kitsune-modules-validationExports
validationModule()→ a module that validates nativeHTMLFormElementinstancesValidationToken→ provider token for the validation service- Types:
ValidationInput,ValidationIssue,ValidationResult,ValidationService
Commands
form.validate
Dependencies — @atheory-ai/kitsune-core.
@atheory-ai/kitsune-modules-search
Section titled “@atheory-ai/kitsune-modules-search”In-memory search capability module.
pnpm add @atheory-ai/kitsune-modules-searchExports
searchModule()→ a module that indexes and queries documentsSearchToken→ provider token for the search service- Types:
SearchDocument,SearchQuery,SearchResult,SearchService
Commands
search.indexsearch.removesearch.query
Dependencies — @atheory-ai/kitsune-core.
@atheory-ai/kitsune-modules-sync
Section titled “@atheory-ai/kitsune-modules-sync”Runtime event sync capability module.
pnpm add @atheory-ai/kitsune-modules-syncExports
syncModule(options?)→ a module that queues selected runtime events and flushes them to a transportSyncToken→ provider token for the sync servicememorySyncTransport()→ test/SSR-friendly transport- Types:
SyncModuleOptions,SyncRecord,SyncService,SyncTransport,MemorySyncTransport
Commands
sync.flush
Event Sync
The module observes runtime events, skips internal module/runtime events, and supports include or exclude filters.
Dependencies — @atheory-ai/kitsune-core.
@atheory-ai/kitsune-modules-command-palette
Section titled “@atheory-ai/kitsune-modules-command-palette”Command palette registry capability module.
pnpm add @atheory-ai/kitsune-modules-command-paletteExports
commandPaletteModule(options?)→ a module that registers, searches, and runs command actionsCommandPaletteToken→ provider token for the command palette service- Types:
CommandPaletteAction,CommandPaletteModuleOptions,CommandPaletteService
Commands
command_palette.registercommand_palette.searchcommand_palette.run
Dependencies — @atheory-ai/kitsune-core.
Acceptance fixtures
Section titled “Acceptance fixtures”Two private packages are used by the workspace for golden-test acceptance:
@atheory-ai/kitsune-acceptance— native browser fixtures@atheory-ai/kitsune-react-acceptance— React fixtures
These aren’t published; they exercise the published packages end-to-end.
What about a meta-package?
Section titled “What about a meta-package?”There is no @atheory-ai/kitsune meta-package. Pick the layers you need.
The most common starter set:
pnpm add @atheory-ai/kitsune-core @atheory-ai/kitsune-app @atheory-ai/kitsune-uipnpm add -D @atheory-ai/kitsune-devAdd @atheory-ai/kitsune-theme if you want the default token set, and @atheory-ai/kitsune-react if you’re integrating with React.