Skip to content

Free hosting for projects and APIs: real free tiers and limits

Where to deploy a front end, an API and a database for free, with each plan's limits checked in November 2026 and the catch in each one: sleep, expiring databases, commercial use and cards.

Ramon Gomes 21 min read Level: Beginner

Also available in: Español, Français, Português

Every month someone asks me where to deploy their course project, their portfolio or the first API they want to show in an interview. What the internet hands them is a "10 free hosting services" list written three years ago. One of those lists, on TabNews (a Brazilian dev community), still recommends Fly.io as a no-card option. Today a new Fly.io account has no free plan at all, just a US$ 1 trial that lasts 7 days.

This guide shows each plan's limits as I checked them in November 2026, with the official pricing link so you can verify, and what happens when you hit the limit. That last part matters more than the size of the limit.

The Three Kinds of "Free"

Diagram with three columns: free forever, with GitHub Pages, Cloudflare static, Neon and Turso as examples; free with a cap, with Vercel Hobby, Netlify, Render and Koyeb; trial with credit, with Railway, Fly.io, AWS and Google Cloud
Read the column before the number. The same 1 GB limit means different things on a permanent plan and on a 30-day trial.

Free forever has no end date and doesn't ask for a card. Neon says so on its pricing page: the Free plan is permanent, not a trial, and needs no credit card.

Free with a cap doesn't expire either, but it has a monthly limit and a rule for what happens when you go over. Netlify takes the site down and shows a "Site not available" page until the billing cycle resets. Vercel blocks the exceeded resource for 30 days, and the Hobby plan doesn't let you buy extra usage. Render suspends free services until the end of the month. Cloudflare's KV returns errors for operations past the daily quota.

Trial with credit is a loan with a deadline. Railway gives you US$ 5 for 30 days and then stops your deploys. AWS gives you US$ 100, plus up to another US$ 100 for exploring services, and the account closes after 6 months. Google Cloud gives you US$ 300 for 90 days. Good for studying, not for keeping a portfolio online.

What You're Deploying Decides the Provider

Before you open any pricing page, answer what your project actually has:

  • Static front end: HTML, CSS and JavaScript that are ready after the build (React with Vite, Astro without server mode, an exported Next.js app). Any CDNNetwork of servers spread around the world that keeps copies of files and pages close to users, serving them faster and offloading the origin server. will do, and it's the cheapest case.
  • Front end with SSR: Next.js, Nuxt or Astro in server mode, generating HTML on every request. It needs somewhere that runs code. If you're not sure you need it, I compared the modes in SSR, SSG, ISR or CSR.
  • Long-running API: a process that stays up listening on a port, like Express, NestJS, FastAPI or Spring. It needs a "web service" or a containerIsolated package that bundles an application with its dependencies and runs the same on any machine, sharing the host operating system. Docker is the most common..
  • Serverless function: code that wakes up on each request and dies afterwards, with a time limit and no disk.
  • Database: almost always lives with a separate provider, and it's where free projects tend to die quietly.

In the table, "good for" says what you can deploy and "runs" lists the languages, according to each provider's official documentation.

Table: Free Plans Checked in November 2026

