#9696th of 173 in Backends, databases and hosting
electric-pglite
Postgres compiled to WASM, run in browser, Node, Bun and Deno
Documentation ↗
(opens in a new tab)Website ↗
(opens in a new tab)Repository on GitHub ↗
(opens in a new tab)
- Stars
- 16.3k
- License
- Apache-2.0
- Last commit
- Nov 2026
- Last release
- Nov 2026
- Language
- TypeScript
Missed the latest GitHub check; these facts may be older.
Overview
PGlite packages Postgres built to WebAssembly as a TypeScript library, so it runs in the browser, Node.js, Bun and Deno with no other install. It works as an in-memory database or persists to the file system or IndexedDB, and supports extensions such as pgvector and PostGIS. It runs Postgres in single-user mode with an I/O layer, not in a Linux VM.
Who it is for: Developers embedding Postgres in browser, local-first or test setups
Strengths
- About 3 MB gzipped, with no dependencies to install
- Runs real Postgres in WASM, not a Linux VM
- Supports extensions including pgvector and PostGIS
- Persists to the file system or IndexedDB, or runs in memory
Weaknesses
- Single user and single connection only
- README labels the project alpha status
- Building the WASM module from source requires Docker
- Single-process design, not a drop-in server replacement
What it needs
- no GPU
Also in Backends, databases and hosting
See all 173| Rank | Project | Score |
|---|---|---|
| 1 | bunJavaScript and TypeScript runtime with bundler, test runner and package manager | 93 out of 100 |
| 2 | traefikHTTP reverse proxy and load balancer that auto-discovers routes from orchestrators | 93 out of 100 |
| 3 | appwriteBackend with auth, databases, storage, functions and an MCP server for agents | 93 out of 100 |
| #4 | ormTypeScript ORM for PostgreSQL and MongoDB with a plugin SPI and agent skills | 93 out of 100 |
| #5 | strapiHeadless CMS that generates REST and GraphQL APIs from content models | 92 out of 100 |