postgres
Fast, full-featured PostgreSQL client for Node.js with real-time subscriptions.
HTTP clients and networking npm Unlicense
Used in agent projects
139
1.1% of 12,697 public repos built with AI coding agents
Rank in http clients and networking
#12 of 29
by use in those projects
Downloads
21M
npm, last 7 days, postgres
GitHub stars
8,726
last push Sep 2, 2026
How postgres is used
postgres is a dependency in 139 of the 12,697 public GitHub projects set up for AI coding agents that we scanned (1.1%), #12 of 29 in http clients and networking. The most used alternative there is Axios. Projects that use it most often also use Drizzle ORM (83.5%), Drizzle Kit (78.4%), Zod (72.7%).
Often used with postgres
| Drizzle ORM | 83.5% of postgres projects · 32.8× more than average |
|---|---|
| Drizzle Kit | 78.4% of postgres projects · 32.2× more than average |
| Zod | 72.7% of postgres projects · 4.3× more than average |
| dotenv | 59.0% of postgres projects · 3.7× more than average |
| tsx | 54.0% of postgres projects · 5.4× more than average |
| Class Variance Authority | 54.7% of postgres projects · 3.9× more than average |
| Tailwind Merge | 57.6% of postgres projects · 3.4× more than average |
| clsx | 59.0% of postgres projects · 3.3× more than average |
By coding agent
| Claude Code | 2.1% of projects set up for it |
|---|---|
| Cursor | 2.5% of projects set up for it |
| GitHub Copilot | 1.9% of projects set up for it |
| Gemini CLI | 2.5% of projects set up for it |
| OpenAI Codex | 2.0% of projects set up for it |
| OpenCode | 2.8% of projects set up for it |
| Devin Desktop | 2.9% of projects set up for it |
Share of public repos configured for each agent that list postgres as a dependency.
Install
| Package | npm install postgres |
|---|---|
| Main stacks | Next.js (78), TypeScript / JavaScript (57), Python (2), React Native / Expo (2) |
| Example projects | ding113/claude-code-hub, BabylonSocial/babylon, Some1Uknow/learn-solana, Vectreal/vectreal-platform, juanfran/tapiz |
Alternatives to postgres
| Tool | Used in agent projects | Downloads / wk | GitHub stars | License |
|---|---|---|---|---|
| Axios npm Promise-based HTTP client for browser and Node.js with interceptors. |
1,264 (10.0%) | 115M | 109K | MIT |
| Requests pypi Elegant Python HTTP library for making web requests. |
675 (5.3%) | 309M | 54.6K | Apache-2.0 |
| aiohttp pypi Async HTTP client/server framework for Python with WebSocket support. |
295 (2.3%) | 117M | 16.6K | — |
| ws npm Simple, fast WebSocket client and server for Node.js with full RFC support. |
287 (2.3%) | 283M | 22.8K | MIT |
| websockets pypi WebSocket implementation for Python with RFC 6455 and 7692 compliance. |
286 (2.3%) | 109M | 5,732 | — |
| httpx pypi Modern Python HTTP client with async support, replacing the standard requests library. |
266 (2.1%) | 16M | 15.6K | BSD-3-Clause |
| node-fetch npm Bring the Fetch API to Node.js for making HTTP requests. |
219 (1.7%) | 207M | 8,852 | MIT |
| urllib3 pypi HTTP client with thread-safe connection pooling, file uploads and advanced features. |
193 (1.5%) | 338M | 4,071 | — |