# Neon serverless driver: 7.1 out of 10

A strong pick. 8th of 10 in [Database drivers](https://elestia.ai/opensource/db-drivers/index.md).

Neon's own Postgres driver. It sends queries over HTTP or WebSockets, so it works in edge and serverless runtimes that cannot open TCP connections. If your database is on Neon and your code runs on Vercel, Workers or similar platforms, it is a solid, fast-growing pick. Elsewhere, node-postgres or Postgres.js is the better default, and on Cloudflare Workers with Hyperdrive both Cloudflare and Neon tell you to use those instead.

**Best for:** Teams on Neon Postgres that run queries from edge or serverless functions without TCP or Hyperdrive.

## Scores

- **Overall: 7.1** (likely 6.0 to 8.1)
  - Claude Opus 5.5 (6.5): It is the right tool for Neon plus edge or serverless functions, and it is growing fast with vendor backing. It is still Neon-specific and lightly maintained, with open connection-handling bugs. node-postgres and Postgres.js serve most Postgres users better, including on Workers with Hyperdrive.
  - GPT-6.2 Sol (7.6): This is a strong choice for new Neon projects that need HTTP queries or interactive PostgreSQL transactions on runtimes with limited TCP access. For conventional PostgreSQL services with direct TCP, node-postgres and Postgres.js are broader choices, and Cloudflare recommends those drivers with Hyperdrive. Recent npm releases and ORM integrations support the recommendation, while sparse maintenance activity and limited evidence of direct adoption keep the range wide.
- **Needed by many: 3.9** (likely 2.9 to 4.9)
  - Claude Opus 5.5 (4.0): Every Postgres user needs a driver, but this one is meant for Neon databases reached from serverless or edge code. Neon's large share of Vercel and AI-agent-built apps makes that a sizable niche, not a general need.
  - GPT-6.2 Sol (3.7): PostgreSQL is widely used, and the driver works across several JavaScript runtimes. Its main audience is the smaller group using Neon or running a compatible proxy, particularly where direct TCP is unavailable. The developer survey measures PostgreSQL use, so the size of that group is uncertain.
- **Helps a lot: 7.3** (likely 6.3 to 8.3)
  - Claude Opus 5.5 (6.5): It does its job well. HTTP gives low-latency one-shot queries, the tagged templates are injection-safe, and the WebSocket mode is node-postgres compatible with bundled types. Its limits are clear: interactive transactions need WebSockets, there are open bugs in TLS error handling and pool options, and on Cloudflare Hyperdrive with pg or Postgres.js is the recommended route.
  - GPT-6.2 Sol (8.1): Version 1.2.1 offers typed, parameterized HTTP queries, batch transactions, and familiar node-postgres APIs for WebSocket sessions. The documentation gives clear examples for both transports, including the request lifecycle that developers and coding agents need to handle. A reported Kysely type mismatch and performance that varies with runtime, transport, and pooling leave room below the best score.
- **Holds up over time: 6.5** (likely 5.1 to 7.8)
  - Claude Opus 5.5 (6.0): Neon, now owned by Databricks, pays for the work, and the driver is central to its product, so it is unlikely to be abandoned. But activity is thin: 11 commits and 3 npm versions in the last year, no GitHub releases, and 29 open PRs. Version 1.1 changed types and 1.0 broke the string-call API.
  - GPT-6.2 Sol (6.9): Neon has Databricks backing and shipped three npm versions in the past year, including a November pool fix. The repository had 11 commits in that period, well below node-postgres and Postgres.js, and recent updates dropped JSR publishing and removed the onConnect pool hook. Release access and maintainer response times are hard to verify, which widens the range.
- **Used widely: 5.2** (likely 4.0 to 6.5)
  - Claude Opus 5.5 (6.0): Downloads rose from 3.2M to 30.5M per 4 weeks, a ratio of about 9.6 against the median of 4.1, so it is gaining ground fast. Many of those installs likely come through templates, ORM adapters and agent-built apps rather than direct choices. Its 195 dependent repos are low, but that count is often undercounted for scoped packages.
  - GPT-6.2 Sol (4.4): Four-week downloads rose from 3.18 million to 30.47 million, about 9.6× year over year against the catalog median of 4.1×. That shows it is gaining ground on the catalog baseline, although Postgres.js grew faster. The collector found just 195 dependent repositories and 22 packages, and installations through adapters or CI make the number of projects choosing the driver directly uncertain.
- **Vouched for: 6.6** (likely 5.3 to 7.7)
  - Claude Opus 5.5 (6.0): Drizzle and Prisma ship first-class adapters for it, and Cloudflare and PlanetScale document it. There are no independent benchmarks or survey data, and almost all performance claims come from Neon itself.
  - GPT-6.2 Sol (7.2): Drizzle builds on both transports, Prisma maintains a Neon adapter, and an independent benchmark compares the driver with the two main PostgreSQL peers. Cloudflare documents it as a supported option and recommends Hyperdrive for its Workers platform. Driver-specific satisfaction data and independent evidence of sustained production use are sparse.
- **Safe: 8.1** (likely 6.7 to 9.1)
  - Claude Opus 5.5 (8.0): It has no runtime dependencies, an MIT licence, no known advisories, and a company that publishes the releases. There is no Scorecard data, and the 1.0.1 browser warning shows that credentials can leak when it is misused client-side, so the range stays moderate.
  - GPT-6.2 Sol (8.1): The MIT license is permissive, the package installs no runtime dependencies, and the collector found no OSV advisories. Bundled upstream driver code still needs maintenance, and the documented release process checks lint and tests before tagging. The missing Scorecard and limited visibility into npm publishing access and provenance widen the range.

## Good

- The HTTP neon() tagged-template API gives fast one-shot queries. Since 1.0, plain string calls are blocked to prevent SQL injection.
- Its WebSocket Pool and Client follow node-postgres, so existing pg code and ORM adapters (Drizzle, Prisma, Kysely) move over with small changes.
- It has no runtime dependencies, bundles its TypeScript types and uses the MIT licence.
- It is the vendor-maintained default for Neon and is documented by Drizzle, Cloudflare and PlanetScale.

## Bad

- It is tied to Neon's HTTP/WebSocket proxy, so it is not a general Postgres driver.
- Interactive transactions need the WebSocket Pool, and in edge runtimes that pool cannot outlive a single request.
- There are open bugs in TLS error handling, pool options and types, and PRs pile up (29 open against 62 merged ever).
- On Cloudflare Workers with Hyperdrive, both Cloudflare and Neon recommend pg or Postgres.js instead.

## The numbers

- Downloads, 4 weeks: 30M
- In a year: ×9.6
- GitHub stars: 556
- Commits, 12 months: 11
- Last npm release: Nov 2026
- Advisories, 24 months: 0
- Licence: MIT
- GitHub: https://github.com/neondatabase/serverless
- npm: https://www.npmjs.com/package/@neondatabase/serverless

Scores run from 0 to 10 and are the mean of the scores of AI reviewers (Claude Opus 5.5, GPT-6.2 Sol), made on 22 November 2026 from GitHub, npm, OSV, OpenSSF Scorecard, ecosyste.ms, Hacker News and Bluesky data and a web search. The ecosyste.ms count of repositories that use a project is far too low for projects that grew in the last few years, and some reviews quote it. Overall is the reviewers' own judgement for a new project today, not an average of the parts. An AI wrote them and can be wrong.
