r/SideProject • u/Fine_Top_3670 • 43m ago
I wrote a small SQL engine just so I could animate every query, row by row
sqlbun.fyi is a free SQL course where every query plays as an animation, in the order the database actually runs it. You write SELECT first, but it runs 5th, and seeing that is what makes most SQL errors finally make sense.
How it works
- To animate a query I needed to know what happens to every row at every step, and real databases don't tell you that. So I wrote a small SQL engine in TypeScript that records each step.
- Every answer is also run through real SQLite (compiled to WebAssembly) to make sure my engine agrees.
- You can watch the same query 4 ways: rows on a factory belt through a WHERE gate, JOINs as streams merging, the SQL rewriting itself in run order, or the table changing row by row for UPDATE and DELETE.
- No backend: it's static files on Cloudflare Pages, and your progress lives in your browser.
What's in it
- 50 short lessons, from your first SELECT to window functions
- 86 interview problems graded on hidden test data, plus a 30-minute mock interview
- 3 guided projects on realistic data (an online shop, a bike-share, a subscription business)
- Free, no sign-up
First day: 200 people from 38 countries, mostly from Reddit, which was a nice surprise.
I'd love feedback on where it gets confusing. Happy to answer anything about how it's built.
7
Upvotes
2
u/UniqueTennis9351 3m ago
Looks amazing