December 4, 2025

DB-in-a-tab? Cue the comment war

PGlite – Embeddable Postgres

Postgres in your browser—genius move or DuckDB cosplay

TLDR: PGlite runs a full Postgres database inside your browser, tiny and sync-friendly. The community splits between cheering “no more servers” and eye-rolling that it’s DuckDB all over again, while practical voices ask for real use-cases and a native build—making this a flashy demo with serious potential.

PGlite promises a full PostgreSQL database running right inside your browser using WebAssembly (think: a way to run apps in a tab), with live updates and AI-friendly features like pgvector. The crowd went wild—but divided. One camp cheers that this tiny, under-3MB tool kills the pain of setting up a server. Another camp fires back with the DuckDB déjà vu meme, accusing everyone of racing to ship “databases in a tab.” And then there’s the pragmatists asking the big question: cool demo or real tool?

The drama kicks off with a wink to a prior Show HN drop—this feels like a sequel, and the audience brought popcorn. Skeptics demand use-cases beyond toy apps, while fans imagine instant local apps that sync later, no backend required. A commenter even dreams of a native version, hinting this could escape the browser and replace fiddly server installs. Meanwhile, “Embeddable (into JS et al)” becomes the clarifying chorus—yes, it’s meant for websites and JavaScript.

Humor lands hard: jokes about Postgres “moving into your browser rent-free,” and the recurring DuckDB cosplay gag. Between the claps and the side-eye, the vibe is clear: PGlite is either a breakthrough in frictionless local data or the latest shiny demo. Either way, the comments are the show.

Key Points

  • PGlite runs a full PostgreSQL database locally in WebAssembly (WASM).
  • The WASM build is lightweight, under 3MB when gzipped.
  • PGlite supports dynamic extension loading, including pgvector.
  • Built-in reactive features include data loading, synchronization, and live query primitives.
  • PGlite is dual-licensed under Apache 2.0 and the PostgreSQL License, and can be tried in-browser; database.build showcases it.

Hottest takes

"Everyone is trying to copy DuckDB at this point" — u834957920
"is this just for fun or are there good use-cases for this?" — mythz
"Having to always set up a server is one major downside of Postgres… This solves the first" — dvdkon
Made with <3 by @siedrix and @shesho from CDMX. Powered by Forge&Hive.