neondb-serverless

Configure Neon serverless Postgres with connection pooling and Prisma or Drizzle ORM integration.

3|Updated Aug 26, 2026
One-click install
npx skills add https://github.com/Fabric-Pro/fabric-oss --skill neondb-serverless-fabric-pro
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: neondb-serverless
Source: https://github.com/Fabric-Pro/fabric-oss/tree/main/.cursor/skills/neondb-serverless
Command: npx skills add https://github.com/Fabric-Pro/fabric-oss --skill neondb-serverless-fabric-pro

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @neondatabase/serverless.

What problem does it solve? Managing Postgres connections in serverless and edge environments is difficult because traditional drivers exhaust connections and fail on cold starts. This Skill provides patterns for using Neon serverless Postgres with proper connection pooling, edge-compatible queries, and database branching for preview environments. ## Core Features & Use Cases - Connection Pooling: Implements pooled connections using the @neondatabase/serverless Pool API to prevent connection exhaustion in serverless functions. - Edge Runtime Queries: Uses the neon serverless driver for direct SQL queries in edge runtimes like Vercel Edge Functions. - ORM Integration: Guides setup with Prisma or Drizzle ORM, database branching for preview deployments, and automated migrations. - Use Case: When deploying a Next.js app to Vercel, use this Skill to configure a Neon database with pooled connections for API routes and edge-compatible queries for edge handlers, plus a preview branch per Git branch. ## Quick Start Set up a Neon serverless Postgres database with connection pooling for my Next.js app deployed on Vercel.

Frequently Asked Questions about neondb-serverless

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up connection pooling with Neon serverless Postgres?▼

Use the Pool class from @neondatabase/serverless with your DATABASE_URL connection string. Acquire a client with pool.connect(), run queries, and always release the client in a finally block to return it to the pool.

How to query Postgres from Vercel Edge Functions?▼

Use the neon function from @neondatabase/serverless, which works over HTTP and is compatible with edge runtimes. Set the runtime to 'edge' and execute tagged-template SQL queries directly without managing connections.

Does Neon work with Prisma or Drizzle ORM?▼

Yes, Neon integrates with both Prisma and Drizzle ORM. The Skill covers configuring the connection string, running migrations, and optimizing for serverless cold starts with either ORM.

What is database branching in Neon used for?▼

Database branching creates isolated copies of your database per Git branch, enabling preview environments with real schema and data. It supports instant rollbacks and automated migrations without affecting production.

Why do serverless functions fail with traditional Postgres drivers?▼

Traditional drivers hold persistent TCP connections that exhaust database limits when many serverless instances spawn concurrently. Neon's serverless driver uses HTTP or pooled connections designed for ephemeral, cold-starting functions.