{"library":"sql.js","type":"library","category":null,"description":"SQLite compiled to JavaScript via Emscripten, enabling full SQLite functionality in browsers and Node.js without native bindings. Current stable version is 1.14.1, released periodically. Key differentiator: runs entirely in memory using WebAssembly (or legacy JS), allows importing/exporting SQLite database files as Uint8Array, and works cross-platform without native dependencies. Includes contributed math/string extension functions. Note: unlike native SQLite bindings (e.g., sqlite3), sql.js requires loading the entire database into memory, which can cause out-of-memory issues for large databases. Pure JavaScript implementation with WebAssembly fallback.","language":"javascript","status":"active","version":"1.14.1","tags":["javascript","sql","sqlite","stand-alone","relational","database","RDBMS","data","query"],"last_verified":"Fri Jun 05","install":[{"cmd":"npm install sql.js","imports":["import initSqlJs from 'sql.js'","const SQL = await initSqlJs({ locateFile: file => `/path/${file}` })","const db = new SQL.Database();","const stmt = db.prepare('SELECT * FROM test');"]},{"cmd":"yarn add sql.js","imports":[]},{"cmd":"pnpm add sql.js","imports":[]}],"homepage":"http://github.com/sql-js/sql.js","github":"ssh://git@github.com/sql-js/sql.js","docs":null,"changelog":null,"pypi":null,"npm":"sql.js","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}