Neon Serverless Driver
The Neon Serverless Driver is a low-latency JavaScript and TypeScript driver that enables querying Neon Postgres databases from serverless and edge environments over HTTP or WebSockets in place of TCP. It supports two query modes: HTTP mode using the neon function for fast single non-interactive transactions, and WebSocket mode using Pool and Client constructors for session and transaction support with node-postgres compatibility. The driver is available as @neondatabase/serverless on npm and is optimized for deployment on platforms like Cloudflare Workers, Vercel Edge Functions, and AWS Lambda.