# PGlite — card for AI agents

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

Category: Databases, ORMs and clients · npm package `@electric-sql/pglite` · latest version 0.5.14 (checked 2026-11-01)
Install: `npm install @electric-sql/pglite`
License: Apache-2.0 (permissive)

In your own product (generator, app, hosted service): **yes**. Permissive license: ship it inside your own product, closed or open source, and keep its license and copyright notice.

## Numbers (AgentGid data)
- Gid Score: 74.4 (#223 of all tools, 5 of 120 in its category)
- Used in 38 public projects set up for AI coding agents (0.6%)
- Downloads last week: 44,049,144 (as of 2026-11-24), +70.4% over 4 weeks
- GitHub stars: 16,363 (as of 2026-11-24)
- Last push: 2026-11-23

## Often used with
Zod 78.9%, postgres 42.1%, TypeScript 94.7%, AI SDK 39.5%, Drizzle ORM 39.5%, AWS SDK for JavaScript (S3) 36.8%

## Checked alternatives (same job)
- pg: https://agentgid.com/tools/pg/agent.md
- Drizzle ORM: https://agentgid.com/tools/drizzle-orm/agent.md
- better-sqlite3: https://agentgid.com/tools/better-sqlite3/agent.md
- libSQL Client: https://agentgid.com/tools/libsql-client/agent.md
- Mongoose: https://agentgid.com/tools/mongoose/agent.md
- SQL.js: https://agentgid.com/tools/sql-js/agent.md

## Links
- AgentGid page: https://agentgid.com/tools/electric-sql-pglite/
- Homepage: https://pglite.dev
- Repository: https://github.com/electric-sql/pglite

---
AgentGid's catalog is curated: every entry was checked against the maker's official pages (registry, repository, license and pricing pages) on the date shown; a license value shows the quote it stands on wherever AgentGid has one. Usage numbers come from AgentGid's own scan of public repositories set up for AI coding agents. Claims by makers are reported, not tested by AgentGid.
