Tobias Müller

SQL Workbench Embedded - Embeddable browser-based SQL execution with DuckDB WASM

SQL Workbench Embedded is a lightweight JavaScript library that transforms static SQL code blocks into interactive, browser-based SQL execution environments using DuckDB WASM. No backend required. It can also run queries on remote data, such as CSVs, JSONs or Parquet files. All DuckDB extensions that are WASM-compatible can be used as well! In case you want the full SQL Workbench experience, just click on the icon and execute your query there!

Add a comment

Replies

Best
Tobias Müller
Hey Product Hunt! 👋 I'm thrilled to launch SQL Workbench Embedded today - a lightweight JavaScript library that turns any static SQL code block into a fully interactive SQL playground, powered by DuckDB WASM! The backstory: After launching SQL Workbench earlier (the full web app), I kept getting requests from developers who loved the idea but wanted to embed interactive SQL directly into their own sites - documentation, tutorials, blog posts. The existing solutions were either too heavy, required backend infrastructure, or were just syntax highlighters without actual execution. What makes this special: 🪶 Just 9.49 KB gzipped (vs 700KB+ for alternatives) 🔒 100% client-side - your data never leaves the browser ⚡ One script tag = instant transformation of SQL blocks 🦆 Powered by DuckDB, not SQLite (hello analytical queries!) 🎨 React, Vue, and Vanilla JS support out of the box My favorite use case: Technical writers can now make their SQL documentation come alive. Instead of readers copy-pasting queries elsewhere, they can run, modify, and experiment right in the docs. No backend needed! I built this because I believe interactive learning beats static documentation every time. Whether you're creating tutorials, building educational platforms, or just want to spice up your technical blog posts - this is for you. Would love to hear your thoughts and use cases! What would you build with browser-based SQL execution? 🤔 Special thanks to the DuckDB team for making WASM possible and to everyone who provided feedback on the original SQL Workbench. This community rocks! 🙏 Happy querying! Tobi P.S. - It's completely free and open source. Grab it on NPM or check out the demos at https://embedded.sql-workbench.com
Chilarai M

The idea is excellent. DuckDB is really fast for analytics.

Being one of the early users (and a small-time contributor) of DuckDB, I hope this workbench will be fast and capable within any browser.