SQLite Forum

[SQLite WASM]
Login

[SQLite WASM] npm package

(1.2) By mmomtchev on 2023-03-14 16:25:29 edited from 1.1 [source]

I have published an npm package containing SQLite WASM that is bundler-compatible and includes my new experimental HTTP VFS driver for read-only access to SQLite databases hosted on bare-bone HTTP servers.

Its main goal is of course to provide the HTTP driver but it can be used without it.

It contains TypeScript typings for the SQLite Promiser (no OO1 typings at the moment) and sample configurations for many bundlers - both JS and TS.

It works both in the browser and in Node.js - but requires Node.js 18.

It is brand new, so it probably has some rough edges.

Special thanks to Stephan Beal for his support.

sqlite-wasm-http on npmjs

npm install sqlite-wasm-http

This is a strictly unofficial community version

(2) By Stephan Beal (stephan) on 2023-03-14 16:42:50 in reply to 1.2 [link] [source]

It works both in the browser and in Node.js - but requires Node.js 18.

AFAIK, you're the first person to report success running it in node :). A link to your package has been added to the "in the wild" section of the docs.

Thank you for your support :).