@xemahq/kernel-state-runtime
v0.1.5
Published
Runtime adapters implementing @xemahq/kernel-state-contracts. Phase D.3: SQLite (dev + single-instance, file-backed, in-process pub-sub watches) + Etcd (cluster — STUB pending Phase D follow-up). Factory createKernelState(profile) returns the right adapte
Readme
@xemahq/kernel-state-runtime
Concrete adapters for the kernel-state contract
Overview
Runtime adapters implementing the kernel-state contract. It ships a file-backed SQLite adapter for development and single-instance use, with in-process pub-sub watches, alongside an etcd adapter for clustered deployments. A factory selects the right adapter for the given profile so callers depend on the contract, not a specific backend.
When to use it
- Use it to obtain a concrete kernel-state implementation chosen by deployment profile.
Installation
pnpm add @xemahq/kernel-state-runtimeUsage
import { createKernelState } from '@xemahq/kernel-state-runtime';
const state = createKernelState({ profile });
await state.put(key, value);License
Apache-2.0 © Xema — xema.dev
