DEV Community

Alex Spinov
Alex Spinov

Posted on

Neon Has a Free API You Should Know About

Neon is serverless PostgreSQL with autoscaling, branching, and a generous free tier. It separates compute from storage, so you only pay for what you use.

Why Neon Changes PostgreSQL

A startup was paying $200/month for an RDS instance that was idle 90% of the time. With Neon, their dev database costs dropped to $0 (free tier) and production to $19/month with autoscaling.

Key Features:

  • Autoscaling — Scale compute to zero when idle
  • Database Branching — Git-like branches for databases
  • Point-in-Time Recovery — Restore to any second
  • Connection Pooling — Built-in PgBouncer
  • Free Tier — 0.5 GB storage, 1 project, always-available compute

Quick Start

npm install @neondatabase/serverless
Enter fullscreen mode Exit fullscreen mode
import { neon } from "@neondatabase/serverless"

const sql = neon(process.env.DATABASE_URL)
const posts = await sql`SELECT * FROM posts ORDER BY created_at DESC LIMIT 10`
Enter fullscreen mode Exit fullscreen mode

Database Branching

neonctl branches create --name feature/new-schema
# Make schema changes on branch — production is untouched
neonctl branches delete feature/new-schema  # Clean up
Enter fullscreen mode Exit fullscreen mode

Works with Everything

  • Drizzle ORM, Prisma, Kysely, TypeORM
  • Next.js, Nuxt, SvelteKit, Remix
  • Vercel, Cloudflare Workers, Deno Deploy

Why Choose Neon

  1. Scale to zero — no costs when idle
  2. Branching — test schema changes safely
  3. Standard PostgreSQL — no proprietary extensions needed

Check out Neon docs to get started.


Need data pipelines? Check out my Apify actors or email spinov001@gmail.com for custom web scraping.

Top comments (0)