- Home
- Embedded Databases
- sql.js
On the recordRead 7 Oct 202618 facts
sql.js
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
On the record
- BigInt limit
- BigInt support is partial: retrieving BigInt values is supported, but binding BigInt values is not.github.com · read 7 Oct 2026
- Custom functions
- Applications can register JavaScript functions and custom aggregate functions for use in SQL.github.com · read 7 Oct 2026
- Distribution
- The project is hosted on npm and publishes release artifacts, including WebAssembly loader and binary files.github.com · read 7 Oct 2026
- Documentation
- The project provides API documentation for its module, database, statement, and statement iterator.sql.js.org · read 7 Oct 2026
- Download
- Release artifacts include WebAssembly, asm.js, debug, and Web Worker builds.github.com · read 7 Oct 2026
- Extensions
- The library includes contributed math and string extension functions.github.com · read 7 Oct 2026
- Implementation
- It compiles SQLite to WebAssembly and also includes an asm.js build for compatibility with older browsers.github.com · read 7 Oct 2026
- Import and export
- It can import existing SQLite files and export a database as a JavaScript typed array.github.com · read 7 Oct 2026
- In-memory database
- The database uses a virtual file stored in memory, so changes do not persist automatically.github.com · read 7 Oct 2026
- In-memory storage
- The database is held in memory, so changes are not persisted automatically.github.com · read 7 Oct 2026
- Integrations
- The README shows use with Node.js, npm, webpack, React, and CDNs.github.com · read 7 Oct 2026
- License
- The project states that sql.js is MIT licensed.github.com · read 7 Oct 2026
- 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.github.com · read 7 Oct 2026
- Purpose
- sql.js is a JavaScript library for creating and querying SQLite databases in a browser.github.com · read 7 Oct 2026
- SQL API
- The API supports running SQL, preparing statements, binding parameters, and reading query results.github.com · read 7 Oct 2026
- SQL features
- The API supports prepared statements and custom JavaScript functions and aggregate functions in SQL.github.com · read 7 Oct 2026
- Technology
- It compiles SQLite to WebAssembly and includes an asm.js build for compatibility with older browsers.github.com · read 7 Oct 2026
- Web workers
- A Web Worker build can run CPU-intensive SQL queries off the main application thread, with a more limited API.github.com · read 7 Oct 2026