Table of content
Neon Postgres with Vercel integration for serverless databases.
Installation
npx claude-plugins install @jezweb/claude-skills/neon-vercel-postgres
Contents
Folders: assets, references, scripts, templates
Files: README.md, SKILL.md
Documentation
Status: ✅ Production Ready
Package Versions: @neondatabase/serverless@1.0.2, @vercel/postgres@0.10.0
Last Updated: 2025-10-29
What This Skill Does
This skill provides comprehensive patterns for integrating Neon serverless Postgres and Vercel Postgres (built on Neon) into serverless and edge environments. It covers both direct Neon usage (multi-cloud, Cloudflare Workers) and Vercel-specific setup (zero-config on Vercel).
Key Features
- ✅ HTTP/WebSocket-based Postgres (no TCP required - works in edge runtimes)
- ✅ Connection pooling patterns for serverless environments
- ✅ Database branching workflows (git-like database branches for preview environments)
- ✅ Drizzle ORM and Prisma integration
- ✅ Transaction handling patterns
- ✅ SQL injection prevention (template tag syntax)
- ✅ Point-in-time restore (PITR) and backup strategies
- ✅ Migration workflows across multiple ORMs
Auto-Trigger Keywords
Claude should automatically propose this skill when encountering:
Package Names
@neondatabase/serverless@vercel/postgresneonctldrizzle-orm(with Postgres)@prisma/adapter-neon
Technologies
- neon postgres
- vercel postgres
- serverless postgres
- postgres edge
- postgres cloudflare
- postgres vercel edge
- http postgres
- websocket postgres
- edge database
- serverless sql
Use Cases
- neon branching
- database branches
- pooled connection
- postgres migrations
- point in time restore
- preview environments database
- serverless database setup
- edge postgres
Error Messages & Problems
- “connection pool exhausted”
- “too many connections for role”
- “TCP connections are not supported in serverless”
- “connection requires SSL”
- “sslmode required”
- “PrismaClient is unable to be run in the browser”
- “Query timeout”
- “transaction timeout”
- “database does not exist” (after branch deletion)
- SQL injection concerns in serverless
- Connection string format confusion
Frameworks & Platforms
- cloudflare workers postgres
- vercel edge postgres
- next.js postgres
- vite postgres
- server actions postgres
- drizzle neon
- prisma neon
When to Use This Skill
✅ Use This Skill When:
- Setting up Neon Postgres for Cloudflare Workers, Vercel Edge Functions, or any serverless environment
- Configuring Vercel Postgres for Next.js applications with zero-config setup
- Implementing database branching for preview deployments (PR-specific database branches)
- Migrating from D1/SQLite to Postgres or from traditional Postgres to serverless Postgres
- Integrating Drizzle ORM or Prisma with Neon/Vercel Postgres
- Debugging connection pool errors, transaction timeouts, or SSL configuration issues
- Setting up point-in-time restore (PITR) or database backup strategies
- Encountering errors like:
connection pool exhaustedTCP connections not supportedsslmode requiredPrismaClient is unable to be run in the browser- Connection leaks or memory issues
- Need git-like workflows for databases (create, test, merge, delete branches)
- Want HTTP-based Postgres that works in edge runtimes without TCP
❌ Don’t Use This Skill For:
- SQLite databases (use
cloudflare-d1skill instead) - Traditional Postgres with TCP connections (not serverless-optimized)
- MySQL or other SQL databases
- NoSQL databases (MongoDB, DynamoDB, etc.)
- Read-only databases or data warehouses
Errors Prevented (15 Total)
This skill prevents 15 documented errors:
- Connection pool exhausted - Using non-pooled connection strings in serverless
- TCP connections not supported - Using traditional
pgclient in edge runtime - SQL injection - String concatenation instead of template tags
- Missing SSL mode - Connection string without
?sslmode=require - Connection leak - Forgetting
client.release()in manual transactions - Wrong environment variable - Using
DATABASE_URLvsPOSTGRES_URLconfusion - Transaction timeout in edge functions - Long-running transactions
- Prisma in Cloudflare Workers - Prisma requires Node.js runtime
- Branch API authentication error - Missing
NEON_API_KEY - Stale connection after branch delete - Application using deleted branch connection string
- Query timeout on cold start - Neon auto-suspend wake time
- Drizzle schema mismatch - Database schema changed but types not regenerated
- Migration conflicts across branches - Multiple branches with different migration histories
- PITR timestamp out of range - Restoring from outside retention window
- Wrong Prisma adapter - Not using
@prisma/adapter-neonfor serverless
Sources: GitHub issues, official docs, Stack Overflow, production debugging
Token Efficiency
Estimated Token Savings: ~65% vs manual setup Time to Implement: 5-10 minutes (vs 30-60 minutes without skill)
Without This Ski
…(truncated)