
Neon Has a Free API That Gives You Serverless PostgreSQL With Branching
Neon is serverless PostgreSQL. Scales to zero, branches like git, generous free tier. Your database sleeps when inactive and wakes in <500ms. Quick Start import { neon } from ' @neondatabase/serverless ' const sql = neon ( process . env . DATABASE_URL ! ) const users = await sql \ `SELECT * FROM users WHERE active = true \` const user = await sql \` INSERT INTO users (name, email) VALUES ( ${ ' John ' } , ${ ' john@example.com ' } ) RETURNING * \` Database Branching # Create a branch (instant copy of your database) neon branches create --name feature/new-auth # Each branch has its own connection string # Test migrations without touching production npx prisma migrate dev # runs against branch # Merge back (apply migrations to main) neon branches merge feature/new-auth Free Tier 0.5 GB storage 191 compute hours/month (auto-suspend saves hours) Branching included Autoscaling included Neon vs Supabase vs PlanetScale Feature Neon Supabase PlanetScale Database PostgreSQL PostgreSQL MySQL Ser
Continue reading on Dev.to Webdev
Opens in a new tab