Provider and official pricing Good for Runs Main free limit Catch Type
GitHub Pages Static front end only HTML, CSS and JS Site up to 1 GB, 100 GB/month of bandwidth (soft limit) Not allowed for online stores or commercial SaaS Forever
Cloudflare Pages and Workers Static front end, front end with SSR, functions, database (D1) JS, TS, Python, Rust and others via Wasm Unlimited static; 100,000 requests/day on Workers; 10 ms of CPU per request Past the daily quota, the operation fails Forever (static) / with a cap
Vercel Hobby Static front end, front end with SSR, functions Node, Bun, Python, Go, Ruby, Rust, Wasm, Edge 100 GB of bandwidth, 1 million invocations, 4 h of active CPU No commercial use; go over and the resource is blocked for 30 days With a cap
Netlify Free Static front end, front end with SSR, functions Functions in JS, TS and Go 300 credits/month (15 per production deploy, 20 per GB) Out of credits, every site goes offline With a cap
Render Front end, API, database Node, Bun, Python, Ruby, Go, Rust, Elixir and anything via Docker 512 MB of RAM, 750 h/month, 5 GB of bandwidth Spins down after 15 min; free Postgres expires in 30 days With a cap
Koyeb Back end only (1 instance) and 5 h Postgres Node, Python, Go, Ruby, PHP, Java, Scala and Dockerfile 512 MB, 0.1 vCPU, 1 instance per organization Credit card required with a US$ 29 pre-authorization hold; sleeps after 1 h With a cap
Firebase Spark Static front end and database (Firestore) HTML, CSS and JS; no Cloud Functions on Spark 10 GB stored, 360 MB/day of transfer A back end requires the paid Blaze plan Forever
Deno Deploy Front end and back end in JS/TS JavaScript and TypeScript 1 million requests, 20 GiB egress, 10 h of CPU Shutting down in April 2027 With a cap
Railway Front end, back end, database Node, Python, PHP, Ruby, Go, Rust, Java, C# and Dockerfile US$ 5 trial for 30 days; then US$ 1/month End of trial stops deploys; US$ 1 won't keep an API running Trial
Fly.io Front end, back end, Postgres Anything with a Dockerfile US$ 1 for 7 days During the trial the machine stops after 5 min running; afterwards it requires a card Trial
Oracle Always Free Linux VM: whatever you install Anything (Oracle Linux, Ubuntu) Arm VM equivalent to 2 OCPUs and 12 GB; 10 TB/month egress Card at sign-up; a VM idle for 7 days may be reclaimed Forever with a cap
Google Cloud Back end in a container (Cloud Run), e2-micro VM Anything that can become a container image Cloud Run: 2 million requests/month Card at sign-up; a budget alert doesn't stop spending With a cap + trial
AWS Many services Many US$ 100 + up to US$ 100 in credit Account closes after 6 months Trial
Neon Database (Postgres) Postgres 1 GB per project, 100 CU-hours/month Suspends after 5 min idle (wakes on the next connection) Forever
Supabase Database (Postgres), auth, files Postgres 500 MB, 2 active projects Pauses after 1 week of inactivity; no automatic backups With a cap
Turso Database (SQLite/libSQL) SQLite 5 GB, 500 million rows read/month The limit counts rows read, not calls Forever
MongoDB Atlas Free Database (MongoDB) MongoDB 512 MB, 100 operations/s Pauses after 30 days without a connection Forever

Figures read on the official pages on 11/19/2026. Before you create an account, open the link in the first column: cloud pricing changes without notice.

Each Catch, in Detail

Sleep and cold start. Render's free web service spins down after 15 minutes without traffic, and the docs warn that waking it up takes about a minute while the browser shows a loading page. For a recruiter clicking the link on your résumé, a minute is a long time. On Koyeb, the free instance sleeps after 1 hour without traffic.

Roadside diner at dawn with the steel shutter half raised, an employee in a blue uniform seen from behind working near the light, stools upside down on the counter, the griddle still off and a customer in a cap waiting at the entrance
That's a cold start: the customer has arrived, but the griddle is still heating up. The first order of the day always takes longer.

Some people fix the sleep with a bot that pings the API every 10 minutes. Do the math: Render gives you 750 hours a month per workspace, and a 31-day month has 744. One service fits awake. Two blow through the quota mid-month and get suspended.

Expiring database. This is the cruelest catch: the site stays up and only the data disappears. Render's free Postgres expires 30 days after it's created, gets a 14-day grace period and is then deleted, with no backup. Supabase pauses a free project after 1 week without activity. MongoDB Atlas pauses the free cluster after 30 days without a single connection. Neon suspends compute after 5 minutes idle, but wakes up on its own at the next connection: that's a cold start, not data loss.

No commercial use. Vercel's terms say the Hobby plan is only for "personal or non-commercial use". GitHub Pages forbids using the free service to run "your online business, e-commerce site" or commercial SaaS. A personal portfolio is fine; an MVP that will charge customers isn't.

