TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: CSVFiddle – Query CSV files with DuckDB in the browser

64 pointsby shbhrsahaalmost 3 years ago

6 comments

shbhrsahaalmost 3 years ago
Hey HN,<p>I made CSVFiddle because I wanted a quick way to query CSV files with SQL and share the results with other people.<p>The app runs 100% in-browser, so the data you import and the queries you write are never sent to a web server. When you share the URL to a workspace, all of its queries and references to CSV files are just encoded in the URL fragment.<p>In-browser querying is made possible by DuckDB-Wasm, which has been an awesome project to work with:<p><a href="https:&#x2F;&#x2F;duckdb.org&#x2F;2021&#x2F;10&#x2F;29&#x2F;duckdb-wasm.html" rel="nofollow">https:&#x2F;&#x2F;duckdb.org&#x2F;2021&#x2F;10&#x2F;29&#x2F;duckdb-wasm.html</a><p>There are definitely limitations with CSVFiddle (e.g. sometimes the auto-parsing feature doesn&#x27;t accurately interpret the imported files), but so far it&#x27;s been useful for a range of data tasks.<p>Some demo workspaces you can check out:<p>University Students by State <a href="https:&#x2F;&#x2F;tinyurl.com&#x2F;6k35anth" rel="nofollow">https:&#x2F;&#x2F;tinyurl.com&#x2F;6k35anth</a><p>Uber Pickups in NYC <a href="https:&#x2F;&#x2F;tinyurl.com&#x2F;5n8av39h" rel="nofollow">https:&#x2F;&#x2F;tinyurl.com&#x2F;5n8av39h</a>
评论 #31949098 未加载
评论 #31948898 未加载
dansoalmost 3 years ago
By no means am I crapping on what you&#x27;ve created — it looks great, and I&#x27;ve always wanted to try DuckDB and now you&#x27;ve made a frictionless entrypoint — just wanted to point out in general that querying CSV with SQL is more accessible than some people might have assumed. e.g. here&#x27;s a recent TIL blogpost from Simon Willison about him discovering how to do sqlite queries against CSV from the command line: <a href="https:&#x2F;&#x2F;til.simonwillison.net&#x2F;sqlite&#x2F;one-line-csv-operations" rel="nofollow">https:&#x2F;&#x2F;til.simonwillison.net&#x2F;sqlite&#x2F;one-line-csv-operations</a><p>One suggestion I would make: the Uber trips data is interesting, but might be too big for this demo? I was getting a few loading errors when trying it (didn&#x27;t investigate where in the process the bottleneck was though)
评论 #31951704 未加载
评论 #31949672 未加载
评论 #31950119 未加载
throwamonalmost 3 years ago
Not to discourage you or anything, but Observable seems to cover this without too much hassle:<p><a href="https:&#x2F;&#x2F;observablehq.com&#x2F;@cmudig&#x2F;introducing-sql-with-duckdb" rel="nofollow">https:&#x2F;&#x2F;observablehq.com&#x2F;@cmudig&#x2F;introducing-sql-with-duckdb</a>
评论 #31953914 未加载
ijidakalmost 3 years ago
This is great.<p>Will definitely be using this.<p>I wouldn&#x27;t worry too much about people focused on running from the command line.<p>I love the command line. But not as a query interface for quick investigation of CSV data.<p>I&#x27;ve been wanting something like this for a long time!<p>Excited to give it a try.
kristianpalmost 3 years ago
I guess if it uses duckdb it can query parquet (and duckdb) files too?
swuechoalmost 3 years ago
very useful tools!