Skip to content
Agents tracked: 506 Releases (7d): 634 Agent status: 3 with issuesSince last limit reset: Claude 15d · Codex 0d For AI agents: Markdown Updated Nov 26, 2026

PGlite

Run PostgreSQL in the browser or Node.js via WebAssembly with no external dependencies.

Databases, ORMs and clientsNPM

GitHubWebsite

1. License

License from npm.

github.com/electric-sql/pglite

From the package registry and GitHub, checked daily. Tap a verdict to see its source.How we checkedReport an error

What PGlite does

Run PostgreSQL in the browser or Node.js via WebAssembly with no external dependencies.

PGlite popularity

74 / 100
Gid Score, #223 overall
44M
downloads a week, npm
16.4K
GitHub stars
38
agent projects use it
PGlite: downloads per weeknpm, @electric-sql/pglite 44,049,144
PGlite: GitHub starselectric-sql/pglite 16,363

Gid Score measures public popularity and activity, not quality. How the Gid Score is calculated

How PGlite is used

  • PGlite is a dependency in 38 of the 6,258 public GitHub projects set up for AI coding agents that we scanned (0.8% of the 4,867 JavaScript/TypeScript ones), #16 of 120 in databases, orms and clients.
  • Counting the projects our scan samples by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750), it appears in 94; those are left out of every share on this page.
  • The most used alternative in our scan is pg (298 projects).
  • Projects that use it most often also use Zod (78.9%), postgres (42.1%), TypeScript (94.7%).

By coding agent

30 projects, 0.9%
11 projects, 0.5%
10 projects, 0.3%
6 projects, 1.3%

Often used with

In 78.9% of its projects
In 42.1% of its projects
In 94.7% of its projects
In 39.5% of its projects
In 39.5% of its projects
In 36.8% of its projects
In 36.8% of its projects
In 50.0% of its projects

More about PGlite

More in Databases, ORMs and clients

Alternatives

PGlite This page

Apache-2.0Gid 7444M/wk

pg

PostgreSQL client for Node.js with pure JavaScript and libpq API compatibility.

MITGid 81106M/wk

Drizzle ORM

TypeScript ORM for SQL databases with type safety and zero-runtime overhead.

Apache-2.0Gid 8649.6M/wk

better-sqlite3

Fastest and simplest SQLite library for Node.js with synchronous API.

MITGid 7217.4M/wk

libSQL Client

TypeScript/JavaScript driver for libSQL databases with modern async/await support.

MITGid 556.1M/wk

Mongoose

MongoDB object modeling library providing schema validation and query building.

MITGid 739.4M/wk

SQL.js

SQLite database compiled to JavaScript, run SQL in browser without server.

MITGid 727.2M/wk

sqlite3

Asynchronous, non-blocking SQLite3 database bindings for Node.js.

BSD-3-ClauseGid 582.9M/wk

Compare PGlite with another tool

Get started

Install it.

npm install @electric-sql/pglite

No step-by-step start for PGlite yet: we have not written its hand-checked card.