idb-keyval or Strata Storage?
A very small promise-based key-value store on top of IndexedDB, with get, set, del and a few batch helpers.
Last checked 7 Nov 2026. Open idb-keyval
Who each one suits.
Choose idb-keyval if all you need is IndexedDB key-value in modern browsers and the smallest possible bundle, 805 bytes gzipped per bundlephobia on 2026-11-07.
Choose Strata Storage if IndexedDB is one of several stores you have to reach, including native ones, and you'd rather have expiry, encryption and cross-tab sync as flags than write them around a keyval store.
The stores, side by side.
“Not stated” means the pages we checked don’t mention it. It doesn’t mean the library can’t do it.
| Store | idb-keyval | Strata Storage |
|---|
| localStorage | Not stated on the pages we checked | Yes |
|---|
| IndexedDB | Yes Checked 7 Nov 2026 Source | Yes |
|---|
| sessionStorage | Not stated on the pages we checked | Yes |
|---|
| Cookies | Not stated on the pages we checked | Yes |
|---|
| URL parameters as a store | Not stated on the pages we checked | Yes |
|---|
| iOS Keychain | Not stated on the pages we checked | Yes |
|---|
| Android secure storage (Keystore-backed) | Not stated on the pages we checked | Yes |
|---|
| Native preferences (UserDefaults / SharedPreferences) | Not stated on the pages we checked | Yes |
|---|
| Web and native stores behind one API | Not stated on the pages we checked | Yes |
|---|
| No runtime dependencies | Yes Checked 7 Nov 2026 Source | Yes |
|---|
Licence, size, downloads.
| Fact | idb-keyval | Strata Storage |
|---|
| Licence | Apache-2.0 Source | MIT Source |
|---|
| npm version | 6.3.0 | 3.1.4 |
|---|
| Bundle size | 805 bytes gzipped, 2,132 minified. For version 6.3.0. Checked 7 Nov 2026 Source | 21,468 bytes gzipped, 79,645 minified. For version 3.1.4. Checked 7 Nov 2026 Source |
|---|
| Weekly downloads | 15,406,746, 31 Oct 2026 to 6 Nov 2026 Source | 486, 31 Oct 2026 to 6 Nov 2026 Source |
|---|
| Cost | Open source under the Apache-2.0 licence; no price is stated on the pages we checked Source | Free to install and use; the website takes voluntary support of an amount the supporter chooses |
|---|
Coming from idb-keyval?
The docs guide lists the calls that change and shows how to carry existing values over. Read the idb-keyval guide
All 12 libraries