What problem does it solve?
The idb skill provides a type-safe, centralized wrapper around IndexedDB for the dean-stack app, owning core primitives (openDB, IDBPDatabase, transactions, object stores, and upgrade migrations) and a hydration promise used by the app shell to boot with a consistent in-memory state. It also coordinates cross-tab synchronization via a BroadcastChannel to keep tabs and iframes in sync.
Core Features & Use Cases
- Type-safe access to IndexedDB primitives and typed object stores.
- Schema-versioned migrations with a single, observable upgrade path.
- Centralized hydration via idbHydrationPromise so components render only after the DB is ready and in-sync across tabs.
Quick Start
Import and initialize the idb wrapper in your app to open the database, apply migrations, and hydrate the in-memory state before rendering.