I was so excited to try it out it that I just released an in-browser PostgreSQL playground on top of PGlite.
It's also open source and easy to integrate:
Postgres WASM - https://news.ycombinator.com/item?id=33067962 - Oct 2022 (185 comments)
I work on a web framework for building data apps like reports and dashboards, and we use duckDB’s WASM runtime for interactions (e.g when a user changes a date range filter). It’s really fast, and you don’t spend snowflake credits.
- You want your app to be local first (snappy, great offline support, etc) but sync data to a server. This is the ElectricSQL use case.
- You want a serious data store in-browser. SQLite via wasm already fits this use case, but it's nice to have options.
This is pure WASM, no VM, 3.7MB download. Plus it has persistent storage.