Credit card. Oracle warns that most people need a phone and a card to create an account, and that the card isn't charged unless you upgrade. Google Cloud asks for a card or another payment method for the trial. Koyeb is the most surprising case: its pricing FAQ says it requires a card to prevent fraud, places a US$ 29 pre-authorization hold that is then cancelled, and that at sign-up the selected plan is Pro, with prorated billing right after; you can switch to Starter. Neon, Turso, Railway and Firebase Spark state on their pages that they don't ask for a card on the free plan; on Vercel, the card only shows up when you upgrade to Pro.

Provider shutting down. On 10/09/2026 Deno announced that Deno Deploy will shut down in six months; the documentation says April 2027. Don't start a new project there.

Which One to Pick, Case by Case

Five-step diagram for choosing where to host: static front end only, GitHub Pages or Cloudflare; front end with SSR, Vercel or Netlify; API only, Render or Koyeb; front end and API together, Render or Railway; database, Neon or Turso
Start at the first row that describes your project. Nobody needs all of them.

Static front end only (portfolio, landing page, React app with Vite). GitHub Pages or Cloudflare. Free forever, no sleep, with HTTPS (on GitHub Pages, even with a custom domain, via Let's Encrypt). If the site is commercial, go with Cloudflare.

Front end with SSR only (Next.js, Nuxt, Astro in server mode). Vercel Hobby for a personal project: server-rendered pages and API routes turn into functions on their own. Netlify fully supports the App Router, but each production deploy burns 15 of the month's 300 credits. Cloudflare Workers runs Next.js through an adapter, and the 10 ms of CPU per request gets tight on heavy pages.

Back end only (long-running API in Node, Python, Go, Java). Render is the simplest: connect the repository and pick "web service", with Node, Python, Ruby, Go, Rust and Elixir supported natively and everything else via Docker. Accept the sleep. Koyeb is the alternative, with the card caveat. A small JavaScript API fits on Cloudflare Workers, which doesn't sleep. If you want to learn Linux, there's Oracle's VM, where you take care of everything yourself.

Front end and back end in the same place. Next.js with simple API routes: Vercel handles both. A React front end and a separate Express API: Render has free static sites and web services in the same dashboard. Railway does this well, but it's a trial.

Front end in one place, API in another. It's the most common setup (front end on Vercel, API on Render, database on Neon) and the one that breaks most on the first deploy. Two things to watch: the API URL in an environment variable (VITE_API_URL or NEXT_PUBLIC_API_URL, one value per environment, never localhost in the code; it can be public, an address isn't a secret) and CORS on the API, explained below. If the front end calls several services, read about Backend for Frontend, which solves part of this on the server.

Database. For Postgres, I recommend Neon first: permanent and no card. Supabase if you want login and storage out of the box, knowing it pauses after a week idle. Turso for SQLite, Atlas for MongoDB. Avoid Render's free Postgres for anything that needs to last more than a month.

Good Practices for Any Plan

Secrets Stay Out of the Repository

The rule comes from the Twelve-Factor App: config lives apart from the code, in environment variables, and the test is whether the codebase could be made open source right now "without compromising any credentials". In practice:

gitignore
# .gitignore
.env
.env.*
!.env.example

The .env.example goes into the repository with the names and fake values, a practice Alura (a Brazilian tech school) describes. The real values go into the provider's dashboard.

Worn wooden apartment door in a building hallway with a bunch of keys hanging from the lock on the outside, a doormat on the floor and a blurred person walking past in the background
Committing the .env is leaving the key in the door. A week may go by without anyone noticing, or ten minutes.

Public Front-end Variables Go Into the Bundle

The Next.js docs say the NEXT_PUBLIC_ prefix makes the value get inlined at build time into the JavaScript bundle sent to the browser. The Vite docs say VITE_ variables are exposed in client code and should not contain sensitive information such as API keys. Anyone can open DevTools, search the .js file and find the key.

GitGuardian's State of Secrets Sprawl 2026 report counted 28.65 million new secrets in public GitHub commits in 2025 (34% more than the year before); secrets for AI services rose 81%. Of the credentials leaked in 2022, more than 64% still worked in January 2026: nobody rotated them.

Secret Scanning, Push Protection and Rotation

GitHub runs secret scanning for free on public repositories, across the whole history, and notifies the key's provider so it can revoke it. Push protection for personal accounts is on by default and blocks pushes of secrets to public repositories. Don't turn it off when it complains.

If a key leaked, deleting the commit isn't enough: it's still in clones and in the history. The OWASP Secrets Management Cheat Sheet says to revoke an exposed key immediately. The order: generate the new one, update it in the dashboard, redeploy, revoke the old one. And turn on two-factor authentication on GitHub and on the provider, which CERT.br's internet security guide (the Brazilian CERT) lists as the baseline for strong authentication.

CORS Without the Asterisk

With the front end at my-app.vercel.app and the API at my-api.onrender.com, the browser blocks the response unless the API says that origin may read it. That's CORS (MDN). The Access-Control-Allow-Origin: * shortcut works until you need cookies: with credentials, the wildcard is forbidden. In Express:

ts
import cors from 'cors';

const origins = (process.env.CORS_ORIGINS ?? '').split(',');

app.use(cors({ origin: origins, credentials: true }));

With CORS_ORIGINS=https://my-app.vercel.app,http://localhost:5173 in the Render dashboard, each environment allows only what it needs.

Health Check and Logs

A route that returns 200 when the application and the database are up:

ts
app.get('/healthz', async (_req, res) => {
  await db.query('select 1');
  res.json({ ok: true });
});

On Render you enter this path in the dashboard: if it fails for 15 seconds, the instance is pulled from traffic; after 60 seconds, it restarts. And a new deploy only gets traffic after it passes, so a broken deploy doesn't take down what was working. Free logs don't last long: 1 hour on Vercel Hobby, 3 days on Railway's free plan.

Spending Limit

A free plan without a card doesn't charge you. The risk shows up when you add a card (Google Cloud, Firebase Blaze, AWS). Google warns that an alerts-only budget doesn't automatically cap usage or spending: it fires at 50%, 90% and 100% and the bill keeps going. Set up the budget alert anyway and turn off what you don't use.

Backing Up the Free Database

Almost no free database gives you a useful backup. Supabase only runs automatic backups from Pro upward and, on Free, tells you to export with the CLI's db dump. Neon keeps 6 hours for restores. Render's free Postgres has none. For Postgres, a scheduled pg_dump does the job:

bash
pg_dump "$DATABASE_URL" --format=custom --file="backup-$(date +%F).dump"

Run it from a cron job or a scheduled GitHub Actions workflow and store the file somewhere else. CERT.br's guide puts it bluntly: one copy is the same as no copy, so keep at least 2. Test the restore once: a backup you've never restored is just hope.

Traps I've Seen Take Down a First Deploy

  • Server listening on localhost. There's a good write-up about this on TabNews: on the provider, the API has to listen on 0.0.0.0 and on the port that comes in process.env.PORT. On localhost:3000, the deploy goes up and nobody can reach it.
  • Works on my machine. Same write-up, same point: if npm start fails on your machine, it will fail on the deploy. Run the production command locally first.
  • Files saved to disk. User uploads written to the server's folder vanish on the next restart. Render free has no persistent disk, Koyeb free has no volumes, and on Vercel /tmp doesn't survive the instance. Use object storage.
  • SQLite inside the function. Vercel warns that each instance writes its own copy of the file and loses it when it stops. A database for a serverless function is always external.
  • Outdated lists. Fly.io without a card and AWS's "12 months free" no longer apply to new accounts.
  • Four providers for one project. Every hop between data centers adds latency, and every dashboard has its own way of running out.

When to Leave the Free Tier

Free starts getting in the way when the project has real users: the API can't sleep, the database can't expire, you want to charge money. There are two paths: pay for one of the providers' plans (Vercel Pro costs US$ 20 per user per month) or rent a VPS and run everything with Docker.

I took the second one. My projects, this site included, run on a Hostinger VPS with Coolify, an open source platform that deploys from Git, issues HTTPS certificates and spins up databases in containers. Front end, API and Postgres live on the same server, with no sleep and no expiration date. The cost that doesn't show on the bill is time: system updates, firewall, backups and monitoring become your job.

