Neon Serverless PostgreSQL Driver

JSON →
library 0.5.3 ·javascript
verified Jun 5, 2026

@neondatabase/serverless is a PostgreSQL driver optimized for serverless and edge environments (e.g., Vercel Edge, Cloudflare Workers) from Neon.tech. At version 0.5.3 (beta), it offers two APIs: a simple `neon` function for one-shot queries over HTTPS fetch, and Pool/Client for sessions/transactions via WebSockets. It is a drop-in replacement for the popular `pg` package (node-postgres) with message pipelining for low latency. It ships TypeScript types and is ESM-only. Key differentiators: works in edge runtimes without Node.js TCP, supports SQL template tag injection safety, and integrates tightly with Neon's serverless Postgres offering.