@gomani/data@1.2.0
npm size budget6.6 KB / 9.0 KB ✓
@gomani/data
createStore gives typed collections with optimistic writes, a persisted offline queue, and reactive items/pending signals. createSyncHandler is the server half — cursor-based pull, idempotent push, last-write-wins (pluggable). Both halves ship in one framework.
API
createStore
function
createStore<S>(config: StoreConfig<S>): Store<S>
Create an offline-first store: typed collections, optimistic writes, an offline mutation queue, and an optional encryption-at-rest codec.
createSyncHandler
function
createSyncHandler(store: ServerStore): Handler
The server side of the sync engine: web-standard push/pull with conflict-free merge.