WASM build of SQLite (bedrock branch) that provides a better-sqlite3 compatible API. v0.3.9. Features support for BEGIN CONCURRENT and WAL2 journal mode. Runs in Node.js and browser environments via WebAssembly. Ships TypeScript types. Designed as a drop-in replacement for better-sqlite3 where WASM execution is desired. Release cadence is irregular; pre-v1.
npm install bedrock-sqliteNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Create in-memory database, insert a row using prepared statement, retrieve it, and close the database.
Use synchronous new Database() call; no await needed.
Ensure your bundler copies the .wasm file to output, or use a WASM loader plugin.
Use BEGIN CONCURRENT only if you understand its concurrency model; it's not compatible with all environments.
Add "type": "module" to your package.json or use .mjs extension.
Use import Database from 'bedrock-sqlite' (default import).
Configure your bundler (e.g., webpack file-loader, Vite assetsInclude) to handle .wasm files.
No dependency data recorded yet.