# PGlite

> Embeddable Postgres: run a full Postgres database locally in WASM with reactivity and live sync

Source: https://talira.ai/catalog/pglite-4epkf2qr
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Database, Library
- Categories: [databases / embedded](https://talira.ai/categories/databases/embedded), [databases / relational](https://talira.ai/categories/databases/relational)
- Licence: Apache-2.0 OR PostgreSQL[^1]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Self-hostable: no
- Backed by: [Electric](https://talira.ai/orgs/electric.md)

PGlite is [PostgreSQL](https://talira.ai/catalog/postgresql-cm55wcnd.md) compiled to WebAssembly and packaged as a TypeScript and JavaScript library, so a full Postgres runs inside a browser, Node.js or Bun with nothing else to install and no Linux virtual machine. It's under 3 MB gzipped, runs in memory or persists to the file system or IndexedDB, and loads extensions dynamically, including pgvector and PostGIS. Live queries, React and Vue hooks, a multi-tab worker and sync from a server Postgres make it an embedded app database, and its quick start-up suits unit tests with a fresh database each, local development and on-device RAG. Electric develops it.

## Links

- Website: https://pglite.dev/
- GitHub: https://github.com/electric-sql/pglite
- Docs: https://pglite.dev/docs/about

## Problems it solves

- give each unit test its own fresh Postgres database without Docker
- run Postgres inside my web app in the browser
- a local-first app database with SQL that syncs with my server's Postgres
- use Postgres for local development without installing it
- vector search in the browser with pgvector

## Features

- full Postgres in WASM, under 3 MB gzipped
- runs in browsers, Node.js and Bun
- in-memory, file system or IndexedDB persistence
- dynamic extensions including pgvector and PostGIS
- live queries
- React and Vue hooks
- multi-tab worker
- sync from a server Postgres
- PGlite Socket for Postgres wire protocol clients
- pg_dump tool

## Trust

Overall: 0.72 out of 1.
Signals: maintenance 1.00, adoption 0.84, momentum 0.81, community 0.79, backing 0.30, extensibility 0.00.

- last commit today
- 68 commits in the last 90 days
- latest release @electric-sql/pglite-plpgsql-check@0.1.0 today
- 16.4k GitHub stars
- 92 contributors
- backed by Electric

## Related

- Based on [PostgreSQL](https://talira.ai/catalog/postgresql-cm55wcnd.md)

## Alternatives

- [SQLite](https://talira.ai/catalog/sqlite-cys3nt23.md): Small. Fast. Reliable. Choose any three.
- [RxDB](https://talira.ai/catalog/rxdb-wj1b1kar.md): A fast, local-first, reactive database for JavaScript applications

## Sources

[^1]: https://pglite.dev/ (checked 24 Nov 2026)
