> ## Documentation Index
> Fetch the complete documentation index at: https://docs-2.manicule.dev/docs/llms.txt
> Use this file to discover all available pages before exploring further.
> For every page in one file, fetch https://docs-2.manicule.dev/docs/llms-full.txt (large).
> To search and read these docs as tools, connect the MCP server at https://docs-2.manicule.dev/docs/api/mcp.
> Every agent surface: https://docs-2.manicule.dev/docs/.well-known/llms-manifest.json

# Neon Serverless Postgres (/docs/databases/neon-postgres)

<!-- agent-signals: reading_time_min: 1 · est_tokens: 198 · updated: 2026-11-11 -->
Related: [Managed Databases & Storage Overview](/docs/databases/overview.md), [Cloudflare D1 (Edge SQLite)](/docs/databases/cloudflare-d1.md), [Supabase Managed Postgres](/docs/databases/supabase-postgres.md), [Database Migrations & ORM Setup](/docs/databases/migrations.md)

> Serverless PostgreSQL with instant database branching and auto-scaling.

**Neon** is a serverless PostgreSQL database with compute and storage separated.

***

## Highlights

* **Database Branching**: Create isolated database branches matching Git branches. Test schema changes safely on isolated copies without touching production data.
* **Autoscaling & Scale-to-Zero**: Compute automatically scales up under load and scales to zero when idle.
* **Postgres Compatibility**: Supports standard PostgreSQL extensions (`pgvector`, `uuid-ossp`, `pg_trgm`).

```typescript
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`;
}
```
