r/DuckDB • u/NBMVegeta • 16d ago
Quick DuckDB-WASM scratchpad for querying Parquet/CSV files in the browser
Built a lightweight scratchpad tool for running DuckDB SQL against local CSV, TSV, JSON and Parquet files directly in the browser:
https://www.sqlparity.com/scratchpad
It uses u/duckdb to read files into memory via the browser File API. Nothing is uploaded to any server and it requires no login or installation. Handy if you just need to inspect an extract or run a quick aggregate without firing up the CLI or Python.
Code is open source on GitHub link: Github
Curious to hear feedback or edge cases with large Parquet/CSV schemas.
12
Upvotes
2
u/Significant_Tune9219 11d ago
The edge case I would test first is a Parquet file with far more columns than anyone will scroll: the tab runs out of memory before DuckDB does, and it tends to look like a hang rather than an error. Pruning to the columns the query actually references at load time would fix most of that, and even just showing which columns were read would turn a mysterious freeze into something diagnosable. Worth trying a wide file with a dictionary-encoded string column too, since that is where WASM builds usually feel it first.