sql.js
sql.js.org
Spec sheet
- Purpose
- sql.js is a JavaScript library for creating and querying SQLite databases in a browser.Read 7 Oct 2026 · github.com
- Integrations
- The README shows use with Node.js, npm, webpack, React, and CDNs.Read 7 Oct 2026 · github.com
- License
- The project states that sql.js is MIT licensed.Read 7 Oct 2026 · github.com
- BigInt limit
- BigInt support is partial: retrieving BigInt values is supported, but binding BigInt values is not.Read 7 Oct 2026 · github.com
- Custom functions
- Applications can register JavaScript functions and custom aggregate functions for use in SQL.Read 7 Oct 2026 · github.com
- Distribution
- The project is hosted on npm and publishes release artifacts, including WebAssembly loader and binary files.Read 7 Oct 2026 · github.com
- Documentation
- The project provides API documentation for its module, database, statement, and statement iterator.Read 7 Oct 2026 · sql.js.org
- Download
- Release artifacts include WebAssembly, asm.js, debug, and Web Worker builds.Read 7 Oct 2026 · github.com
- Extensions
- The library includes contributed math and string extension functions.Read 7 Oct 2026 · github.com
- Implementation
- It compiles SQLite to WebAssembly and also includes an asm.js build for compatibility with older browsers.Read 7 Oct 2026 · github.com
- Import and export
- It can import existing SQLite files and export a database as a JavaScript typed array.Read 7 Oct 2026 · github.com
- In-memory database
- The database uses a virtual file stored in memory, so changes do not persist automatically.Read 7 Oct 2026 · github.com
- In-memory storage
- The database is held in memory, so changes are not persisted automatically.Read 7 Oct 2026 · github.com
- Performance limit
- The README says a native SQLite binding can work directly with database files and avoid loading the entire database into memory, while sql.js may encounter out-of-memory errors.Read 7 Oct 2026 · github.com
- SQL API
- The API supports running SQL, preparing statements, binding parameters, and reading query results.Read 7 Oct 2026 · github.com
- SQL features
- The API supports prepared statements and custom JavaScript functions and aggregate functions in SQL.Read 7 Oct 2026 · github.com
- Technology
- It compiles SQLite to WebAssembly and includes an asm.js build for compatibility with older browsers.Read 7 Oct 2026 · github.com
- Web workers
- A Web Worker build can run CPU-intensive SQL queries off the main application thread, with a more limited API.Read 7 Oct 2026 · github.com
Plans and prices
sql.js Free MIT-licensed JavaScript library; database is held in memory; Web Worker API has a more limited interface Read 7 Oct 2026 · github.com
Where Specifiction places it
- Embedded Databases#21 of 307.6