
Neon Has a Free API — Serverless Postgres with Branching and Scale to Zero
Neon is serverless Postgres that scales to zero, branches like Git, and has a generous free tier. Your database sleeps when idle and wakes in milliseconds — perfect for serverless apps. Why Neon? Scale to zero — no compute charges when idle Database branching — clone your entire DB for testing in seconds 0.5s cold start — instant wake from sleep Free tier — 512MB storage, 190 compute hours/month Quick Start Sign up at neon.tech Create a project Copy the connection string import { neon } from ' @neondatabase/serverless ' ; const sql = neon ( process . env . DATABASE_URL ! ); const result = await sql `SELECT * FROM users WHERE id = ${ userId } ` ; With Drizzle ORM import { drizzle } from ' drizzle-orm/neon-http ' ; import { neon } from ' @neondatabase/serverless ' ; const client = neon ( process . env . DATABASE_URL ! ); const db = drizzle ( client ); const users = await db . select (). from ( usersTable ); Connection Pooling (for long-running servers) import { Pool } from ' @neondatabas
Continue reading on Dev.to Tutorial
Opens in a new tab



