@xemahq/kernel-state-runtime
v0.4.0
Published
Runtime adapter implementing @xemahq/kernel-state-contracts over etcd. Factory createKernelState(profile) returns the etcd-backed adapter for every deployment profile; etcd is the single KernelState backend.
Readme
@xemahq/kernel-state-runtime
Concrete adapters for the kernel-state contract
Overview
Runtime adapter implementing the kernel-state contract over etcd — the single KernelState backend for every deployment shape. A factory returns the etcd-backed 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
