RDS charges $30/month for the smallest PostgreSQL instance — even when nobody's using it. Supabase is great but opinionated. PlanetScale was MySQL-only and shut down its free tier.
What if PostgreSQL scaled to zero when idle, branched like Git, and cost nothing for side projects?
That's Neon.
Free Tier
- 0.5 GB storage
- 1 project, 10 branches
- Autoscaling 0.25-2 compute units
- Scale to zero — $0 when not in use
Key Features
Database Branching
# Create a branch for testing — instant copy, no data duplication
neonctl branches create --name staging --parent main
# Each branch gets its own connection string
# Test migrations on staging without touching production
Serverless Driver (HTTP)
import { neon } from "@neondatabase/serverless";
const sql = neon(process.env.DATABASE_URL);
// Works in Edge Functions, Workers, Lambda — no persistent connection needed
const users = await sql`SELECT * FROM users WHERE active = true LIMIT 20`;
const user = await sql`INSERT INTO users (name, email) VALUES (${name}, ${email}) RETURNING *`;
Connection Pooling (Built-in)
# Standard connection (for long-running servers)
postgres://user:pass@host/db
# Pooled connection (for serverless — add -pooler to hostname)
postgres://user:pass@host-pooler/db
Neon vs Supabase vs PlanetScale vs RDS
| Feature | Neon | Supabase | RDS |
|---|---|---|---|
| Database | PostgreSQL | PostgreSQL | Any |
| Scale to zero | Yes | No | No |
| Branching | Yes (instant) | No | Snapshots (slow) |
| Serverless driver | HTTP | HTTP | TCP only |
| Free tier | 0.5 GB | 500 MB | None |
| Auth/Storage | No | Yes | No |
Choose Neon for pure serverless PostgreSQL. Choose Supabase if you want auth + storage + real-time bundled.
Start here: neon.tech
Need custom data extraction, scraping, or automation? I build tools that collect and process data at scale — 78 actors on Apify Store and 265+ open-source repos. Email me: Spinov001@gmail.com | My Apify Actors
Top comments (0)