The database you love, on a serverless platform designed to help you build reliable and scalable applications faster.
Focus on building applications with time and money-saving features like instant provisioning, autoscaling according to load, and scale to zero.
Discover AutoscalingInstantly branch your data and schema to access isolated DB copies for development, CI/CD, and schema migrations with copy-on-write storage.
Explore BranchingThe Neon serverless driver, designed for fast queries over HTTP
import { neon } from '@neondatabase/serverless';
const sql = neon('postgresql://usr:pass@proj.us-east-2.aws.neon.tech/db');
const posts = await sql('SELECT * FROM posts');
They scale down to zero when idle and don't use additional storage.
Manage thousands of databases programmatically.
Up to 30 days granularity down to the transaction or second.
curl -X POST \
https://console.neon.tech/api/v2/projects/... \
-H 'Authorization: Bearer $NEON_API_KEY' \
-d '{
"branch": {
"name": "dev"
}
}'
Use the Neon API to deploy database-per-tenant architectures. Scale to fleets of thousands of databases without touching a server. Rest easy knowing scale to zero keeps costs low.
Perfect for side projects and learning
For growing applications
For large-scale applications
Integrate it into your language or framework within minutes and unlock a simpler developer workflow.
import { neon } from '@neondatabase/serverless';
export async function GET() {
const sql = neon(process.env.DATABASE_URL);
const rows = await sql("SELECT * FROM posts");
return Response.json({ rows })
}
View Documentation
datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
}
model Post {
id Int @id
title String
content String?
}
View Documentation
import psycopg2
conn = psycopg2.connect(
database="neondb",
user="user",
password="password",
host="host",
port="5432"
)
View Documentation
Dive into success stories
Software Engineer at Retool
"We've been able to automate virtually all database tasks via the Neon API, saving us a tremendous amount of time and engineering effort"
CEO and co-founder of Supergood.ai
"Neon allows us to develop much faster than we've even been used to"
Co-founder and CTO, Topo.io
"The killer feature that convinced us to use Neon was branching: it keeps our engineering velocity high"
The HNSW index algorithm streamlines performance, making high-dimensional vector search remarkably efficient.
Power your AI applications with PostgreSQL's robust features and Neon's reliable infrastructure.
Scale your vector operations effortlessly with our distributed architecture.
Works seamlessly with popular AI frameworks and tools in the ecosystem.
-- Create a table with vector data
CREATE TABLE items (
id bigserial PRIMARY KEY,
embedding vector(384)
);
-- Create a HNSW index
CREATE INDEX ON items
USING hnsw (embedding vector_cosine_ops);
-- Query similar items
SELECT id
FROM items
ORDER BY embedding <=> '[0.1, 0.2, ...]'
LIMIT 5;
SOC2 Compliance
Co-founder at Koyeb
"Neon's serverless philosophy is aligned with our vision: no infrastructure to manage, no servers to provision, no database cluster to maintain"
CEO and co-founder of Supergood.ai
"Neon allows us to develop much faster than we've even been used to"
Databases under management
Uptime guarantee
Enterprise support
The database you love, on a serverless platform designed to help you build reliable and scalable applications faster.