Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Load httpserver in duckdb-wasm #32

Open
raziele opened this issue Feb 7, 2025 · 2 comments
Open

Load httpserver in duckdb-wasm #32

raziele opened this issue Feb 7, 2025 · 2 comments

Comments

@raziele
Copy link

raziele commented Feb 7, 2025

I have a use-case where I'd like to serve a table created in duckdb-wasm.
I wanted to experiment doing this with this extension, however I'm getting an error when trying to load it:

Image

Should it even work on the wasm version?

@lmangani
Copy link
Collaborator

lmangani commented Feb 7, 2025

Hello @raziele the http_server extension does not support WASM as it cannot expose sockets and services. We're working on a websocket based option to allow these interactions, but its still an early prototype. Unfortunately at this time you can only connect from WASM to DuckDB http_server(s) but not the other way around if not by using the client itself as "middleware" between the two connections. If there's interest we can turn this into a feature request and push this up the roadmap.

@raziele
Copy link
Author

raziele commented Feb 7, 2025

Hey @lmangani thanks for the quick reply!
No rush. Let me just describe the use-case to enrich future discussions:
For context, I'm building a data tool that helps users process sensitive data. Using duckdb-wasm, I can build the tool to run entirely on client side so 100% privacy.
One of the requested features is to do custom analysis on the data, so my thought was to let users temporarily serve the data and allow them to fetch it in their preferred analysis tool. For example - using Google Sheet IMPORTDATA function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants