Build a complete Next.js app on free tiers. 10 infrastructure layers — hosting, database, auth, storage, email, monitoring, CI/CD, analytics, search, and background jobs. Exact limits, growth costs.

The Complete Free Next.js Stack

Everything you need to build and ship a Next.js app — without spending a dollar. This guide recommends the best free tier for each layer of your Next.js infrastructure — 10 layers from hosting to background jobs — with exact limits pulled from our index of 1,547+ verified developer tools.

Designed for solo developers, indie hackers, and small teams building SaaS products, side projects, or MVPs with Next.js. Each recommendation includes alternatives, a "when you'll outgrow it" guide, "why not X" callouts for popular-but-not-recommended options, and stability notes based on our tracking of 554 real pricing changes. The limits on this page were read from vendor pricing pages between 2026-07-05 and 2026-09-01.

$0/month
Total infrastructure cost for a Next.js SaaS on free tiers
$0 covers the 9 of 10 picks whose free tier our own badge still reads as active. It does not cover Algolia (at risk).

Stack Overview

Layer Recommended Key Limit Stability
🚀 Hosting & Deployment Vercel Hobby plan with 100 GB/month Fast Data Transfer, 1M function invocations, 4 hrs Active CPU, 360 GB-hrs… active
🗄️ Database Neon Serverless Postgres with branching — free tier includes 100 CU-hours/month per project, 0.5 GB storage per… active
🔐 Authentication Clerk Drop-in auth with 50K monthly retained users free, unlimited apps active
📦 Object Storage Cloudflare R2 Object storage with zero egress fees — 10 GB storage, 1M writes, 10M reads/month free active
✉️ Email & Transactional Resend Developer-first email API — 3K emails/month free (100/day cap), 3 domains, 1K marketing contacts/month, 5 AI… active
🐛 Monitoring & Error Tracking Sentry Developer tier: 1 user, 5K errors/month, 5M spans/month, 50 session replays, 5GB application logs, 1GB… active
⚙️ CI/CD GitHub Actions Free CI/CD for public repos (unlimited minutes). Private repos: 2,000 min/mo GitHub-hosted runners, 500 MB… active
📊 Analytics PostHog Product analytics — 1M events/month, 5K session replays, 1M feature flag requests, 100K error events, A/B… active
🔍 Search Algolia There is a free tier with 10K search requests/month and 50K records. The 'Grow' plan includes 10K search… read 2026-08-28 at risk
⏱️ Background Jobs & Cron Inngest Serverless workflow orchestration — 50K executions, 500K events ingested, 5 concurrent steps, 500 MB span… active

🚀 Hosting & Deployment

Recommended Vercel Hobby active

The creators of Next.js. Zero-config deployments with automatic edge optimization, ISR, middleware, and server components. Hobby plan: 100 GB bandwidth, 100 hours serverless function execution, 6,000 build minutes. Preview deploys on every PR. The only platform with day-one support for every Next.js feature.

Hobby plan with 100 GB/month Fast Data Transfer, 1M function invocations, 4 hrs Active CPU, 360 GB-hrs Provisioned Memory, 1M edge requests, 1 GB Blob Storage, 5K image transformations/month. Note: Pro plan…

When you'll outgrow it: When you exceed 100 GB bandwidth/month or need commercial use (Hobby plan is non-commercial). Railway's Hobby plan is $5/month including $5 of usage, with no commercial restriction. Netlify gives 100 GB bandwidth with serverless functions. Cloudflare Pages has unlimited bandwidth but limited Next.js feature support.
⚠️ Why not Heroku: No free tier since November 2022. Why not Render: Free tier spins down after 15 minutes of inactivity — cold starts of 30-60 seconds kill the Next.js experience.
Full comparison guide →

🗄️ Database

Recommended Neon Free active

Serverless Postgres with branching — perfect for Next.js server components and API routes. Free tier: 0.5 GiB storage, 190+ compute hours/month (scales to zero), unlimited databases. Neon's serverless driver (@neondatabase/serverless) works in Vercel Edge Functions where traditional Postgres clients cannot.

