AI agents: fetch the documentation index at llms.txt. Markdown versions are available by appending .md to any page URL, including this page's markdown.
@stratasync/storage-idb
IndexedDB storage adapter for offline-first client-side persistence in Strata Sync.
Implements StorageAdapter using IndexedDB. Persists model data, the outbox, sync metadata, partial indexes, and sync actions for offline-first operation and instant startup.
What it provides
createIndexedDbStorage: factory function that creates a configuredStorageAdapterinstanceIndexedDbStorageAdapter: the class implementing the fullStorageAdapterinterfaceDatabaseManager: manages a registry of workspace databases for multi-user/multi-version support- Store operations: typed functions for model rows, metadata, outbox transactions, partial indexes, and sync actions
- Schema migrations: automatic IndexedDB schema upgrades when the model schema changes
- Store name utilities: deterministic hashing for store and database names
Installation
npm install @stratasync/storage-idb@stratasync/storage-idb has no peer dependencies. It uses the idb library (^8.0.0) internally for a promise-based IndexedDB wrapper.