Neon is a serverless Postgres platform that separates compute from storage, enabling instant database branching, scale-to-zero, and autoscaling. It is fully compatible with standard Postgres drivers and ORMs. Neon branches allow you to create copy-on-write database clones for preview environments, CI pipelines, and development workflows.
Create a database branch for every pull request, giving each preview deployment its own isolated copy of production data without full database duplication.
Use scale-to-zero compute for development databases that only incur costs when actively queried, with instant cold-start resume times.
Branch the production database for integration tests, run migrations against the branch, and discard it after the pipeline completes.
import { neon } from "@neondatabase/serverless";const sql = neon(process.env.DATABASE_URL!);export async function getUsersWithOrders(minOrders: number) {const rows = await sql`SELECT u.id, u.email, COUNT(o.id) AS order_countFROM users uJOIN orders o ON o.user_id = u.idGROUP BY u.id, u.emailHAVING COUNT(o.id) >= ${minOrders}ORDER BY order_count DESCLIMIT 50`;return rows;}
Seamless integration, great documentation. Set up in under 10 minutes.
2 days ago
Works well for our use case. Would love to see more webhook event types.
1 week ago
Excellent compliance coverage. HIPAA audit trail works perfectly.
2 weeks ago
| Key | Description | Example |
|---|---|---|
| DATABASE_URL | Neon Postgres connection string | postgresql://user:pass@ep-cool-name-123.us-east-2.aws.neon.tech/neondb?sslmode=require |
Neon is a serverless Postgres platform that excels at developer workflows through instant database branching and scale-to-zero compute. It is the best choice for teams that want production Postgres with per-branch isolation for previews and CI, while keeping costs minimal on idle development databases.