Hi all,
I got n8n running on Vercel’s free Hobby plan with a free Neon Postgres database and my own domain for webhooks and forms.
A Vercel function starts n8n on demand, proxies requests to it, and stops it after 4 idle minutes so the database can sleep. Workflows and credentials are stored in Postgres, so they survive restarts.
Tested on n8n 2.42.6: webhooks, form triggers, encrypted credentials, and cold starts all work.
Limits: schedule/polling triggers are unreliable, cold starts take 10-60s, and it’s for personal, non-commercial use only. It’s a hobby experiment, not a production setup.
Repo and setup guide: GitHub - muhammad-zulqarnain-awan/n8n-on-vercel · GitHub
Feedback and your own numbers are welcome.
3 Likes
You have hit the structural limit rather than a bug: the Schedule and Interval triggers keep their timer in the n8n process itself, so a host that stops after four idle minutes cannot fire them reliably no matter how they are configured. The fix that keeps the free setup is to move scheduling outside n8n - run an external cron (a small always-on scheduler, GitHub Actions on a timer, or any uptime service) that hits a Webhook URL in your workflow, and use a Webhook trigger as the entry point instead of Schedule. Two things worth checking on the Neon side as well: use the pooled connection string rather than the direct one, because parallel cold starts each open their own connection and will exhaust the direct limit, and keep the idle-stop window longer than your slowest workflow or a run can be cut off mid-flight. The 10-60s cold start is the real cost of this design - fine for background jobs, but if anything here is customer-facing, that latency is the reason to move to a small always-on container.
1 Like
Sweet, can’t wait to use this!
Very well written. Great share!!!
1 Like
Yes, @HomelabAgent , if you checked out the github repo, I already fixed these issues.
Add the github action cron job that runs every 30 mins and also, I keep the vercel in built neon database, which will inject all the db variables, pooling, etc in the env variables automatically.
Will appreciate, if you give a star to the repo.
Thank you, will really appreciate if you give it a star.