# idb

Promise-based wrapper around the browser's IndexedDB API that mirrors its methods with small usability changes.


Source: https://findsoftware.frbit.cloud/idb/
Last reviewed: 2026-11-16
Listed since: 2026-11-16

## Record

### Links

- repository: https://github.com/jakearchibald/idb
- docs: https://github.com/jakearchibald/idb/blob/main/README.md

### Identity

- status: active
- maintainer: Jake Archibald
- maintainerType: individual
- parent: unknown
- firstRelease: 2015
- hqCountry: unknown

### Kind

- category: library
- hosting: unknown
- language: javascript
- runtime: unknown
- runtimeMin: unknown
- basedOn: unknown

### Content

- contentStore: not applicable
- databases: not applicable
- adminUi: not applicable
- headlessApi: not applicable
- templating: not applicable
- i18n: not applicable

### Rendering and deploy

- runsAs: not applicable
- renderingModes: not applicable
- installMethod: npm, ES module from jsDelivr, UMD script from jsDelivr

### License

- licenseModel: open-source
- license: ISC

### Releases

- currentMajor: 8
- latestReleaseDate: 2026-10-06

### Adoption

- githubStargazers: 7443
- packagistDownloads: not applicable
- npmWeeklyDownloads: 36312869
- contributors: 32
- pluginCount: unknown
- packagistMonthlyDownloads: unknown
- ecosystemsMonthlyDownloads: unknown
- httpArchiveSites: unknown
- wordpressActiveInstalls: unknown
- dependentRepos: 782286
- dependentPackages: 602

### Sources

- urls: https://api.github.com/repos/jakearchibald/idb (read 2026-11-16)
- urls: https://github.com/jakearchibald/idb/blob/main/README.md (read 2026-11-16)
- firstRelease: https://registry.npmjs.org/idb (read 2026-11-16)
- maintainer: https://raw.githubusercontent.com/jakearchibald/idb/main/LICENSE (read 2026-11-16)
- category: https://github.com/jakearchibald/idb/blob/main/README.md (read 2026-11-16)
- language: https://api.github.com/repos/jakearchibald/idb (read 2026-11-16)
- installMethod: https://github.com/jakearchibald/idb/blob/main/README.md (read 2026-11-16)
- installMethod: https://github.com/jakearchibald/idb/blob/main/README.md (read 2026-11-16)
- installMethod: https://github.com/jakearchibald/idb/blob/main/README.md (read 2026-11-16)
- license: https://api.github.com/repos/jakearchibald/idb (read 2026-11-16)
- licenseModel: https://raw.githubusercontent.com/jakearchibald/idb/main/LICENSE (read 2026-11-16)
- currentMajor: https://registry.npmjs.org/idb/latest (read 2026-11-16)
- latestReleaseDate: https://registry.npmjs.org/idb (read 2026-11-16)
- npmWeeklyDownloads: https://api.npmjs.org/downloads/range/2026-11-01:2026-11-07/idb (read 2026-11-16)
- githubStargazers: https://api.github.com/repos/jakearchibald/idb (read 2026-11-16)
- contributors: https://api.github.com/repos/jakearchibald/idb/contributors?per_page=1 (read 2026-11-16)
- dependentPackages: https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/idb (read 2026-11-16)
- dependentRepos: https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/idb (read 2026-11-16)

## Notes

idb wraps the browser's IndexedDB API and mirrors its methods, but every request returns a promise. A database object gets shortcuts such as `get`, `put` and `getAll` that open a transaction for a single call, transactions expose a `done` promise, and cursors and stores can be iterated with `for await`. `openDB` takes upgrade, blocked, blocking and terminated callbacks, and the package ships TypeScript types that can describe a database's stores.

## Worth knowing

A transaction closes once nothing is left to do after the microtask queue, so awaiting a fetch between the start and the end of a transaction makes the next write fail. The README also says the library targets modern browsers and does not support Internet Explorer. For key-value storage alone, the README points to idb-keyval.

---

Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Attributes are recorded, never scored; absent means unknown.
Credit, in full: FindSoftware, CC BY 4.0
