PGlite
Hacker ApprovedRanked 2 of 7 embedded databases by recommenders
Real Postgres compiled to WASM that runs embedded in apps and tests, avoiding Docker for quick isolated instances. Critics note it allows only one writer connection.
Real Postgres compiled to WASM that runs embedded in apps and tests, avoiding Docker for quick isolated instances. Critics note it allows only one writer connection.
56 people gave an opinion
- recommend it
- 49
- criticize it
- 7
- approval share
- 88%
Recommended in 10 of 13 months
- November 2025: recommended
- December 2025: recommended
- January 2026: recommended
- February 2026: recommended
- March 2026: recommended
- April 2026: recommended
- May 2026: not recommended
- June 2026: recommended
- July 2026: recommended
- August 2026: recommended
- September 2026: recommended
- October 2026: not recommended
- November 2026: not recommended (month in progress)
Why it carries the badge
- 49 people recommend itNeeds 10 or more, met.
- 7 recommenders for every criticNeeds 2 to 1 or better, met.
- Recommended in 10 of 13 monthsNeeds 4 or more, met.
The same three rules apply to every product, and the badge can’t be bought. How the badge works
What people say about it
The reasons people give, with the number of comments that give each one. Open a reason to read what they said.
Why people recommend it
Each mark is one comment
Fast isolated tests without containers
“The ability to .clone() the database to create "checkpoints" is also great for tests, as we can run all of the migrations and return to that clean state between each test.”
Comment from 4 Dec 2025 in “PGlite – Embeddable Postgres” “Having something like this, that I can quickly spawn and know, I am getting exact behavior as prod database would be a lifesaver!”
Comment from 4 Dec 2025 in “PGlite – Embeddable Postgres” “It worked fine and made it pretty easy to spin up a development/CI environment anywhere you want.”
Comment from 29 Jan 2026 in “Deep dive into Turso, the "SQLite rewrite in Rust"” - Comment from 20 Sep 2026 in “We need to stop using Stored Procedures”
- Comment from 11 Apr 2026 in “PGLite Evangelism”
- Comment from 4 Dec 2025 in “PGlite – Embeddable Postgres”
- Comment from 14 Nov 2025 in “RegreSQL: Regression Testing for PostgreSQL Queries”
- Comment from 4 Dec 2025 in “PGlite – Embeddable Postgres”
- Comment from 4 Dec 2025 in “PGlite – Embeddable Postgres”
- Comment from 9 Feb 2026 in “Ask HN: What Are You Working On? (February 2026)”
- Comment from 11 Apr 2026 in “PGLite Evangelism”
Real Postgres running embedded
“Imagine being able to go from 'embedded' to 'networked' without having to change any SQL or behavior, so cool.”
Comment from 4 Dec 2025 in “PGlite – Embeddable Postgres” “PGlite offers the "real database" compiled to WASM, which can then be embedded similarly to SQLite.”
Comment from 18 Jul 2026 in “Learning a few things about running SQLite” “With a simple `npm install` you now have a PostgreSQL instance in your web or node app”
Comment from 9 Jan 2026 in “What Happened to WebAssembly” - Comment from 4 Dec 2025 in “PGlite – Embeddable Postgres”
- Comment from 20 Dec 2025 in “Go ahead, self-host Postgres”
Same behavior as production
“Having something like this, that I can quickly spawn and know, I am getting exact behavior as prod database would be a lifesaver!”
Comment from 4 Dec 2025 in “PGlite – Embeddable Postgres” “Imagine being able to go from 'embedded' to 'networked' without having to change any SQL or behavior, so cool.”
Comment from 4 Dec 2025 in “PGlite – Embeddable Postgres” “Yeah pglite is exquisite. Now I don't have to write separate code for client and server side queries.”
Comment from 18 Jul 2026 in “Learning a few things about running SQLite” - Comment from 5 Feb 2026 in “It's 2026, Just Use Postgres”
- Comment from 20 Dec 2025 in “Go ahead, self-host Postgres”
Prototypes and local-first apps
“One thing this (and any browser-embeddable data store) are fantastic for is vibe coding interactive prototypes for user research.”
Comment from 4 Dec 2025 in “PGlite – Embeddable Postgres” “It's been great for allowing users to generate large amounts of their own isolated data”
Comment from 4 Dec 2025 in “PGlite – Embeddable Postgres” “It's now used by a huge number of developers for running local dev environments”
Comment from 4 Dec 2025 in “PGlite – Embeddable Postgres” - Comment from 4 Dec 2025 in “PGlite – Embeddable Postgres”
What people warn about
Each mark is one comment
Only one writer connection
“I really really really wish SQLite or PGLite supported multiple writers”
Comment from 6 Feb 2026 in “It's 2026, Just Use Postgres” “PGlite would be perfect if only it allowed multiple writer connections”
Comment from 6 Feb 2026 in “It's 2026, Just Use Postgres” Only works in WASM
“since it ONLY works in Wasm, that seemed way too niche”
Comment from 4 Dec 2025 in “PGlite – Embeddable Postgres” “but only in javascript/WASM”
Comment from 12 Apr 2026 in “PGLite Evangelism”
Other embedded databases people recommend
The four most recommended other embedded databases, with the same counts for each, so you can compare like for like. The tick on each bar marks the 2 to 1 line the badge needs.
| Product | Recommend | Criticize | Approval | Months | Owned | Badge |
|---|---|---|---|---|---|---|
| SQLite | 847 | 220 | 79% | 12 | 2 yrs13 owners | Approved |
| PGliteThis page | 49 | 7 | 88% | 10 | — | Approved |
| DuckDB WASM | 11 | 2 | 85% | 6 | — | Approved |
| Stoolap | 9 | 5 | 64% | 2 | — | — |
| SlateDB | 6 | 2 | 75% | 6 | — | — |
What people said
40 of the 65 comments that mention it, newest first. Each links to the original comment.
“You can have normal vitest tests testing your postgres functions with in-memory pglite.”
“Yeah pglite is exquisite. Now I don't have to write separate code for client and server side queries.”
“PGlite offers the "real database" compiled to WASM, which can then be embedded similarly to SQLite.”
“Loads of useful things in the pipeline: multi connection support, native library, extensions and many more ideas.”
“The key was NOT using that environment to run the SQLx validation”
“but only in javascript/WASM”
“I am quite happy that they added support for extensions though”
“It’s a really solid piece of work. If the concurrency model fits what you’re doing I wouldn’t hesitate to use it in production.”
“I use pglite for unit/integration tests and it's been fantastic.”
“Loved how speedily I could have a "real" postgres instance without spinning up docker.”
“while it's great someone made that, it's definitely not the same”
“This sounds fantastic for running local "unit"/integration tests.”
“I really really really wish SQLite or PGLite supported multiple writers”
“PGlite would be perfect if only it allowed multiple writer connections”
“That way you don't need any specific SGQLite vs Postgres behavior switches.”
“It worked fine and made it pretty easy to spin up a development/CI environment anywhere you want.”
“From what I’ve read there’s a pretty sizable performance gap between SQLite and pglite (with SQLite being much faster).”
“With a simple `npm install` you now have a PostgreSQL instance in your web or node app”
“For most purposes, it works perfectly fine, but with two main caveats”
“because it lets me use all the postgres features”
“Starting out with postgres if done via pglite and similars with golang's sqlite-ish approach can be brilliant”
“run your backend tests against this in memory and tests can be run in parallel”
“describes memory leaks, minute-long db startup time, and huge slowdowns with live queries”
“PGlite is fantastic. I use it for my in-browser PostgreSQL server for development.”
“This is a lot faster and more convenient than spinning up a container.”
“It's been great for allowing users to generate large amounts of their own isolated data”
“since it ONLY works in Wasm, that seemed way too niche”
“The ability to .clone() the database to create "checkpoints" is also great for tests, as we can run all of the migrations and return to that clean state between each test.”
“One thing this (and any browser-embeddable data store) are fantastic for is vibe coding interactive prototypes for user research.”
“Having something like this, that I can quickly spawn and know, I am getting exact behavior as prod database would be a lifesaver!”
“real Postgres, zero container overhead, easy to spin up isolated instances per test”
“this has big potential for local-first”
“There are a few people using it in prod for customer facing web apps.”
“it feels like a sweet spot between in-memory SQLite and spinning up a full Postgres instance”
“It's now used by a huge number of developers for running local dev environments”
“we have seen enormous growth in devtools and developer environments”
“It's not as nice as transactionally isolated testing, but it's a fine replacement until I have time to replicate it.”
“Imagine being able to go from 'embedded' to 'networked' without having to change any SQL or behavior, so cool.”
“This solves the first and has potential to help with the second.”
“that's what I've been using to write "unit" tests connected to a "real" database.”
Counts come from 1,795,640 Hacker News comments, November 2025 to November 2026. How we count. Report a mistake.