neon-vercel-postgres

Installation
Summary

Serverless Postgres setup for edge functions with connection pooling, branching, and ORM integration.

  • Supports Neon Direct (multi-cloud, Cloudflare Workers) and Vercel Postgres (zero-config on Vercel); both use HTTP/WebSocket protocols instead of TCP for edge compatibility
  • Requires pooled connection strings (-pooler. in hostname) for serverless; non-pooled connections exhaust quickly in high-concurrency environments
  • Template tag syntax (sql`...`) prevents SQL injection; string concatenation is unsafe and will fail in v1.0+
  • Drizzle ORM works in all runtimes including Cloudflare Workers; Prisma requires Node.js and won't run in edge functions
  • Neon-specific features include git-like database branching for preview deployments, point-in-time restore, and automatic transaction handling via array or callback syntax
SKILL.md

Neon & Vercel Serverless Postgres

Status: Production Ready Last Updated: 2026-01-21 Dependencies: None Latest Versions: @neondatabase/serverless@1.0.2, @vercel/postgres@0.10.0, drizzle-orm@0.45.1, drizzle-kit@0.31.8, neonctl@2.19.0


Quick Start (5 Minutes)

1. Choose Your Platform

Option A: Neon Direct (multi-cloud, Cloudflare Workers, any serverless)

npm install @neondatabase/serverless

Option B: Vercel Postgres (Vercel-only, zero-config on Vercel)

Related skills
Installs
370
GitHub Stars
776
First Seen
Jan 20, 2026