# sqlite/sqlite-wasm

SQLite Wasm conveniently wrapped as an ES Module.

Repository: https://github.com/sqlite/sqlite-wasm
Canonical: https://ross.abutalabs.com/products/sqlite-wasm
Language: JavaScript
License Family: other
Topics: esm, sqlite, sqlite-wasm, webassembly, sqlite-webassembly, opfs, sqlite3, origin-private-file-system, sqlite3-wasm
Last push: 2026-07-13T14:38:21+00:00

## Health v2 (maintenance only)
Score: 87/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 92, release rhythm 80, longevity 88
- inputs: {"age_days": 1238, "days_push": 51, "days_rel": 134, "gap_med": 7, "n_releases_24m": 32}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1044, forks 91 (observed 2026-08-28T04:03:21.132544+00:00)

## What it is
An npm package that wraps the official SQLite WebAssembly (Wasm) build as a convenient ES Module with added TypeScript types. It enables running SQLite in the browser, including persistent storage via the Origin Private File System (OPFS) when used in a worker.

## Use cases
- run sqlite in the browser
- client-side persistent database with opfs
- use sqlite as an es module in javascript
- offline-first web app with local sql storage
- query data in a web worker with sqlite wasm
- in-memory sqlite database in node.js

## When to choose
- you need a full SQL database running entirely client-side in the browser
- you want persistent browser storage via OPFS backed by SQLite
- you want the official SQLite Wasm build with TypeScript types and easy ESM import

## When to avoid
- you need file-persisted SQLite in Node.js (only in-memory is supported there)
- you need server-side SQLite with native performance
- you cannot set COOP/COEP headers required for OPFS in a worker

## Facets
- artifact type: library
- maturity: active
- function: database, database-driver, wasm
- domain: databases, web-development, frontend
- platform: browser, wasm
- tags: sqlite, esm, opfs, webassembly, client-side-database, typescript-types, nodejs, javascript

## Member repositories
- sqlite/sqlite-wasm (main) score 87

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:21.132544+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-30T07:02:16.025353+00:00, confidence not recorded.
  - readme: https://github.com/sqlite/sqlite-wasm (fetched 2026-08-28T04:03:21.132544+00:00, sha f97855605807)
- Data as of 2026-08-30T08:39:29.467469+00:00.
