sql.js

JSON →
library 1.12.6 ·javascript
verified Jun 7, 2026

SQLite compiled to JavaScript via Emscripten, enabling full SQL database operations in browsers and Node.js. Version 1.12.6 uses WebAssembly by default (falls back to asm.js), with a release cadence of several updates per year. Unlike native bindings (e.g., sqlite3), it does not require compilation and works purely in-memory, supporting import/export of SQLite database files as Uint8Array. Key differentiators: browser-native execution, no native dependencies, support for prepared statements, user-defined functions, and extension loading. Active development with ongoing maintenance.