
Neon Postgres
This covers the practical stuff for working with Neon's serverless Postgres: how to set up Prisma with both pooled and direct connections (you need both because migrations won't work through the pooler), configuring Drizzle with either the HTTP or WebSocket driver depending on whether you need transactions, and understanding PgBouncer's 10K connection limit. The patterns are solid and specific about when to use what. The sharp edges table exists but is just placeholder text, so you're on your own for gotchas. If you're deploying Postgres in a serverless context or want to use database branching for preview environments, this gets you oriented quickly.
- skills.sh installs
- 206
- GitHub stars
- 33.2K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add davila7/claude-code-templates --skill neon-postgres --agent claude-codeInstalls into .claude/skills of the current project.
Files
Neon Postgres
Patterns
Prisma with Neon Connection
Configure Prisma for Neon with connection pooling.
Use two connection strings:
- DATABASE_URL: Pooled connection for Prisma Client
- DIRECT_URL: Direct connection for Prisma Migrate
The pooled connection uses PgBouncer for up to 10K connections. Direct connection required for migrations (DDL operations).
Drizzle with Neon Serverless Driver
Use Drizzle ORM with Neon's serverless HTTP driver for edge/serverless environments.
Two driver options:
- neon-http: Single queries over HTTP (fastest for one-off queries)
- neon-serverless: WebSocket for transactions and sessions
Connection Pooling with PgBouncer
Neon provides built-in connection pooling via PgBouncer.
Key limits:
- Up to 10,000 concurrent connections to pooler
- Connections still consume underlying Postgres connections
- 7 connections reserved for Neon superuser
Use pooled endpoint for application, direct for migrations.
⚠️ Sharp Edges
Sponsors
Details
- Repository
- github.com/davila7/claude-code-templates
- Categories
- Backend & APIs, Cloud & Infrastructure, Databases
- First seen
- Jun 3, 2026
More from davila7/claude-code-templates
All 618- Address Github Comments205
- Slack Bot Builder205
- Plaid Fintech204
- Daily Meeting Update203
- Github Actions Creator203
- Omero Integration203
- Opentrons Integration202
- Protocolsio Integration202
- Footballbin Predictions201
- Raffle Winner Picker201
- Avalonia Zafiro Development192
- Clickhouse Io192
- Salesforce Development192
- Feedback Mastery190
- Planning190
- Avalonia Layout Zafiro188
- Reducing Entropy187
- Difficult Workplace Conversations185
- Playwright185
- Avalonia Viewmodels Zafiro184
- Plugin Forge184
- Moodle External Api Development177
- Blockrun176
- Busybox On Windows172