Hacker ApprovedDepartments

PGlite

Hacker Approved

Ranked 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%
Each figure is one person. RecommendsCriticizes

Recommended in 10 of 13 months

  1. November 2025: recommended
  2. December 2025: recommended
  3. January 2026: recommended
  4. February 2026: recommended
  5. March 2026: recommended
  6. April 2026: recommended
  7. May 2026: not recommended
  8. June 2026: recommended
  9. July 2026: recommended
  10. August 2026: recommended
  11. September 2026: recommended
  12. October 2026: not recommended
  13. 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"”
  • 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”
  • 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”
  • 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”

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.

PGlite compared with 4 alternatives
ProductRecommendCriticizeApprovalMonthsOwnedBadge
SQLite84722079%122 yrs13 ownersApproved
PGliteThis page49788%10—Approved
DuckDB WASM11285%6—Approved
Stoolap9564%2——
SlateDB6275%6——
See all 7 embedded databases, ranked

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.”

RecommendsComment from 20 Sep 2026 in “We need to stop using Stored Procedures”

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

RecommendsComment from 18 Jul 2026 in “Learning a few things about running SQLite”

“PGlite offers the "real database" compiled to WASM, which can then be embedded similarly to SQLite.”

RecommendsComment from 18 Jul 2026 in “Learning a few things about running SQLite”

“Loads of useful things in the pipeline: multi connection support, native library, extensions and many more ideas.”

RecommendsComment from 13 Jul 2026 in “Ask HN: What Are You Working On? (July 2026)”

“The key was NOT using that environment to run the SQLx validation”

MixedComment from 23 Jun 2026 in “Show HN: Bun-sqlgen – Type-safe raw SQL for Bun, no ORM”

“but only in javascript/WASM”

CriticizesComment from 12 Apr 2026 in “PGLite Evangelism”

“I am quite happy that they added support for extensions though”

RecommendsComment from 11 Apr 2026 in “PGLite Evangelism”

“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.”

RecommendsComment from 11 Apr 2026 in “PGLite Evangelism”

“I use pglite for unit/integration tests and it's been fantastic.”

RecommendsComment from 11 Apr 2026 in “PGLite Evangelism”

“Loved how speedily I could have a "real" postgres instance without spinning up docker.”

RecommendsComment from 11 Apr 2026 in “PGLite Evangelism”

“while it's great someone made that, it's definitely not the same”

MixedComment from 22 Mar 2026 in “Grafeo – A fast, lean, embeddable graph database built in Rust”

“This sounds fantastic for running local "unit"/integration tests.”

RecommendsComment from 9 Feb 2026 in “Ask HN: What Are You Working On? (February 2026)”

“I really really really wish SQLite or PGLite supported multiple writers”

CriticizesComment from 6 Feb 2026 in “It's 2026, Just Use Postgres”

“PGlite would be perfect if only it allowed multiple writer connections”

CriticizesComment from 6 Feb 2026 in “It's 2026, Just Use Postgres”

“That way you don't need any specific SGQLite vs Postgres behavior switches.”

RecommendsComment from 5 Feb 2026 in “It's 2026, Just Use Postgres”

“It worked fine and made it pretty easy to spin up a development/CI environment anywhere you want.”

MixedComment from 29 Jan 2026 in “Deep dive into Turso, the "SQLite rewrite in Rust"”

“From what I’ve read there’s a pretty sizable performance gap between SQLite and pglite (with SQLite being much faster).”

MixedComment from 29 Jan 2026 in “Deep dive into Turso, the "SQLite rewrite in Rust"”

“With a simple `npm install` you now have a PostgreSQL instance in your web or node app”

RecommendsComment from 9 Jan 2026 in “What Happened to WebAssembly”

“For most purposes, it works perfectly fine, but with two main caveats”

MixedComment from 20 Dec 2025 in “Go ahead, self-host Postgres”

“because it lets me use all the postgres features”

RecommendsComment from 20 Dec 2025 in “Go ahead, self-host Postgres”

“Starting out with postgres if done via pglite and similars with golang's sqlite-ish approach can be brilliant”

RecommendsComment from 9 Dec 2025 in “Epsilon: A WASM virtual machine written in Go”

“run your backend tests against this in memory and tests can be run in parallel”

RecommendsComment from 4 Dec 2025 in “PGlite – Embeddable Postgres”

“describes memory leaks, minute-long db startup time, and huge slowdowns with live queries”

MixedComment from 4 Dec 2025 in “PGlite – Embeddable Postgres”

“PGlite is fantastic. I use it for my in-browser PostgreSQL server for development.”

RecommendsComment from 4 Dec 2025 in “PGlite – Embeddable Postgres”

“This is a lot faster and more convenient than spinning up a container.”

RecommendsComment from 4 Dec 2025 in “PGlite – Embeddable Postgres”

“It's been great for allowing users to generate large amounts of their own isolated data”

RecommendsComment from 4 Dec 2025 in “PGlite – Embeddable Postgres”

“since it ONLY works in Wasm, that seemed way too niche”

MixedComment from 4 Dec 2025 in “PGlite – Embeddable Postgres”

“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.”

RecommendsComment from 4 Dec 2025 in “PGlite – Embeddable Postgres”

“One thing this (and any browser-embeddable data store) are fantastic for is vibe coding interactive prototypes for user research.”

RecommendsComment 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!”

RecommendsComment from 4 Dec 2025 in “PGlite – Embeddable Postgres”

“real Postgres, zero container overhead, easy to spin up isolated instances per test”

RecommendsComment from 4 Dec 2025 in “PGlite – Embeddable Postgres”

“this has big potential for local-first”

RecommendsComment from 4 Dec 2025 in “PGlite – Embeddable Postgres”

“There are a few people using it in prod for customer facing web apps.”

RecommendsComment from 4 Dec 2025 in “PGlite – Embeddable Postgres”

“it feels like a sweet spot between in-memory SQLite and spinning up a full Postgres instance”

RecommendsComment from 4 Dec 2025 in “PGlite – Embeddable Postgres”

“It's now used by a huge number of developers for running local dev environments”

RecommendsComment from 4 Dec 2025 in “PGlite – Embeddable Postgres”

“we have seen enormous growth in devtools and developer environments”

RecommendsComment from 4 Dec 2025 in “PGlite – Embeddable Postgres”

“It's not as nice as transactionally isolated testing, but it's a fine replacement until I have time to replicate it.”

RecommendsComment 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.”

RecommendsComment from 4 Dec 2025 in “PGlite – Embeddable Postgres”

“This solves the first and has potential to help with the second.”

RecommendsComment from 4 Dec 2025 in “PGlite – Embeddable Postgres”

“that's what I've been using to write "unit" tests connected to a "real" database.”

RecommendsComment from 14 Nov 2025 in “RegreSQL: Regression Testing for PostgreSQL Queries”

Counts come from 1,795,640 Hacker News comments, November 2025 to November 2026. How we count. Report a mistake.