April 10, 2026
Docker who?
PGLite Evangelism
Dev world cheers “Postgres without Docker” as rivals crash the party
TLDR: PGLite brings real Postgres behavior inside your app without running a server, making testing and setup fast and simple. Devs are hyped, but the comments exploded into a tool brawl over JS-only limits and alternatives like Pgembed, Doltgres, and Firebird, plus debate on whether it’s safe for production.
Developers are losing it over PGLite — the “Postgres, but in your app” toy-turned-power-tool that promises real database behavior without a scary background server. The vibe? Giddy. One fan, yathern, raved about spinning up a “real” database in seconds for a project and monorepo, then dropped a cheeky warning that it “runs too wel…” — as in, so smooth you forget to switch environments. Cue the memes: “Goodbye Docker Desktop,” and “Two terminal tabs? Never again.”
But the honeymoon didn’t last. The thread turned into a tool showdown. adsharma thundered, “Pgembed is pglite for native code,” staking a claim for folks who don’t live in JavaScript land. lateforwork tossed a curveball with doltgres, and trelliumD went full hipster, pushing Firebird Embedded as faster and lighter. Meanwhile, memset asked if this magic works in Go — triggering the big gripe: PGLite’s party is JS/WebAssembly-only for now.
Still, the test-suite love is real. PGLite lets teams mimic production Postgres locally with zero services, which is huge for reliable tests and “local-first” apps that crunch data in the browser. The spicy question: should you run it in production for small apps? Fans whisper “maybe,” skeptics reply, “a database in your browser… what could go wrong?” The drama is delicious, the hype is loud, and the Docker jokes are relentless.
Key Points
- •PGLite provides an in-process PostgreSQL implementation for JavaScript/WASM, removing the need for a separate database service during development and testing.
- •It writes to a local file and can be imported directly in code, similar to SQLite’s developer experience.
- •Because PGLite builds from the PostgreSQL codebase, tests can run against the same SQL dialect and behavior as production.
- •A TypeScript example with Drizzle ORM and Vitest demonstrates table setup, truncation, insertion, and querying for tests.
- •PGLite’s potential uses include quick-start databases for new projects, in-browser databases for local-first apps via ElectricSQL, and possibly small production deployments.