Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

DuckDB 6 min read Case study mediumAdept

Local Analytics Doesn’t Need a Database Server

SQLRooms, an open-source React toolkit extracted from Flowmap City, builds analytics apps on DuckDB running in the browser via WebAssembly or embedded in desktop apps, so no remote database server is needed. Foursquare Spatial Desktop uses it with kepler.gl and generates map tiles on demand from local data. Its tiling query uses DuckDB's spatial extension to select features near each tile, reservoir-sample dense tiles, simplify geometry by zoom level and encode Mapbox Vector Tiles. Cosmograph runs DuckDB-Wasm in a background worker to explore graphs with millions of edges, and SQLRooms adds AI agents that generate SQL while the source data stays local.

Assumes: SQL basicsDuckDBweb map tiles

Related posts

  • Visualizing BlueSky data with Evidence.dev

    ClickHouse mediumAdept

    Evidence.dev builds dashboards from SQL and markdown, running queries at build time rather than at request time. Query results are stored as Parquet files and queried in the browser with DuckDB WASM, which gives up data freshness in exchange for fast page loads. The walkthrough installs a community ClickHouse connector, points it at the public BlueSky dataset, and writes one query per .sql file. It then runs `npm run sources`, renders a BarChart component in a markdown page, and deploys the result as a static site or to Evidence Cloud with scheduled refreshes.

  • Introducing the SQL Console on Datasets

    Hugging Face mediumAdept

    Hugging Face Hub datasets now have a one-click SQL Console that runs DuckDB WASM entirely in the browser against each dataset's Parquet files, with views created per split and config. Non-Parquet datasets have their first 5GB auto-converted. A simple filter over a 12.6M-row dataset returns in under 3 seconds, but memory is capped at roughly 3GB and DuckDB WASM lacks some DuckDB features such as the hf:// protocol. A worked example uses struct_pack to convert an Alpaca dataset into conversational format for LLM fine-tuning and exports the results to Parquet.

  • DuckDB: analyze 50,000+ datasets stored on the Hugging Face Hub

    Hugging Face mediumAdept

    Every public dataset on the Hugging Face Hub is now automatically converted to Parquet by the dataset viewer and can be queried with SQL through DuckDB. Parquet file URLs come from the datasets-server `/parquet` HTTP endpoint, and DuckDB's `httpfs` extension then runs analytical queries directly against those remote files. Large datasets are sharded into 500MB Parquet chunks, which DuckDB can query together as multiple files.

  • postgres.new: In-browser Postgres with an AI interface

    Supabase mediumAdept

    database.build (formerly postgres.new) runs unlimited Postgres databases entirely in the browser via PGlite, a WASM build of Postgres, paired with GPT-4o that has full autonomy over the disposable database. The LLM imports CSVs, generates Chart.js charts, builds ER diagrams from real DDL, and does in-browser semantic search using pgvector and Transformers.js. SQL errors are fed back to the model so it can self-correct, and embeddings are stored in a meta table and referenced by ID to avoid sending large vectors to the model. PGlite relies on Postgres's single-user mode plus wire protocol support, a /dev/blob virtual device for COPY, and IndexedDB/OPFS persistence. A new TypeScript library, pg-gateway, handles the startup/auth handshake so standard Postgres clients can connect to PGlite deployments.

  • From Spreadsheets to DuckLake: A Data Engineer's Road to DuckDB

    DuckDB mediumAdept

    Data engineer Matt Martin traces his path from copy-pasting Excel reports through Teradata, BigQuery and heavyweight Spark clusters to DuckDB, which let him query local CSVs, S3 Parquet files and Iceberg tables in a few lines of SQL with no JVM or cluster. He favours DuckLake over Iceberg because it keeps lakehouse metadata in a SQL database. In his experience, catalog operations that take seconds with Iceberg's metadata files resolve in under a millisecond, and the setup is two statements instead of a 20-plus-line Spark configuration. In DuckDB 2.0 alpha, asynchronous I/O cut his S3 read times for 1,000–10,000 files by 67–70%, and ATTACH now accepts expressions such as getenv. The Quack protocol can also serve a DuckLake over HTTP without handing out AWS credentials.

The quest for software engineering knowledge.

Look:
Layout: