An experimental SQLite driver for MikroORM using WebAssembly, targeting browser and edge runtime environments where native SQLite bindings are unavailable. Version 2.23.0 supports MikroORM v6 and provides an in-memory SQLite database through sql.js WASM. Key differentiators: enables MikroORM in non-Node.js runtimes, zero native dependencies. Currently in active development with frequent releases; breaking changes possible. Compared to better-sqlite3, this driver is browser-compatible but slower and limited to in-memory databases. It is part of the Graphweaver headless CMS ecosystem but can be used standalone. Does not support disk persistence or WAL mode.
npm install mikro-orm-sqlite-wasmNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initialize MikroORM with the SQLite WASM driver for in-memory database usage.
Always set dbName to ':memory:' in configuration.
Use only documented options; remove custom settings.
Ensure top-level await or use a Promise-based setup.
Use a single connection and expect lower concurrency.
Ensure import { SqliteWasmDriver } from 'mikro-orm-sqlite-wasm' and pass as driver option.Install sql.js as a dependency and ensure it's available in your runtime.
Add driver: SqliteWasmDriver to MikroORM.init() options.