Contents
Before picking a free host for a Node.js app, decide what kind of app it is. A Next.js site or an API that responds and finishes fits the serverless model, which free plans are generous with. An Express server that stays running, a WebSocket app or a bot needs a persistent process, and that’s where free plans get much tighter.
The free options, per their official pages
| Service | Model | Key limits |
|---|---|---|
| Vercel (Hobby) | Serverless functions and Next.js | 100 GB data transfer and 4 hours of active CPU a month, 300-second function maximum; exceed a quota and you usually wait 30 days |
| Render (Free) | Persistent web server | Spins down after 15 minutes without traffic and wakes in about a minute, 750 hours a month per workspace; other service types aren’t free |
| Railway (Free) | App server | $1 a month of credit, 0.5 GB memory per service, 3 services in one project, sleeps after 5 to 10 minutes without outbound traffic |
| Fly.io (Free) | Small virtual machines | $1 of credit with no card, $5 of usage a month once you add a card, a cap of 3 machines |
| Heroku | App server | No free plan on the pricing page; the cheapest, Eco, is paid and sleeps after 30 minutes |
This information comes from each service’s public pages in November 2026 and may change; figures are in US dollars as shown. Also check each service’s terms on commercial use of the free plan.
Serverless functions or a persistent server
| Serverless (Vercel) | Persistent server (Render, Railway, Fly.io) | |
|---|---|---|
| Good for | Next.js and short APIs | Express, NestJS, WebSockets |
| State between requests | Nothing kept in memory | Stays running until it sleeps |
| Long tasks | Capped by function duration | Possible while the app is awake |
| Bots and workers | Not suited to a bot that listens continuously | Possible, but sleep stops it |
If your project is Next.js, the comparison between Vercel and your own hosting is in Vercel vs your own hosting.
Steps to make a Node.js app ready for any platform
- Listen on the port the platform provides:
const express = require("express");
const app = express();
app.get("/", (req, res) => res.send("ok"));
const port = process.env.PORT || 3000;
app.listen(port, () => console.log("listening on " + port));
- Add a start command to
package.json:
{
"scripts": { "start": "node server.js" },
"engines": { "node": ">=20" }
}
- Don’t upload
node_modulesor your.envfile. Put secrets in the platform’s environment variable settings. - Connect the GitHub repository and let the platform run
npm installthennpm start. - Open the logs if you get an error; most problems are a wrong port or a missing package.
When free is enough
- You’re learning Node.js or trying a new framework.
- A prototype you show a team or client.
- A personal Next.js site with little traffic.
When you need a paid plan
- The app must answer instantly without waiting to start.
- You have a WebSocket server, worker or bot that runs continuously.
- You need a custom domain, a permanent database and backups.
- The project is commercial and the free plan’s terms don’t allow it.
For paid platform alternatives, see Render and Railway alternatives.
On ArabyHost
The AI/Developer plans are paid and run Node.js 20 and 24 through CloudLinux’s Node.js Selector and Phusion Passenger, which starts your app and restarts it when needed. You get SSH jailed in CageFS to run npm install, Git deploys from GitHub, a custom domain with free SSL, a MySQL or MariaDB database with daily backups, and background workers kept alive with cron. Steps in the Node.js deploy guide and the Next.js deploy guide.
The limits, plainly: no root, no Docker, no GPU, and per-account resource limits. Prices are in your currency and renew at your sign-up price; details on the pricing page.
FAQ
Does Express run on free Vercel?
It runs as a serverless function that starts on each request and then stops, not as a persistent server. That suits short APIs, but not WebSockets or tasks that run longer than the function's maximum duration.
Why is my free Node.js app slow to answer the first time?
Platforms like Render and Railway stop a free app when there's no traffic and start it again on the next request. On Render it spins down after 15 minutes without traffic and takes about a minute to come back.
Is Heroku still free for Node.js apps?
Heroku's pricing page in November 2026 shows no free plan. Its cheapest plan is Eco, which is paid and sleeps after 30 minutes of inactivity.
Can I run a database with Node.js for free?
For testing, yes, through temporary or size-limited free databases such as Render's free Postgres, which expires after 30 days. Real data needs a permanent database with backups.