# jakearchibald/idb

IndexedDB, but with promises

Repository: https://github.com/jakearchibald/idb
Canonical: https://ross.abutalabs.com/products/idb
Homepage: https://www.npmjs.com/package/idb
Language: TypeScript
License: ISC
License Family: permissive
Last push: 2025-05-07T08:11:05+00:00

## Health v2 (maintenance only)
Score: 41/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 20, release rhythm 35, longevity 100
- inputs: {"age_days": 4045, "days_push": 483, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 7399, forks 383 (observed 2026-08-28T04:09:59.696656+00:00)

## What it is
A tiny (~1.19kB) TypeScript library that wraps the browser's IndexedDB API with promises and small usability improvements while mostly mirroring the native API. It provides enhanced openDB/deleteDB helpers, transaction and cursor enhancements, and async iterator support for modern browsers.

## Use cases
- store data in the browser with IndexedDB without callback hell
- use IndexedDB with async/await and promises
- manage client-side database schema upgrades
- iterate over IndexedDB cursors with async iterators
- build offline-first web apps with local storage
- replace localStorage with a structured key-value database

## When to choose
- you want a promise-based, near-1:1 wrapper over native IndexedDB
- you need a tiny dependency with minimal abstraction
- you want TypeScript types for IndexedDB
- you need fine control over transactions, cursors, and upgrades

## When to avoid
- you need a full database abstraction with queries, relations, or ORM features
- you must support Internet Explorer or legacy browsers
- you need storage that works outside the browser (Node.js, mobile native)
- you prefer a higher-level API like Dexie with rich querying

## Facets
- artifact type: library
- maturity: stable
- function: database, database-driver, developer-tools
- domain: web-development, frontend, databases, developer-tools
- platform: browser, cross-platform
- tags: indexeddb, promises, async-iterators, client-side-storage, typescript, browser-storage

## Member repositories
- jakearchibald/idb (main) score 41

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:59.696656+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:38:03.684325+00:00, confidence not recorded.
  - readme: https://github.com/jakearchibald/idb (fetched 2026-08-28T04:09:59.696656+00:00, sha aa578466f7ea)
  - registry_npm: https://registry.npmjs.org/idb (fetched 2026-08-29T08:33:34.156340+00:00, sha 28430ce22b42)
- Data as of 2026-08-30T08:39:29.467469+00:00.
