Hacker News new | ask | show | jobs
by 9rx 14 days ago
PGlite offers the "real database" compiled to WASM, which can then be embedded similarly to SQLite. You don't have to choose between PostgreSQL and "just a file".
1 comments

Yeah pglite is exquisite. Now I don't have to write separate code for client and server side queries.

For example, I have a compiler that compiles a DSL to a DB query which returns a list. Now that query can either be on data in the browser or can be on data on the server. Now I don't have to write the logic twice!