wa-sqlite is a WebAssembly build of SQLite that enables writing virtual filesystems and virtual table modules in JavaScript. The current stable version is 1.0.0. It provides both synchronous and asynchronous (using Asyncify) builds, with ESM modules as the default. Key differentiators include support for IndexedDB and Origin Private File System VFS implementations, allowing alternative browser storage options. The project ships TypeScript types and has a moderate release cadence. Unlike other SQLite WASM bindings, wa-sqlite focuses on extensibility via JavaScript-based VFS and virtual table modules.
npm install wa-sqliteNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initializes wa-sqlite WASM module, opens a database, executes a query, and logs results.
Use 'wa-sqlite/dist/wa-sqlite-async.mjs' for async features, or 'wa-sqlite/dist/wa-sqlite.mjs' for sync.
Use the dist/ directory from the main branch or specify version >=1.0.0.
Check build type: use 'await' only with async build, omit 'await' with sync build.
Use ES module import syntax: import SQLiteESMFactory from 'wa-sqlite/dist/wa-sqlite.mjs';
Remove 'new': const sqlite3 = SQLite.Factory(module);
Ensure module is awaited: const module = await SQLiteESMFactory();
No dependency data recorded yet.