SQL.js is a fantastic open-source project that compiles SQLite to JavaScript through Emscripten. This means you can have a nice SQLite interface via a static site.

The project comes with its own online demo but after some use I had a short checklist of improvements I wanted:

  • a bigger layout to take up more screen real estate
  • less default SQL text
  • a button to refresh the page, which you need to do for each new command you execute
  • icons on the buttons, just because
  • prettier (to my eye) fonts

And that’s it. I realized I could do all this and learn a bit more about the project so I took two hours and built/deployed SQLjs.org.

I hope it helps some of you practicing with SQL and brings more attention to the author and current maintainer of SQL.js.