I'm currently working on an indie game and planning to add online features. I need to set up a lightweight backend server using Node.js, primarily utilizing the built-in modules like http and url for handling basic requests from the game client. My main requirements for the server are: it needs to be up 24/7 so players can connect at any time, ideally it should be free (especially since I'm self-funding this project), and I need straightforward support for Node.js. At first, the server will handle simple tasks like validating data or managing a basic leaderboard. Although I'm aware of some services like Heroku, Railway, and Render, I'm unsure which ones would be suitable for low-traffic, always-on processes. Can anyone recommend a free service that can host a simple, persistent Node.js server? Thanks!
4 Answers
Most free options are more like startup services rather than actual always-on VMs. You might want to think about setting up your own server at home with something like a Raspberry Pi. It's relatively cheap and can offer similar capabilities to those free-tier services.
I’ve heard good things about the Oracle free tier. They offer free resources, but the setup can be a bit tricky since you’ll need to install your own server. Their guides are pretty detailed if you want to give it a shot!
Thanks for the tip! I’ll check it out.
You might want to consider paying for a VPS droplet, but if you're set on free options, that might not be feasible. However, if online payments are off-limits for you, I understand the need for free hosting.
Yeah, I get that. I really do need it to be free for now.
Have you looked into Cloudflare Workers? They could be a good fit for your lightweight backend needs. Here's a link to check it out: https://www.cloudflare.com/developer-platform/products/workers/

That sounds like a solid plan. Thanks!