pg vs Neon Serverless Driver
In 4,864 JavaScript/TypeScript projects set up for AI coding agents, pg is a dependency in 297 (6.1%) and Neon Serverless Driver in 77 (1.6%): pg is 3.9× as common. Among repos created in the last 90 days that use a databases, orms and clients tool, pg is in 29.1% and Neon Serverless Driver in 9.1%, against 30.4% and 7.8% of older ones. 31 projects list both, often a sign of a migration or of a monorepo with several apps.
Databases, ORMs and clients npm Updated Nov 17, 2026
| pg | 6.1% | |
|---|---|---|
| Neon Serverless Driver | 1.6% |
Share of 4,864 JavaScript/TypeScript projects set up for AI coding agents that list each one as a dependency.
Side by side
| pg | Neon Serverless Driver | |
|---|---|---|
| Agent projects that use it | 297 | 77 |
| Rank in databases, orms and clients | #1 | #9 |
| In new repos with a databases, orms and clients tool (last 90 days) | 29.1% | 9.1% |
| In older repos with one | 30.4% | 7.8% |
| Downloads, last 7 days | 1M | 8.1M |
| GitHub stars | 13.2K | 557 |
| Last push to its repo | Oct 23, 2026 | Nov 13, 2026 |
| License | MIT | MIT |
| Funding | — | — |
| Projects that list both | 31 | |
Downloads include CI runs and installs as a dependency of other packages. Stars and pushes are from GitHub's API; downloads from npm.
By coding agent
| Projects set up for | JavaScript/TypeScript repos | pg | Neon Serverless Driver |
|---|---|---|---|
| Claude Code | 2,617 | 6.5% | 1.5% |
| GitHub Copilot | 2,350 | 6.6% | 1.4% |
| Cursor | 1,990 | 6.5% | 2.3% |
| Gemini CLI | 422 | 7.8% | 1.7% |
| OpenAI Codex | 409 | 6.4% | 1.2% |
| OpenCode | 304 | 6.9% | 2.3% |
| OpenClaw | 241 | 7.1% | 0% |
| Devin Desktop | 231 | 10.0% | 4.3% |
| Kiro | 125 | 6.4% | 0% |
| Roo-Code | 90 | 7.8% | 0% |
Share of the JavaScript/TypeScript repos configured for each agent (its config file in the repo) that list the tool. A repo set up for two agents counts for both.
pg
PostgreSQL client for Node.js with pure JavaScript and libpq API compatibility.
Most often used with it:
| dotenv | 62.3% of its projects |
|---|---|
| tsx | 52.2% of its projects |
| Next.js | 53.2% of its projects |
| Zod | 62.6% of its projects |
| TypeScript | 91.6% of its projects |
npm install pg
Neon Serverless Driver
PostgreSQL driver optimized for serverless environments from Neon.
Most often used with it:
| Lucide React | 80.5% of its projects |
|---|---|
| Drizzle ORM | 67.5% of its projects |
| dotenv | 66.2% of its projects |
| Drizzle Kit | 64.9% of its projects |
| Tailwind CSS | 90.9% of its projects |
npm install @neondatabase/serverless
More matchups
Prisma vs Drizzle ORMasyncpg vs psycopgpsycopg2 vs asyncpgasyncpg vs aiosqlite
How we count
Projects are public GitHub repos our weekly scan finds through coding-agent config files (CLAUDE.md, AGENTS.md, .cursor/mcp.json and others); a project uses a tool when its package.json, requirements.txt or pyproject.toml lists it. "Same job" was checked for every pair, so add-ons and companions are never paired. Shares by repo age compare repos created in the last 90 days with older ones in the same scan. More on the method.