i ideas / repo launcher
electric-sql avatar

electric-sql/pglite

★ 16,263TypeScriptApache-2.087

Embeddable Postgres with real-time, reactive bindings.

What it is

PGlite - the WASM build of Postgres from Electric . Build reactive, realtime, local-first apps directly on Postgres. PGlite is a WASM Postgres build packaged into a TypeScript client library that enables you to run Postgres in the browser, Node.js, Bun and Deno, with no need to install any other dependencies. It is only 3mb gzipped and has support for many Postgres extensions, including pgvector and PostGIS.

When to use it

Reach for pglite when your app needs to store, query, cache or sync data — it's written in TypeScript and fits stacks tagged database, postgres, wasm, realtime.

Category
Databases & ORMs
Also in
—
Stars
16,263
Forks
474
Last push
yesterday
Created
2024-02-19
Open issues
163
Website
pglite.dev

Quick start

$ git clone https://github.com/electric-sql/pglite.git

Hand it to your AI

Read https://ideas.asveas.com/r/electric-sql/pglite.md and help me add electric-sql/pglite to my project. Explain the setup steps for my stack and show the minimal code to get it working.

Alternatives to pglite

All Databases & ORMs →

Pairs well with

FAQ

What is pglite?

electric-sql/pglite is a database tool on GitHub: Embeddable Postgres with real-time, reactive bindings. PGlite - the WASM build of Postgres from Electric .

When should I use pglite?

Reach for pglite when your app needs to store, query, cache or sync data — it's written in TypeScript and fits stacks tagged database, postgres, wasm, realtime.

What are the best alternatives to pglite?

Popular alternatives in Databases & ORMs: supabase/supabase (115k★), redis/redis (77.4k★), prisma/orm (47.7k★), duckdb/duckdb (43k★), drizzle-team/drizzle-orm (36.3k★).

Is pglite actively maintained?

electric-sql/pglite looks very actively maintained: the last push was yesterday (2026-11-10), with 16,263 stars and 163 open issues.

What license does pglite use?

electric-sql/pglite is published under the Apache-2.0 license. Check the repository's LICENSE file before commercial use.