tursodatabase / libsql-js

A better-sqlite3 compatible API for libSQL that supports Bun, Deno, and Node
MIT License
197 stars 22 forks source link

Package WebAssembly build of libSQL #75

Open penberg opened 10 months ago

penberg commented 10 months ago

We currently only support local database with Node, but with a WebAssembly build of libSQL can unlock that in other environments such as the browser. IOW, we need a libsql package similar to https://www.npmjs.com/package/@sqlite.org/sqlite-wasm and write that up to the client SDK.

Snugug commented 8 months ago

+1 to this.

If you're going to port this to browser, I'd recommend backing it with the Origin Private File System and ensuring it can be used from a web worker for improved performance, possibly adopting a Comlink like API for accessing from other threads.

ibilux commented 4 months ago

+1