Neon Serverless Postgres
Postgres with compute and storage separated, instant branching, and scale to zero.
Neon is a serverless PostgreSQL database with compute and storage separated.
Highlights
- Database branching: create isolated database branches that mirror Git branches — test schema changes on a copy without touching production data.
- Autoscaling and scale to zero: compute scales up under load and to zero when idle.
- Postgres extensions:
pgvector,uuid-ossp,pg_trgm, and the rest of the standard set.
import { neon } from "@neondatabase/serverless";
const sql = neon(process.env.DATABASE_URL!);
export async function getActiveUsers() {
return await sql`SELECT id, name, email FROM users WHERE active = true`;
}Branch per preview
Pair a Neon branch with each preview deployment so reviews never share a database.
Provision it from the Neon connector or select Neon Postgres in the Databases drawer.
Was this page helpful?