neon-vercel-postgres
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
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)
More from jezweb/claude-skills
tailwind-v4-shadcn
|
2.7Ktanstack-query
|
2.5Kshadcn-ui
Install and configure shadcn/ui components for React projects. Guides component selection, installation order, dependency management, customisation with semantic tokens, and common UI recipes (forms, data tables, navigation, modals). Use after tailwind-theme-builder has set up the theme infrastructure, when adding components, building forms, creating data tables, or setting up navigation.
2.5Ktailwind-theme-builder
>
2.2Kfastapi
|
2.0Kcolor-palette
>
1.9K