@atheory-ai/kitsune-modules-storage
v0.1.0
Published
Storage capability module for Kitsune.
Maintainers
Readme
@atheory-ai/kitsune-modules-storage
Storage capability module for Kitsune.
@atheory-ai/kitsune-modules-storage adds runtime commands for reading, writing, listing, deleting, clearing, and autosaving browser-backed or adapter-backed state.
Install
pnpm add @atheory-ai/kitsune-modules-storageUse
import { createKitRuntime } from '@atheory-ai/kitsune-core'
import { storageModule } from '@atheory-ai/kitsune-modules-storage'
const runtime = createKitRuntime()
await runtime.install(storageModule({ namespace: 'app' }))
await runtime.start()
await runtime.command({
type: 'storage.write',
payload: { key: 'draft', value: { title: 'Hello' } },
})Commands
storage.writestorage.readstorage.deletestorage.liststorage.clear
Exports
storageModuleStorageTokenmemoryStorageAdapterStorageQuotaError- Storage module, adapter, service, command, and autosave types
Documentation
See the Kitsune docs at https://kitsune.atheory.ai.
License
Apache-2.0
