neon
БесплатноБез исполняемых скриптовНе проверенNeon serverless Postgres platform with branching, autoscaling, scale-to-zero, and edge-compatible drivers for modern application development
Об этом скилле
Neon Serverless Postgres
Serverless PostgreSQL with database branching, autoscaling compute, and edge-compatible drivers.
When to Use This Skill
- Building serverless or edge applications needing Postgres
- Implementing database branching for dev/test/preview environments
- Setting up autoscaling databases with scale-to-zero
- Integrating Postgres with Vercel, Next.js, or edge runtimes
- Storing vector embeddings with pgvector for AI applications
- Migrating from traditional Postgres to serverless architecture
Quick Start
Create Project with CLI
# Install Neon CLI
npm install -g neonctl
# Authenticate
neonctl auth
# Create project
neonctl projects create --name my-app
# Get connection string
neonctl connection-string
AI-Guided Setup
# Auto-configure for your codebase
npx neonctl@latest init
Connection String Format
postgresql://[user]:[password]@[endpoint].neon.tech/[dbname]?sslmode=require&channel_binding=require
Pooled Connection (for high concurrency):
postgresql://[user]:[password]@[endpoint]-pooler.neon.tech/[dbname]?sslmode=require
Core Concepts
Architecture: Separation of Compute and Storage
┌─────────────────────────────────────────────────────┐
│ Neon Platform │
├─────────────────────────────────────────────────────┤
│ ┌─────────────┐ ┌─────────────┐ ┌─────────────┐ │
│ │ Compute 1 │ │ Compute 2 │ │ Compute N │ │
│ │ (Branch A) │ │ (Branch B) │ │ (Read Rep) │ │
│ └──────┬──────┘ └──────┬──────┘ └──────┬──────┘ │
│ │ │ │ │
│ ┌──────┴────────────────┴────────────────┴──────┐ │
│ │ Shared Storage Layer │ │
│ │ (Copy-on-write, Instant Branching) │ │
│ └────────────────────────────────────────────────┘ │
└─────────────────────────────────────────────────────┘
Key Features
| Feature | Description |
|---|---|
| Branching | Copy-on-write database clones for dev/test/preview |
| Autoscaling | Dynamic compute sizing (0.25-56 CU) |
| Scale-to-Zero | Automatic suspension after inactivity |
| Instant Restore | Point-in-time recovery within retention window |
| Read Replicas | Distribute read workloads |
| Serverless Driver | HTTP/WebSocket for edge runtimes |
Compute Units (CU)
| CU | RAM | Max Connections |
|---|---|---|
| 0.25 | 1 GB | 104 |
| 0.5 | 2 GB | 225 |
| 1 | 4 GB | 225 |
| 2 | 8 GB | 450 |
| 4 | 16 GB | 901 |
| 8 | 32 GB | 1,802 |
| 16 | 64 GB | 3,604 |
| 56 | 224 GB | 4,000+ |
Branching
What Are Branches?
Branches are copy-on-write clones of your database. They're instant to create, fully isolated, and don't impact parent performance.
main (production)
├── dev (development copy)
├── staging (pre-production)
├── preview-pr-123 (PR preview)
└── test-migration (schema testing)
Create Branch via CLI
# Branch from main
neonctl branches create --name dev --project-id <project_id>
# Branch from specific point in time
neonctl branches create --name restore-point --parent main --timestamp "2024-01-15T10:00:00Z"
# Branch from another branch
neonctl branches create --name feature-x --parent dev
Branch Use Cases
Development: Isolated copies for each developer
neonctl branches create --name dev-alice
neonctl branches create --name dev-bob
Testing: Validate schema changes safely
neonctl branches create --name test-migration
# Run migrations on test branch
# If successful, apply to main
Preview Deployments: Automatic branches for PRs (Vercel integration)
Temporary Environments: TTL-based expiration for CI/CD
# Branch auto-deleted after TTL
neonctl branches create --name ci-test --ttl 3600 # 1 hour
Branch Operations
# List branches
neonctl branches list --project-id <project_id>
# Reset branch to parent state
neonctl branches reset --name dev --parent main
# Delete branch
neonctl branches delete --name feature-completed
# Rename branch
neonctl branches rename --name old-name --new-name new-name
Autoscaling & Scale-to-Zero
Autoscaling Configuration
Autoscaling dynamically adjusts compute between min and max limits:
# Configure via CLI
neonctl computes update <compute_id> \
--autoscaling-min 0.5 \
--autoscaling-max 4
Console Path: Branches → Select Branch → Edit Compute
Scale-to-Zero
Computes automatically suspend after inactivity:
| Plan | Default Timeout | Configurable |
|---|---|---|
| Free | 5 minutes | No |
| Launch | 5 minutes | Yes (can disable) |
| Scale | Configurable | 1 min to always-on |
Activation Time: ~500ms cold start when compute resumes
Connection Timeout for Scale-to-Zero
// Add connect_timeout for cold starts
const connectionString = process.env.DATABASE_URL
Установить neon в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл neon?
Neon serverless Postgres platform with branching, autoscaling, scale-to-zero, and edge-compatible drivers for modern application development
Как установить скилл neon?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл neon запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic