Neon serverless driver
A strong pick. 8th of 10 database drivers.
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
Overall7.1
How strongly do we recommend it for a new project today?
Claude Opus 5.5: 6.5, likely 5.5 to 7.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.
- npm downloads ratio: About 9.6x year over year, against a 4.1 median
- neon.com/blog/hyperdrive-neon-faq: Neon says to use pg or Postgres.js with Hyperdrive
- github.com/neondatabase/serverless/issues: Open reliability bugs
- peers node-postgres: Peer with far wider use and more activity
GPT-6.2 Sol: 7.6, likely 6.5 to 8.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.
- github.com/neondatabase/serverless: The two transports cover distinct serverless query and transaction needs.
- developers.cloudflare.com/workers/databases/third-party-integrations/neon: Cloudflare recommends the direct PostgreSQL peers with Hyperdrive.
- orm.drizzle.team/docs/connect-neon: An established ORM supports both transports.
- npm versionsLastYear; github commitsLastYear; dependents; peers: Recent npm updates and growing installs accompany a small indexed footprint and lower commit activity than PostgreSQL peers.
Needed by many3.9
How many developers need a tool for this job?
Claude Opus 5.5: 4.0, likely 3.0 to 5.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.
- github description: Connect to Neon PostgreSQL from serverless/worker/edge functions
- neon.com/docs/serverless: Built for edge and serverless use over HTTP or WebSockets
- databricks.com/blog/databricks-neon: Neon is widely used, and many of its databases are created by AI agents
GPT-6.2 Sol: 3.7, likely 2.7 to 4.8
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.
- survey.stackoverflow.co/2026/technology/data: 57.9% of database-question respondents reported using PostgreSQL.
- github.com/neondatabase/serverless: Documents edge runtimes and the self-hosted WebSocket proxy option.
- developers.cloudflare.com/workers/databases/third-party-integrations/neon: Workers supports the driver and recommends Hyperdrive with standard PostgreSQL drivers.
Helps a lot7.3
How well does it do the job for those who need it?
Claude Opus 5.5: 6.5, likely 5.5 to 7.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.
- github.com/neondatabase/serverless/blob/main/CHANGELOG.md: 1.0 template-only sql; 1.2 per-query config; 1.2.1 pool fix
- github.com/neondatabase/serverless/issues: Open 2026 bugs: TLS unhandled rejections, pool options dropped, type mismatches
- neon.com/blog/http-vs-websockets-for-postgres-queries-at-the-edge: Vendor benchmark of HTTP vs WebSocket latency
- answeroverflow.com/m/1395298905239064656: Users struggle with transactions over HTTP
- developers.cloudflare.com/workers/databases/third-party-integrations/neon: Cloudflare recommends native drivers with Hyperdrive
GPT-6.2 Sol: 8.1, likely 7.0 to 9.0
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.
- github.com/neondatabase/serverless: Documents query APIs, transaction modes, and request-scoped connection handling.
- github.com/neondatabase/serverless/blob/main/CHANGELOG.md: Version 1.2.1 fixes a pool stall after a dropped connection.
- github.com/neondatabase/serverless/issues/210: Open user report of a Kysely 0.29 Pool type mismatch.
- github.com/starmode-base/serverless-db-latency: Independent benchmark compares both Neon transports with pg and Postgres.js across deployment and pooling setups.
Holds up over time6.5
Will it still be a good choice in two years?
Claude Opus 5.5: 6.0, likely 4.5 to 7.5
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.
- github commitsLastYear: 11 commits in the last year
- npm versionsLastYear: 3 versions; latest 1.2.1 on 2026-11-13
- github openPullRequests: 29 open against 62 merged ever
- databricks.com/company/newsroom/press-releases/databricks-agrees-acquire-neon-help-developers-deliver-ai-systems: Databricks is acquiring Neon, which gives corporate backing
GPT-6.2 Sol: 6.9, likely 5.7 to 8.0
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.
- github commitsLastYear; npm versionsLastYear and latestPublishedAt; peers: 11 commits and three npm versions, with 1.2.1 published November 13. PostgreSQL peers recorded 95 and 114 commits.
- github.com/neondatabase/serverless/blob/main/CHANGELOG.md: Records the pool fix, removal of onConnect, and end of JSR publishing.
- neon.com/blog/electric-joins-neon: Confirms Neon operates as a team within Databricks.
- github.com/neondatabase/serverless/issues: Several user-reported compatibility and runtime issues remain open.
Used widely5.2
How many use it, and is that growing?
Claude Opus 5.5: 6.0, likely 5.0 to 7.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.
- npm downloadsLast4Weeks: 30.5M, up from 3.18M a year ago
- dependents: 195 repos and 22 packages
- github stars: 556 stars, far below pg and Postgres.js
- bluesky posts: 0 posts
GPT-6.2 Sol: 4.4, likely 3.0 to 6.0
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.
- npm downloadsLast4Weeks and downloadsSame4WeeksYearAgo; medianDownloadsRatio: Downloads grew 9.6× against the 4.1× catalog baseline.
- dependents; github stars; bluesky posts: 195 indexed repositories, 22 packages, 556 stars, and zero matched Bluesky posts.
- peers downloadsLast4Weeks, downloadsSame4WeeksYearAgo and dependentRepos: Postgres.js grew about 29× and has 1,846 indexed dependent repositories. Node-postgres has 273,357.
- prisma.io/docs/orm/v7/core-concepts/supported-databases/postgresql: Prisma’s Neon adapter provides an indirect route to installation.
Vouched for6.6
Who stands behind it being good?
Claude Opus 5.5: 6.0, likely 4.5 to 7.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.
- planetscale.com/docs/postgres/connecting/neon-serverless-driver: PlanetScale documents the Neon driver for its Postgres
- developers.cloudflare.com/workers/databases/third-party-integrations/neon: Cloudflare integration docs
- github.com/drizzle-team/drizzle-orm/issues/1945: Drizzle has neon-http and neon-serverless adapters
- hackerNews stories: No HN stories matched
GPT-6.2 Sol: 7.2, likely 6.0 to 8.4
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.
- orm.drizzle.team/docs/connect-neon: Drizzle uses the package in its HTTP and WebSocket integrations.
- prisma.io/docs/orm/v7/core-concepts/supported-databases/postgresql: Prisma v7 documents its dedicated Neon serverless adapter.
- developers.cloudflare.com/workers/databases/third-party-integrations/neon: Cloudflare supports the driver and gives Hyperdrive its recommendation.
- github.com/starmode-base/serverless-db-latency: Independent comparison publishes its benchmark runner and raw samples.
Safe8.1
How safe is it to depend on?
Claude Opus 5.5: 8.0, likely 6.5 to 9.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.
- npm dependencies: 0 runtime dependencies
- advisories total: No OSV advisories
- scorecard: No Scorecard data
- github.com/neondatabase/serverless/blob/main/CHANGELOG.md: Template-only sql to block injection; browser-use warning
GPT-6.2 Sol: 8.1, likely 6.8 to 9.2
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.
- npm dependencies and license; advisories total; scorecard: Zero installed dependencies, MIT license, zero OSV advisories, and no Scorecard result.
- github.com/neondatabase/serverless/blob/main/CHANGELOG.md: Documents bundled upstream code, including the pg-pool version pin.
- github.com/neondatabase/serverless/blob/main/DEVELOP.md: Documents pre-tag CI checks and a separate publishing workflow.
- github.com/neondatabase/serverless/security: The repository lists no published security advisories.
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
- npm downloads, 4 weeks
- 30M ×9.6 in a year
- GitHub stars
- 556
- Commits, 12 months
- 11
- npm version
- 1.2.1 Nov 2026
- Versions, 12 months
- 3
- Advisories, 24 months
- 0 of 0 ever
- OpenSSF Scorecard
- None
- Licence
- MIT
Read on 21 November 2026 from GitHub (neondatabase/serverless), npm (@neondatabase/serverless), OSV and the OpenSSF Scorecard.
Database drivers
- 8.7node-postgres
- 8.2MongoDB driver
- 8.1better-sqlite3
- 8.0MySQL2
- 7.6PGlite
- 7.5Postgres.js
- 7.4DuckDB Node Neo
- 7.1Neon serverless driver
- 5.9libSQL client
- 1.9node-sqlite3