sql-js/sql.js
A javascript library to run SQLite on the web. observed · 2026-08-28
Health v2 · maintenance only
90/100
- Activity 97
- Release rhythm 74
- Longevity 100
Flags: no_license
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 150.0
- age_days: 5301
- days_rel: 19
- days_push: 19
- n_releases_24m: 5
Adoption not part of the score
13657 stars · 1111 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
sql.js is SQLite compiled to WebAssembly (and JavaScript via Emscripten), allowing you to create and query relational databases entirely in the browser or Node.js. It operates on an in-memory virtual database file, with support for importing existing SQLite files and exporting the database as a typed array.
Use cases
- run SQL queries in the browser without a server
- parse and query a sqlite file client-side
- embed a relational database in an Electron app without native bindings
- teach SQL with an in-browser interactive demo
- load a sqlite database into memory and export it as a typed array
- query data offline in a web app
When to choose
- you need SQL in a browser or sandboxed environment with no native SQLite access
- your database is small enough to fit in memory
- you want to import/export sqlite files as byte arrays in JavaScript
- you need a pure-JavaScript SQLite for compatibility with older browsers
When to avoid
- you are in Node.js or Electron and can use a native binding like better-sqlite3 or sqlite3 for speed and file access
- you need persistent on-disk database storage
- your database is large and may cause out-of-memory errors when loaded fully into memory
Facets
library · maturity stable
database database-driver wasm databases web-development developer-tools browser cross-platform wasm sqlite in-memory-database emscripten sql client-side-database nodejs
3 sources
- readme: https://github.com/sql-js/sql.js · fetched 2026-08-28 · 67b665f54533
- homepage: http://sql.js.org · fetched 2026-08-29 · 36b0b1fe9738
- registry_npm: https://registry.npmjs.org/sql.js · fetched 2026-08-29 · 2d8cd0324d70
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| sql-js/sql.js | main | 90 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem