PGlite
Apache-2.0 Postgres compiled to WASM for browser, Node, Bun and Deno
Databases / Data · Apache-2.0 · 16.2k
Reviewed 2026-10-18 · last push 2026-10-14 · repo checked 2026-10-19
What's Good
Apache-2.0 (electric-sql/pglite), release @electric-sql/pglite 0.5.10 (2026-10-14). About 3 MB gzipped, no Linux VM underneath, runs in memory or persists to the file system (Node/Bun/Deno) or IndexedDB in the browser. Good for local-first apps, per-test throwaway databases in CI and agent sandboxes that need real SQL, and it pairs with Electric for sync. Postgres extensions such as pgvector are available as add-ons. ★~16.2k.
The Catch
It is single user and single connection, so it is not a replacement for a Postgres server behind a multi-user backend. Performance and memory are bounded by the WASM runtime, and only the extensions the project has ported can be loaded. It is still 0.x, so expect API changes between minor versions.
Verdict
The easiest way to get real Postgres in tests, the browser or a local-first app — not your production server.
Embed
Maintainer? Add the badge to your README. It is free, links to this review, and there is no paid version.
Markdown
[](https://stackgems.com/gems/pglite)
HTML
<a href="https://stackgems.com/gems/pglite"><img src="https://stackgems.com/badge/pglite.svg" alt="PGlite reviewed on Stack Gems" height="20"></a>
Related
Databases →- SupabaseOpen-source Firebase alternative built on Postgres
- pgcliBSD-3-Clause Postgres CLI with smart autocompletion
- CitusAGPL-3.0 Postgres extension for distributed tables
- usqlMIT universal psql-style CLI for SQL and NoSQL databases
- Parse ServerApache-2.0 self-hosted backend on Node.js with MongoDB or Postgres