@atheory-ai/kitsune-core
v0.1.0
Published
Kitsune runtime primitives for events, commands, modules, providers, and boundaries.
Downloads
99
Maintainers
Readme
@atheory-ai/kitsune-core
Framework-neutral runtime primitives for Kitsune applications.
@atheory-ai/kitsune-core provides the event, command, module, provider, boundary, diagnostic, and metadata primitives that the rest of Kitsune builds on. It has no runtime dependencies and can be used from web components, React, vanilla browser code, or tests.
Install
pnpm add @atheory-ai/kitsune-coreUse
import { createKitRuntime, defineKitModule } from '@atheory-ai/kitsune-core'
const runtime = createKitRuntime()
await runtime.install(defineKitModule({
name: 'example',
commands: {
'example.run': () => ({ ok: true }),
},
}))
await runtime.start()Exports
createKitRuntimedefineKitModulecreateProviderTokennormalizeMetadatareadDomMetadataparseMetadata- Runtime, event, command, module, provider, boundary, metadata, and diagnostic types
Documentation
See the Kitsune docs at https://kitsune.atheory.ai.
License
Apache-2.0
