Reactive state synchronization library. Bridges an in-memory store, IndexedDB persistence, and MQTT-based remote sync into a single Store interface. Optional React and Vue 3 bindings.
npm install @laboverwire/stitchimport { createStore } from '@laboverwire/stitch';
const store = createStore<Schema>(config, {
persistence: { dbName: 'my-app' },
remote: { serverUrl: 'wss://mqtt.example.com', getTicket: () => fetchAuthTicket() },
});
await store.initialize();
await store.replaceScope('project-abc');
const tasks = store.getSnapshot('task', 'project-abc');- Configuration —
StoreConfig,StoreOptions, scope model, typed schemas - Store API — full method reference and error handling
- React bindings — providers, hooks, runnable example
- Vue 3 bindings — providers, composables, runnable example
- Concepts — origin tags, offline queue, reconciliation, connection resilience
- Vite consumer guide — using the package via source alias from a monorepo
- Architecture — internal layer composition, data flow, invariants
- Changelog
- Releasing
examples/ contains runnable vanilla-TS, React, and Vue apps that double as reference implementations.
Apache-2.0 — see LICENSE.