Serverless Postgres with branching — free tier includes 100 CU-hours/month per project, 0.5 GB storage per project, up to 100 projects, 10 branches per project, Neon Auth (60K MAU), auto-scaling up to 2 CU, scale-to-zero

When you'll outgrow it: When you exceed 0.5 GiB storage or need always-on connections. Supabase offers 500 MB storage with built-in auth and realtime but pauses after 7 days inactive. Turso gives 9 GB total storage across edge locations. PlanetScale's free tier was removed in April 2024.
⚠️ Why not PlanetScale: Free tier removed April 2024 — now starts at $39/month. Why not MongoDB Atlas: 512 MB storage is workable, but Postgres is the better fit for Next.js's server-side patterns (Prisma, Drizzle, raw SQL in server components).
Full comparison guide →

🔐 Authentication

Recommended Clerk Hobby active

Best-in-class Next.js DX with @clerk/nextjs SDK, middleware integration, and pre-built UI components. Free tier: 10,000 monthly active users, unlimited social logins, email/password, MFA, organizations, and webhooks. Drops right into App Router with zero auth boilerplate.

Drop-in auth with 50K monthly retained users free, unlimited apps

When you'll outgrow it: When you exceed 10,000 MAU ($0.02/MAU overage — $1,800/month at 100K MAU). Auth0 offers 25,000 MAU free but with fewer built-in UI components. Supabase Auth gives 50,000 MAU with the cheapest scale-up ($0.00325/MAU). For maximum free ceiling, WorkOS AuthKit offers 1M MAU free for basic auth.
⚠️ Why not NextAuth/Auth.js: Self-hosted and free at any scale, but you build every UI yourself and manage session storage. Good if you want full control; Clerk if you want to ship fast.
Full comparison guide →

📦 Object Storage

Recommended Cloudflare R2 Free active

Zero egress fees — the standout differentiator. 10 GB storage, 1 million Class A operations, 10 million Class B operations per month. S3-compatible API means any S3 SDK works. Perfect for Next.js image uploads, user files, and static assets that would cost a fortune on S3 egress.

Object storage with zero egress fees — 10 GB storage, 1M writes, 10M reads/month free

When you'll outgrow it: When you exceed 10 GB storage. At scale, R2 saves dramatically: 1 TB stored + 10 TB egress costs ~$15/month on R2 vs ~$925/month on S3 (the egress tax). Backblaze B2 offers 10 GB free and free egress up to 3x what you store, no CDN required. Tigris gives 5 GB with S3 compatibility and global distribution.
⚠️ Why not AWS S3: The 5 GB free tier expires after 12 months, then egress costs $0.09/GB. At 100 GB egress/month, that's $9/month just for bandwidth — R2 charges $0.
Full comparison guide →

✉️ Email & Transactional

Recommended Resend Free active

Modern developer-first email API built for React. 3,000 emails/month, 100/day on free tier. The react-email library lets you build email templates with JSX — same component model as your Next.js app. TypeScript SDK, webhook delivery tracking, and domain verification.

Developer-first email API — 3K emails/month free (100/day cap), 3 domains, 1K marketing contacts/month, 5 AI credits, 30-day data retention

When you'll outgrow it: When you exceed 3,000 emails/month or 100/day. Amazon SES has no free tier since AWS restructured its Free Tier on July 16, 2025, but at $0.10/1K it is the cheapest at scale. Brevo gives 300 emails/day (9,000/month) with no monthly cap and includes marketing automation. Mailtrap is best for testing with virtual inboxes.
⚠️ Why not SendGrid: Free tier removed May 2025. Existing free plans reduced to 100 emails/day. The Twilio acquisition killed the developer-first positioning. Resend is the spiritual successor.
Full comparison guide →

🐛 Monitoring & Error Tracking

Recommended Sentry Developer active

Developer tier: 5,000 errors/month, 10,000 performance transactions, 50 session replays, 1 GB attachments. First-class Next.js SDK with automatic instrumentation for API routes, server components, middleware, and client-side errors. Source map support for production debugging.

Developer tier: 1 user, 5K errors/month, 5M spans/month, 50 session replays, 5GB application logs, 1GB attachments

When you'll outgrow it: When you exceed 5,000 errors/month or need more than 1 team member. BetterStack combines uptime monitoring (10 monitors) with incident management. Grafana Cloud offers 10,000 series metrics + 50 GB logs + 50 GB traces. Highlight.io bundles 500 sessions + 1,000 errors + 1M logs on free tier.
⚠️ Why not Datadog: Free tier has only 1-day metric retention — practically unusable for debugging. The per-host pricing model gets expensive fast: ~$5,500/month at 100 hosts.
Full comparison guide →

⚙️ CI/CD

Recommended GitHub Actions Free active

2,000 minutes/month on free tier for public repos (unlimited) and private repos. Native GitHub integration means CI runs on every push and PR. Next.js apps typically build in 1-3 minutes — that's 660-2,000 builds/month. Matrix testing, caching, and reusable workflows included.

Free CI/CD for public repos (unlimited minutes). Private repos: 2,000 min/mo GitHub-hosted runners, 500 MB artifact storage, 10 GB cache/repo. Self-hosted runners remain free — planned $0.002/min charge was postponed…

When you'll outgrow it: When you exceed 2,000 minutes/month on private repos or need GPU/ARM runners. Railway auto-deploys from git with zero CI config. Vercel's built-in CI handles the deploy pipeline — you only need GitHub Actions for tests and linting. GitLab CI offers 400 minutes/month on free tier.
Full comparison guide →

📊 Analytics

Recommended PostHog Free active

1 million events/month free — includes product analytics, 5,000 session replays, feature flags (1M requests), A/B testing, and surveys. Replaces 3-4 separate tools. Self-hostable. PostHog's Next.js SDK integrates with App Router and supports both client and server-side tracking.

Product analytics — 1M events/month, 5K session replays, 1M feature flag requests, 100K error events, A/B testing. No credit card required

When you'll outgrow it: When you exceed 1M events/month. Plausible CE is self-hosted with unlimited everything — privacy-first with no cookies. Umami is another lightweight self-hosted option. Vercel Analytics is free on Hobby but limited to basic web analytics.
⚠️ Why not Google Analytics: Free at any scale but heavy, privacy-invasive (requires cookie consent banners in EU), and the GA4 migration broke many workflows. PostHog gives you more features with better privacy.
Full comparison guide →

⏱️ Background Jobs & Cron

Recommended Inngest Hobby active

Free tier: 25,000 function runs/month with event-driven architecture, retries, scheduling, and step functions. First-class Next.js integration — define functions in your API routes, Inngest handles queuing, retries, and scheduling. No infrastructure to manage.

Serverless workflow orchestration — 50K executions, 500K events ingested, 5 concurrent steps, 500 MB span data ingested, 100K queue depth, 50 realtime connections

When you'll outgrow it: When you exceed 25,000 runs/month. QStash (Upstash) offers 500 messages/day for simple HTTP-based job queuing. Trigger.dev gives 50,000 runs/month with a more code-first approach. Vercel Cron Jobs are free on Hobby for scheduled tasks (1/day minimum interval) but don't handle event-driven workflows.

Stability Notes

Recent pricing changes affecting vendors in this stack. Based on our tracking of 554 deal changes across 1,547+ developer tools.

