Question: Can kuzu embedded run in the browser via WASM? #3327
-
Can the node.js client run from a browser (esm) context (similar to duckdb). I couldn't find information about it. I was wondering if i could run it from cloudflare workers using httpfs and s3 as a datasource. from my understanding, duckdb uses a wasm import. I see some references to wasm in your codebase, but i wasn't sure. thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @ShravanSunder, Thanks for your interest. I think you are referring to https://github.com/duckdb/duckdb-wasm, which support running DuckDB inside browser. I started some preliminary work on getting a wasm version of Kùzu on https://github.com/kuzudb/kuzu/tree/emcc-test, but it does not quite work right now as Kùzu’s current buffer manager uses memory mapping and requires support of |
Beta Was this translation helpful? Give feedback.
Hi @ShravanSunder,
Thanks for your interest. I think you are referring to https://github.com/duckdb/duckdb-wasm, which support running DuckDB inside browser. I started some preliminary work on getting a wasm version of Kùzu on https://github.com/kuzudb/kuzu/tree/emcc-test, but it does not quite work right now as Kùzu’s current buffer manager uses memory mapping and requires support of
MADV_DONTNEED
, which is not available for wasm right now. Later this year, we may work on an alternative version of buffer manager which does not depend on memory mapping so that wasm can be supported. I will convert this issue into a discussion and let you know when wasm support is available.