Branch from DuckDB, course 1 of 3
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.
- Level
- intermediate
- Lessons
- 9
- Price
- Free
Stops on this branch
9 lessons, about 8 hours.
- 1A SQL Engine in a Browser Tab45 min
- 2Move the Database Off the Main Thread50 min
- 3A Table and Twenty Thousand Rows45 min
- 4Persistence and the Reload That Costs Nothing50 min
- 5Prepared Statements and the IN Clause50 min
- 6Pagination That Stays Constant55 min
- 7Aggregates and Window Functions55 min
- 8PIVOT, and Where Parameters Stop Working45 min
- 9A Query Surface of Your Own60 min
Terminus A 34 MB wasm SQL engine, about 7.7 MB gzipped, in a browser tab.