Explore the directory
DatabasesProvider SDK

Neon Serverless Driver

Neon's PostgreSQL driver over HTTP and WebSockets.

@neondatabase/serverlessTypeScript / JavaScript

Overview

A native database driver designed for serverless and edge environments, with a fetch query API and node-postgres-compatible Pool and Client interfaces.

Best for

PostgreSQL access from environments where TCP connections are inconvenient.

Install

TypeScript / JavaScript
@neondatabase/serverless
npm install @neondatabase/serverless

Provider

1 listed
  • Neon PostgreSQL

This SDK targets its provider’s API. See the official docs for available services and endpoints.

Features

  • HTTP SQL queries
  • WebSocket Pool and Client
  • Parameterized query tags
  • Non-interactive HTTP transactions

Caveats

  • A driver, not an ORM or database migration toolkit.
  • Interactive sessions require the WebSocket path.
  • In serverless handlers, create and close WebSocket connections within the request.

Sources & verification

  1. github.com/neondatabase/serverless (opens in a new tab)
  2. raw.githubusercontent.com/neondatabase/serverless/main/README.md (opens in a new tab)

Sources reviewed

Back to the directory