neon
/neon
Pomaga pracować z bezserwerowym Postgresem Neon: gałęzie danych, pule połączeń, pgvector, pg_trgm i zapytania SQL.
- Autor
- LineLuLan ↗
- Repozytorium
- line-harness ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 11.11.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 2
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 11.11.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Pomaga pracować z bezserwerowym Postgresem Neon: gałęzie danych, pule połączeń, pgvector, pg_trgm i zapytania SQL.
Oryginalny opis (EN)
Use when working with Neon serverless Postgres, branching, connection pooling, pgvector, pg_trgm, SQL queries, and edge-friendly database access.
Jak działa
- When to Use
- Core Patterns
- Key Features
Podgląd SKILL.md
---
name: neon
description: "Use when working with Neon serverless Postgres, branching, connection pooling, pgvector, pg_trgm, SQL queries, and edge-friendly database access."
verified: 2026-08
---
# Neon
> Serverless Postgres — autoscaling, branching, and HTTP-accessible with zero cold starts.
## When to Use
- Serverless/edge Postgres (Vercel, Cloudflare Workers, Lambda)
- Branch-based dev workflows (preview branches per PR)
- Postgres with pgvector (AI embeddings) or pg_trgm (fuzzy search)
- Connection pooling without external infrastructure
## Core Patterns
### Client Setup
```typescript
import { neon } from "@neondatabase/serverless";
const sql = neon(process.env.DATABASE_URL!);
// Single query — tagged template (returns rows directly)
const users = await sql`SELECT * FROM users WHERE id = ${userId}`;
// Parameterized
const results = await sql`
SELECT * FROM posts WHERE title ILIKE ${"%" + query + "%"} LIMIT ${limit}
`;
```
### Transactions
```typescript
import { neon } from "@neondatabase/serverless";
const sql = neon(process.env.DATABASE_URL!);
const tx = sql.transaction([
sql`UPDATE accounts SET balance = balance - ${amount} WHERE id = ${from}`,
sql`UPDATE accounts SET balance = balance + ${amount} WHERE id = ${to}`,
]);
await tx; // atomic — all or nothing
```
### WebSocket (Long-lived / Node.js)
```typescript
import { Pool } from "@neondatabase/serverless";
const pool = new Pool({ connectionString: process.env.DATABASE_URL });
const { rows } = await pool.query("SELECT * FROM users WHERE id = $1", [userId]);
await pool.end();
```
### Drizzle Integration
```typescript
import { neon } from "@neondatabase/serverless";
import { drizzle } from "drizzle-orm/neon-http";
const sql = neon(process.env.DATABASE_URL!);
const db = drizzle(sql);
const users = await db.select().from(usersTable).where(eq(usersTable.id, id));
```
### Prisma Integration
```prisma
datasource db {
provider = "postgresql"
url = env("DATABASE_URL") // pooled connection
directUrl = env("DIRECT_URL") // direct for migrations
}
```
## Key Features
- **Branching**: `neonctl branches create --name preview/pr-42` — instant DB copies for dev/preview
- **Autoscaling**: Scales compute 0.25–8 CU; scales to zero on inactivity
- **Connection pooling**: Built-in PgBouncer — use pooled URL for serverless
- **pg_trgm**: `CREATE EXTENSION pg_trgm;` — fuzzy text search with GIN indexes
- **pgvector**: `CREATE EXTENSION vector;` — embeddings with HNSW/IVFFlat indexes
- **HTTP driver**: Stateless SQL over HTTPS — ideal for edge/serverless (one round-trip per query)
### CLI
```bash
neonctl projects create --name myapp # Create project
neonctl branches create --name staging # Branch from main
neonctl branches reset staging # Reset branch to parent
neonctl connection-string --branch main # Get connection URL
```
Pliki w paczce (2)
- SKILL.md 3 KB
- agents/openai.yaml 1 KB
Wersje
| Repozytorium | Wynik | Licencja |
|---|---|---|
| Ta strona · LineLuLan/line-harness | 100 | MIT |
| jaakla/open-gis | 100 | MIT |
| ericrisco/rsc-harness | 100 | MIT |
| TerminalSkills/skills | 100 | Apache-2.0 |
| jmanuelrosa/agent-catalog | 100 | MIT |
| G1Joshi/Agent-Skills | 100 | MIT |
| neondatabase/agent-skills | 95 | Apache-2.0 |
| neondatabase/agent-skills | 95 | Apache-2.0 |
| AbdulbosidCoder/ai-team | 95 | MIT |
Migawka bazy z 13.11.2026 · wersja paczki b09fae61e472 (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 90neon-postgres
Podaje wzorce dla serverless Postgres Neon: branching, pooling połączeń i integrację z Prisma i Drizzle. - 90neon-postgres
Podpowiada wzorce dla bezserwerowego Postgresa Neon: rozgałęzienia bazy, pule połączeń i integrację z Prisma lub Drizzle. - 100neon-drizzle-stinger
Obsługuje Neon Postgres i Drizzle ORM w SvelteKit na Vercel: połączenia, schemat, migracje, branching, pgvector, RLS oraz migrację ze Supabase. - 90neon-postgres
Podaje fakty o bazie Neon projektu: gałęzie dev i live, pulę połączeń, zimne starty i przywracanie danych. - 100neon-postgres
Zawiera wskazówki do pracy z Neon Serverless Postgres: start, praca lokalna, wybór metody połączenia, uwierzytelnianie, Data API, Neon CLI oraz Platform API i SDK. - 100neon-postgres
Zawiera wskazówki do pracy z Neon Serverless Postgres: start, praca lokalna, wybór metody połączenia, uwierzytelnianie, Data API, Neon CLI oraz Platform API i SDK.