For reference, on 11/19/2026 Hostinger's Brazilian VPS page listed the KVM 1 (1 vCPU, 4 GB of RAM, 50 GB NVMe) at R$ 29.99 per month on a 24-month contract, renewing at R$ 59.99 (prices in Brazilian reais; other regions show their own). If you want to try it, this is my Hostinger link: signing up through it gets you 20% off the first term of any product. It's a referral link: you get the discount and I get a commission, at no extra cost to you. The refund policy gives you 30 days to ask for your money back, with exceptions worth reading first (a VPS, for example, only if your last VPS refund was more than 180 days ago).

If your machine is too weak for development, that's a different problem with a different fix: I wrote about GitHub Codespaces, which gives you a cloud environment with a monthly free quota.

Frequently Asked Questions

What's the best free hosting for a portfolio?

For a static portfolio, GitHub Pages or Cloudflare: they're free forever, they don't sleep and they have HTTPS. If the portfolio is built with Next.js and SSR, Vercel Hobby works, since a personal portfolio counts as non-commercial use.

Where can I host a Node.js API for free?

Render is the simplest route, with 750 hours a month, but the API spins down after 15 minutes without traffic and takes about 1 minute to wake up. Cloudflare Workers doesn't sleep, but it imposes 10 ms of CPU per request and the function model.

Can I use Vercel's free plan for a commercial project?

No. Vercel's terms limit the Hobby plan to personal or non-commercial use. For a product that charges money, use the Pro plan or another provider.

Which free database won't delete my data?

Neon, Turso and MongoDB Atlas have permanent free plans. Supabase and Atlas pause for inactivity (1 week and 30 days), and Render's free Postgres is deleted after 30 days plus a 14-day grace period. With all of them, run your own backups.

Is a NEXT_PUBLIC or VITE variable safe for an API key?

No. They get embedded in the JavaScript sent to the browser, and any visitor can read them. A secret key stays on the server only, in a variable without that prefix.

I leaked a key on GitHub. What do I do?

Generate a new key, swap it in the provider's dashboard, redeploy and revoke the old one immediately. Deleting the commit doesn't fix it, because the key is still in clones and in the history.

When is a VPS worth paying for?

When the API can't sleep, the database has to last, you're going to charge users, or you're already juggling three or four free providers. A VPS removes those limits, in exchange for you handling updates, security and backups.

References

Source: https://ramongomessilva.com.br/blog/free-hosting-for-projects · Accessed on December 03, 2026

Share Share on LinkedIn Share on X
Cite this article

Ready-made reference, with today as the access date.

ABNT

Brazilian standard (NBR 6023). Use it in theses and academic papers submitted in Brazil.

GOMES, Ramon. Free hosting for projects and APIs: real free tiers and limits. Ramon Gomes, 19 nov. 2026. Disponível em: https://ramongomessilva.com.br/blog/free-hosting-for-projects. Acesso em: 3 dez. 2026.

APA

American Psychological Association style. Common in scientific papers and journals, especially in the social, behavioral and health sciences.

Gomes, R. (2026, November 19). Free hosting for projects and APIs: real free tiers and limits. Ramon Gomes. https://ramongomessilva.com.br/blog/free-hosting-for-projects

BibTeX

Format for LaTeX users (Overleaf, for example). Paste it into your .bib file or import it into Zotero or Mendeley.

@online{gomes2026freehostingfor,
  author = {Gomes, Ramon},
  title = {{Free hosting for projects and APIs: real free tiers and limits}},
  organization = {Ramon Gomes},
  year = {2026},
  month = nov,
  date = {2026-11-19},
  url = {https://ramongomessilva.com.br/blog/free-hosting-for-projects},
  urldate = {2026-12-03}
}
Found a mistake?

Wrong fact, broken link, outdated information: tell me and I will fix it.

10 to 2,000 characters. If you can, point to the right source.

Only so I can reply. It never shows on any page of the site.

Written by

Ramon Gomes

Software Engineer

Full stack software engineer. I like taking a messy problem, listening to the people who live with it and shipping something that holds up day to day. These days I split my time between my own products, applied AI and client work.

Available for projects

Need Something Like This Built?

I build websites, systems, apps and AI automations, from design to deploy. Tell me what you need or see what I offer.

Related Articles