Live data from Hacker News

PGlite – Postgres in WASM

github.com

1–10 of 19 posts

Re: PGlite – Postgres in WASM

#4

How is this different than the one done by CrunchyData here https://www.crunchydata.com/blog/crazy-idea-to-postgres-in-t...

The previous PG WASM projects from Crunchy and Snaplet have run Postgres in a VM and required a large 32MB download.

This is pure WASM, no VM, 3.7MB download. Plus it has persistent storage.

Re: PGlite – Postgres in WASM

#7
post #6

Fitting PostgreSQL into a 12MB binary with a simple API is amazing! 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: https://codapi.org/postgres-pglite

Awesome! Will check it out

Re: PGlite – Postgres in WASM

#10
post #8

Interesting that it could be done at all - but having a hard time coming up with any real world use cases for this. Are there any?

Code testing is a big one for me. I'm currently using in-memory sqlite for tests and I'm often running into differences between sqlite and postgres (default values, JSON handling, etc). This could allow me to use the real thing without running a full Docker instance.
Post reply on HN