pricing restructured Netlify: Restructured to credit-based pricing; sites pause on credit exhaustion Source ↗
restriction Netlify: No longer in force (2026-04-14). Every repo committer is now charged as a full Pro seat ($19/mo) when using Netlify CMS or Identity with ... Source ↗
limits reduced Supabase: Project pause policy tightened — inactive projects now pause after 1 week Source ↗
pricing postponed GitHub Actions: Self-hosted runner per-minute fee ($0.002/min) announced for March 2026 was postponed indefinitely after community backlash. Self-hosted ... Source ↗
pricing restructured Sentry: Switched from performance units to spans-based metrics for error and performance monitoring Source ↗
pricing restructured Neon: Moved to fully usage-based pricing model post-Databricks acquisition — free tier storage now per-project, projects increased 10→100, bran... Source ↗
pricing restructured Vercel: Pro plan moved to credit-based model ($20/mo credit pool), Hobby plan metrics renamed and restructured — bandwidth→Fast Data Transfer, se... Source ↗
free tier removed PlanetScale: PlanetScale removed free Hobby plan entirely. All databases on free tier deleted after 30-day grace period. Minimum plan now Scaler at $3... Source ↗
limits increased Auth0: Auth0 increased free tier from 7,500 to 25,000 monthly active users. Largest free tier expansion since Okta acquisition. Makes Auth0 comp... Source ↗
limits increased Railway: Railway expanded free tier following $100M Series B. Trial plan now includes $5 in free credits/month, sufficient for small hobby project... Source ↗
pricing restructured Vercel: New Pro projects now default to Turbo build machines (30 vCPUs, 60GB memory) at $0.126/minute — 9x more expensive than Standard machines ... Source ↗
limits increased Mailtrap: Free tier increased from 3,500 to 4,000 emails/month We hold no source for this record, so it does not set Mailtrap's rating.

View all 554 pricing changes →

The $20/Month Upgrade — What to Spend First

When you're ready to spend your first dollar, here's where it matters most. Sorted by which limits you'll likely hit first:

Layer Free Limit First Paid Plan What You Get
Database ⬆ hit first 0.5 GiB storage Launch $19/mo 10 GiB storage, 300 compute hours, autoscaling
Hosting ⬆ hit first 100 GB bandwidth Pro $20/mo/member 1 TB bandwidth, commercial use, faster builds
Auth 10,000 MAU Pro $25/mo + $0.02/MAU Unlimited MAU, custom domains, premium support
Email 3,000 emails/mo Pro $20/mo 50,000 emails/mo, custom domains, analytics
Storage 10 GB $0.015/GB/mo Unlimited storage, still zero egress
Monitoring 5,000 errors/mo Team $26/mo 50,000 errors, unlimited members, integrations
Analytics 1M events/mo $0.00031/event Pay-as-you-go beyond 1M, group analytics
Search 10,000 records Build $0.50/1K req 100,000 records, more search requests
Jobs 25,000 runs/mo Team $50/mo 125,000 runs, concurrency, priority support
CI/CD 2,000 min/mo Team $4/user/mo 3,000 min/mo, required reviewers

The $39/month breakpoint: Database (Neon Launch $19/mo) + Hosting (Vercel Pro $20/mo) unlocks commercial use, 10 GiB Postgres, 1 TB bandwidth, and faster builds. Everything else — auth (10K MAU), email (3K/mo), monitoring (5K errors), analytics (1M events), storage (10 GB R2), search (10K records), jobs (25K runs), CI (2,000 min) — stays free well past your first 1,000 users.

Architecture: How It Fits Together

A typical Next.js SaaS connects these layers:

User → Vercel (Next.js hosting + edge) → Neon (Postgres via serverless driver) → Clerk (auth middleware + session) → R2 (file uploads via presigned URLs) → Resend (transactional emails from API routes) → Inngest (background jobs triggered by events) → PostHog (analytics + feature flags) → Sentry (error tracking + performance) → Algolia (search index, synced from Postgres) GitHub → GitHub Actions (CI: tests + lint) → Vercel (CD: auto-deploy)

All connections use HTTPS APIs — no VPCs, no SSH tunnels, no complex networking. Each service is independently replaceable.

Need a different framework? See our Free Startup Stack for framework-agnostic infrastructure, Free Frontend Stack for Jamstack/static sites, or Free DevOps Stack for infrastructure tooling. Or search our full index of 1,547+ developer deals.

Get this data in your AI editor

Get personalized Next.js stack recommendations from your AI assistant. Compare free tiers, check limits, and plan your infrastructure — directly in your editor.

claude mcp add agentdeals -- npx -y agentdeals