Where to Host a Node.js API in 2026
A Node.js API is about the easiest thing there is to host. One process, one port, no build artifacts to serve. Which is exactly why it's worth being deliberate: when everything works everywhere, the differences are all in price, operations, and failure behavior.
The PaaS route is the default for a reason. Render and Railway both take a repo with a package.json and give you a running service with HTTPS, logs, and deploy-on-push. Railway's usage-based pricing tends to be cheapest for small, bursty APIs. Render's flat instance pricing is easier to predict once traffic is steady. Fly.io is the pick when latency matters in more than one region, since it runs real VMs close to users rather than one instance in Virginia.
A VPS costs roughly half as much for the same throughput and is a fine choice if you're comfortable with a process manager. A $6 Hetzner or DigitalOcean instance runs a production Express API with room to spare: node under systemd or PM2, Caddy or nginx in front for TLS, and a deploy script that does git pull and a graceful restart. The trap is treating that box as disposable-free-time infrastructure: unattended-upgrades, a firewall, and fail2ban are the non-negotiable minimum, because an exposed API server gets probed within hours of existing.
Serverless (Lambda-style, or edge functions) suits APIs with spiky or low traffic, since idle time costs nothing. The trade-offs are cold starts, execution limits, and a database-connection problem: classic PostgreSQL connections don't survive thousands of short-lived function instances, so you'll need a pooler or an HTTP-based driver. If your API mostly talks to a database and runs steady traffic, a boring always-on process is simpler and usually cheaper.
Whatever you pick, watch memory before CPU. Node's event loop handles absurd request counts on one core, but a default heap plus a few careless dependencies eats 512MB fast, and most "mystery crashes" on small instances are the OOM killer, not your code. Size for RAM, not vCPUs.
The Provider Finder at /finder matches instances to your budget, and the Tech Stack Wizard at /tech-stack will sanity-check the framework and database pairing first.