# electric-sql/pglite

Embeddable Postgres with real-time, reactive bindings.

Repository: https://github.com/electric-sql/pglite
Canonical: https://ross.abutalabs.com/products/pglite
Homepage: https://pglite.dev
Language: TypeScript
License: Apache-2.0
License Family: permissive
Topics: database, postgres, wasm
Last push: 2026-08-26T18:35:11+00:00

## Health v2 (maintenance only)
Score: 88/100 (v2, computed 2026-09-03T02:39:23.370411+00:00)
- activity 99, release rhythm 87, longevity 66
- inputs: {"age_days": 926, "days_push": 7, "days_rel": 7, "gap_med": 0.0, "n_releases_24m": 379}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 15925, forks 437 (observed 2026-08-28T04:11:14.471411+00:00)

## What it is
PGlite is a WASM build of PostgreSQL packaged as a TypeScript client library that runs a full Postgres database in the browser, Node.js, Bun, and Deno with no other dependencies. It supports persistence to the filesystem or IndexedDB, reactive live queries, and Postgres extensions like pgvector and PostGIS.

## Use cases
- run postgres in the browser
- embed a local database in a javascript app
- fast postgres for unit and CI tests
- local-first app with realtime sync
- on-device vector search for RAG
- lightweight local postgres for development
- ephemeral in-memory sql database for edge functions

## When to choose
- you need real Postgres (SQL, extensions, pgvector) running client-side or at the edge without a server
- you want fast, isolated per-test Postgres instances in unit or CI testing
- you're building local-first or offline-capable apps with reactive queries
- you want a zero-install local Postgres for development

## When to avoid
- you need a production server-grade Postgres with multi-user concurrent access
- your app requires a database larger than browser memory/storage limits
- you need native Postgres performance or features not available in the WASM build
- your stack is not JavaScript/TypeScript

## Facets
- artifact type: library
- maturity: active
- function: database, vector-database, wasm
- domain: databases, web-development, developer-tools
- platform: browser, bun, wasm, cross-platform
- tags: postgres, embedded-database, local-first, pgvector, postgis, typescript, in-browser-database, edge-computing, retrieval-augmented-generation, nodejs, deno

## Member repositories
- electric-sql/pglite (main) score 88

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:11:14.471411+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:05:19.538042+00:00, confidence not recorded.
  - readme: https://github.com/electric-sql/pglite (fetched 2026-08-28T04:11:14.471411+00:00, sha a85c0e49c59f)
  - homepage: https://pglite.dev (fetched 2026-08-29T08:03:29.440739+00:00, sha 5d199f0edeac)
  - site_page: https://pglite.dev/docs/about (fetched 2026-08-29T08:03:29.449747+00:00, sha 626b9dfadcfc)
  - site_page: https://pglite.dev/docs (fetched 2026-08-29T08:03:29.451636+00:00, sha 2c8fd9263efc)
- Data as of 2026-08-30T08:39:29.467469+00:00.
