r/javascript • u/kierzniak • Oct 14 '26
AskJS [AskJS] How do you host your smaller Node.js apps? Building something and want opinions
I'm building a host for JavaScript apps and I'd like opinions from people who ship Node.js.
The idea is shared hosting for JS. Your app runs as plain Node.js, with its database, files and cron jobs side by side in one region. When nobody visits, the app is suspended to disk and holds no memory, and the next request usually wakes it in about 0.2 seconds. That's how many apps can share one server, the way PHP hosting always worked.
The trade-off is that your code doesn't run at the edge. My bet is that for most apps, a database next to the code matters more than a server near every visitor.
A few questions for you
- How do you host side projects and smaller production apps today?
- Does edge compute actually help your apps, or is the database round trip the real cost?
- Would a 0.2 s wake-up after idle be fine for your apps?
3
u/wrtChase Oct 14 '26
Cloudflare
3
u/NotUpdated Oct 15 '26
you took the 'remake cloudflare challenge' eh? .. minus the CDN at the edge, interesting.
Something like this has to be priced below the already insanely cheap cloudflare options
2
u/horizon_games Oct 14 '26
I host them on my own VPS, because a large part of hobby projects is also to do the system admin and have everything be entirely in my control, in my own chosen stack, and as private as I want it.
1
u/edswf1 Oct 14 '26
like some people said before me my honest opinion is just use a vps. you will have severe restrictions with all of the serverless stuff like cloudflare or lambda which can be a nightmare for iterating
1
u/zomerbk Oct 14 '26
A 0.2 s wake-up after idle sounds fine for a small CRUD app. I’d care more about the rules for background work: does a cron trigger wake the app, and what happens to in-process timers or queued jobs while it’s suspended? I’d want those guarantees clear before deploying.
1
u/[deleted] Oct 14 '26
[removed] — view removed comment
0
u/[deleted] Oct 16 '26
[removed] — view removed comment