stable
browser-idb
IndexedDB adapter for noy-db with optional key obfuscation — the recommended browser store for PWAs and web apps.
@noy-db/to-browser-idb·pnpm add @noy-db/to-browser-idbThe recommended browser store for PWAs and web apps.
| Shape | record |
| Atomic CAS | ✓ |
| Locality | local |
| Speed | fast |
| Persistence | durable |
What it does
Stores each record as an encrypted envelope in IndexedDB. IndexedDB quota is
typically 50–80% of available disk, far beyond what localStorage's ~5 MB cap
allows, making it the default choice for browser-hosted vaults.
Notes
casAtomic: true— check and write happen inside a singlereadwriteIDB transaction per put, so writes from two tabs cannot interleave.- Record shape, one envelope per record.
- Optional key obfuscation. Factory:
toBrowserIdb(options?: BrowserIdbOptions).