Wake your local server on demand.
Sleep when nobody's around.
LazyServe sits between ngrok and your local server. Your public URL stays alive on a tiny placeholder; your real app spins up only when a request actually arrives, then shuts down after idle. No more laptop fans roaring while you're at lunch.
$ npm i -g lazyserveTwo processes. One cheap. One on-demand.
A tiny placeholder proxy holds the port that ngrok points at. Your real server only runs when there's actual traffic - and stops as soon as the room goes quiet.
Tiny Fastify proxy holds the port. Near-zero CPU.
Public URL never goes down. No tunnel restart.
Sleeping server gets spawned via child_process.
Proxy waits for your --health-path to return 200.
N minutes with no traffic and the server is shut down.
Built for the ngrok-on-laptop life.
If you've ever closed your laptop with a tunnel still running, only to find your battery at 3% and your demo URL dead, this is for you.
Sleeps when idle
After your configured idle window (default 15 minutes), the real server is killed. No CPU, no fan noise, no battery drain.
Wakes on real traffic
First request triggers a spawn. The cold start is ~2-5 seconds depending on your stack - every subsequent request is instant.
Public URL stays alive
Because the placeholder always holds the port, ngrok never disconnects. Webhooks, demos, and shared links don't break.
Stack-agnostic
Wraps any command. Node, Python, Go, Rails, Deno - if it boots and listens on a port, LazyServe can sleep it.
One install, one wrap.
LazyServe is a CLI you wrap your dev command with. There's also a programmatic API if you'd rather drive it from a script.
# 1. Install globally npm i -g lazyserve # 2. Wrap your dev command lazyserve "npm start" --port 3000 # Done. Your ngrok URL is up; your server only runs on demand.
Every option, one table.
:3000 and the placeholder on :4000 - ngrok points at the placeholder. Override either with --port or --proxy-port.Why not just leave ngrok running?
You can. But your dev server keeps spinning, your laptop keeps heating, and your battery keeps dying. LazyServe keeps the URL up while letting the actual app rest.
Common questions.
Stop heating your laptop for nothing.
One npm install, one wrapped command. LazyServe is MIT-licensed and shipping today.

