A browser-compatible SQLite connection provider for the Meadow ORM, version 1.0.2. It replaces the native better-sqlite3 addon with sql.js (SQLite compiled to WASM), enabling Meadow to run in web browsers. It provides a better-sqlite3 compatible API wrapper, supporting in-memory databases only. It is maintained as part of the Meadow ecosystem, with updates following the Meadow release cadence. Unlike the standard meadow-connection-sqlite (better-sqlite3), this package works in both browser and Node.js environments without native dependencies.
npm install meadow-connection-sqlite-browserNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to register the Meadow SQLite browser connection provider with Fable, connect, and perform basic SQL operations using the better-sqlite3 compatible API.
Copy sql-wasm.js and sql-wasm.wasm to your static assets directory and add <script src='./sql-wasm.js'></script> before your bundle.
Use meadow-connection-sqlite (better-sqlite3) for Node.js persistent storage, or implement export/import mechanisms.
Ensure your project uses CommonJS or configure bundler to handle sql.js correctly.
Add a script tag to load sql-wasm.js before your application bundle.
Add <script src='path/to/sql-wasm.js'></script> before your main script.
Use a bundler like webpack or browserify, or use the browser-compatible build from the package.
Run `npm install sql.js` and ensure it is in node_modules. For browser bundler, add bundler.ignore('sql.js') and load manually via script tag.