SQL in the Browser: DuckDB WASM from Scratch
Put a real SQL engine in a browser tab. Build the data layer of an analytics app on DuckDB compiled to WebAssembly — a worker, a database file that survives reloads, prepared statements, window functions, and a SQL console you write yourself. Free and text-first.
- A SQL Engine in a Browser Tab
- Move the Database Off the Main Thread
- A Table and Twenty Thousand Rows
- Persistence and the Reload That Costs Nothing
- Prepared Statements and the IN Clause
- Pagination That Stays Constant
- Aggregates and Window Functions
- PIVOT, and Where Parameters Stop Working
- A Query Surface of Your Own