Networking · head to head
ngrok vs Stimulus

ngrok
Networking
Reverse tunnel service that gives a local or private service a public URL without opening a firewall
- From
- Free
- Free plan
- Yes

Stimulus
Web Development
Small JavaScript framework that adds behaviour to existing server rendered HTML
- From
- Free
- Free plan
- Yes
The short version
- Stimulus is an MIT licensed JavaScript framework.
- Both are free.
- Only ngrok lists outbound agent tunnels; only Stimulus lists works with server rendered HTML.
- Where ngrok falls short: bandwidth is metered on paid tiers, so a workload that quietly grows into serving real traffic produces overage rather than a flat bill.
- Where Stimulus falls short: does not render templates, so HTML must come from the server or another tool.
How do ngrok and Stimulus differ?
ngrok and Stimulus differ on pricing model (Per user per month against Open-source), platforms and category (Networking against Web Development). Only the attributes on which ngrok and Stimulus actually diverge.
Identical on both: starting price (Free), free tier (Yes).
Not yet recorded: founded for ngrok.
Which features does each one have?
They share no listed features; 6 appear only for ngrok and 7 only for Stimulus. Drawn from each product's published feature list. An absence here means we hold no record of it - not that the product lacks it.
Only in ngrok
- Outbound agent tunnels
- Static domains
- Traffic policy
- Request inspection
- Kubernetes ingress
- TCP and TLS endpoints
Only in Stimulus
- Controllers attached through data-controller
- Actions that bind DOM events to controller methods
- Targets for locating elements inside a controller
- Values that read, write and observe data attributes
- Works with server rendered HTML
- Designed to pair with Turbo in Hotwire
- MIT licensed open source
What is each one used for?
ngrok is most often brought in for giving a partner a temporary authenticated endpoint into an internal API; Stimulus for adding small interactions to Rails views. The jobs each tool is most often brought in to do.
ngrok
- Receiving webhooks from a payment or messaging provider on a laptop during developmentnot Stimulus
- Demonstrating a work in progress application to someone outside the network without deploying itnot Stimulus
- Publishing a service inside a private network or Kubernetes cluster without a public load balancernot Stimulus
- Giving a partner a temporary authenticated endpoint into an internal APInot Stimulus
Stimulus
- Adding small interactions to Rails viewsnot ngrok
- Progressive enhancement of server rendered pagesnot ngrok
- Pairing with Turbo for fast page updatesnot ngrok
- Replacing scattered jQuery codenot ngrok
- Form and widget behaviour on existing HTMLnot ngrok
Where do ngrok and Stimulus fall short?
Stimulus's most cited limit: does not render templates, so HTML must come from the server or another tool. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.
ngrok
- Free HTTP endpoints show a browser interstitial before the page loads, which breaks first impressions in demos and confuses anyone you send the link to
- All traffic passes through ngrok infrastructure, so you inherit its latency and an ngrok incident takes every published endpoint down at once with no local failover
- Pricing is per user seat plus allowances, so a platform team publishing many endpoints ends up buying seats for people who never open the dashboard
- Bandwidth is metered on paid tiers, so a workload that quietly grows into serving real traffic produces overage rather than a flat bill
- Traffic policy configuration is specific to ngrok, so the authentication and routing logic you accumulate at the edge has to be rebuilt if you later move to a conventional ingress
Stimulus
- Does not render templates, so HTML must come from the server or another tool
- No built in routing, data fetching or client side state management
- Behaviour is tied to data attributes in markup, which some teams find harder to trace
- Not a component framework, so large interactive interfaces need other libraries
How much do ngrok and Stimulus cost?
ngrok is free to use; Stimulus is free to use. Plan by plan below, from each vendor's own pricing page.
ngrok
Free- FreeFree
- One static domain
- HTTP endpoints with a browser interstitial
- Limited simultaneous connections
- PersonalOn request
- Removes the interstitial warning page
- Additional reserved domains
- TCP endpoints
- ProOn request
- Per user billing with team accounts
- Traffic policy rules and edge authentication
- Higher bandwidth allowances
- EnterpriseOn request
- Custom terms and volume pricing
- Dedicated capacity options
- Compliance and audit requirements
Stimulus
FreeNo published plan breakdown. See the Stimulus review.
Which should you pick?
Choose ngrok if
- You need outbound agent tunnels.
- You want to start without paying.
- You work on Linux, macOS, Windows, Self-hosted.
- You also want static domains.
Choose Stimulus if
- You need controllers attached through data-controller.
- You want to start without paying.
- You also want actions that bind dom events to controller methods.
Questions people ask
- Is ngrok or Stimulus better?
- It depends on the job. ngrok fits receiving webhooks from a payment or messaging provider on a laptop during development; Stimulus fits adding small interactions to Rails views. ngrok starts at Free and Stimulus at Free.
- Which is cheaper, ngrok or Stimulus?
- ngrok starts at Free and Stimulus at Free.
- Does ngrok or Stimulus run on more platforms?
- ngrok runs on Linux, macOS, Windows, Self-hosted. Stimulus runs on Web.
- Can I use ngrok for free?
- Both have a free tier, so you can try either at no cost before committing.
- What is ngrok best used for?
- ngrok is most often used for receiving webhooks from a payment or messaging provider on a laptop during development, demonstrating a work in progress application to someone outside the network without deploying it, publishing a service inside a private network or kubernetes cluster without a public load balancer, giving a partner a temporary authenticated endpoint into an internal api. Of those, receiving webhooks from a payment or messaging provider on a laptop during development and demonstrating a work in progress application to someone outside the network without deploying it are not what Stimulus is typically brought in for.
- What can ngrok do that Stimulus cannot?
- ngrok covers Outbound agent tunnels, Static domains, Traffic policy, Request inspection. Stimulus covers Controllers attached through data-controller, Actions that bind DOM events to controller methods, Targets for locating elements inside a controller, Values that read, write and observe data attributes.
Answered from the vendors’ own pages
ngrok: Can I use it in production?
It is sold for that now, with static domains, policy rules and a Kubernetes operator. The question is whether you accept a third party on the traffic path for every request.
Stimulus: What is Stimulus used for?
Stimulus enhances HTML that already exists on the page by connecting JavaScript controllers to elements through data attributes. It does not generate the HTML itself.
Sourcengrok: Why does my free URL show a warning page?
Free HTTP endpoints carry an interstitial. Removing it requires a paid plan, and it is the most common reason people upgrade.
Stimulus: What are the core concepts in Stimulus?
Controllers are the main unit, and they are joined by actions, targets and values. Actions link events to methods, targets find elements and values store state in data attributes.
Sourcengrok: Does it work for SSH or a database?
Yes through TCP endpoints, which are a paid feature.
Stimulus: What licence does Stimulus use?
The GitHub repository states that Stimulus is released under the MIT licence. It is free to use.
Sourcengrok: What is the self hosted alternative?
A reverse proxy on a server you own with a tunnel back to the service, or one of the self hosted tunnel projects. All of them cost more setup time than the thing they replace.
Stimulus: Why was Stimulus created?
According to the project's origin page, Basecamp used a mix of jQuery, vanilla JavaScript and object oriented subsystems that were hard to reuse and learn. Stimulus condensed those patterns into a small, consistent framework.
SourceRelated pages
Other head to heads
- ngrok vs Twingate
- ngrok vs Tailscale
- ngrok vs Cloudflare
- ngrok vs Traefik
- ngrok vs ZeroTier
- ngrok vs Netdata
- ngrok vs pfSense
- ngrok vs Kentik
- ngrok vs Cisco Meraki
- ngrok vs OPNsense
- ngrok vs Nebula
- ngrok vs Zabbix
- ngrok vs Cacti
- ngrok vs ExtraHop
- ngrok vs F5 BIG-IP
- ngrok vs LogicMonitor
- ngrok vs Speedtest by Ookla
- ngrok vs WhatsUp Gold
- ngrok vs Vue.js
- ngrok vs React
- ngrok vs Alpine.js
- ngrok vs HTMX
- ngrok vs Svelte
- ngrok vs Angular
- ngrok vs MUI
- ngrok vs Preact
- ngrok vs SolidJS
- ngrok vs Bootstrap
- ngrok vs Vercel
- ngrok vs Express.js
- ngrok vs FastAPI
- ngrok vs Apache HTTP Server
- ngrok vs Base UI
- ngrok vs Jekyll
- ngrok vs v0 by Vercel
- ngrok vs Turbopack
- Stimulus vs Twingate
- Stimulus vs Tailscale
- Stimulus vs Cloudflare
- Stimulus vs Traefik
- Stimulus vs ZeroTier
- Stimulus vs Netdata
- Stimulus vs pfSense
- Stimulus vs Kentik
- Stimulus vs Cisco Meraki
- Stimulus vs OPNsense
- Stimulus vs Nebula
- Stimulus vs Zabbix
- Stimulus vs Cacti
- Stimulus vs ExtraHop
- Stimulus vs F5 BIG-IP
- Stimulus vs LogicMonitor
- Stimulus vs Speedtest by Ookla
- Stimulus vs WhatsUp Gold
- Stimulus vs Vue.js
- Stimulus vs React
- Stimulus vs Alpine.js
- Stimulus vs HTMX
- Stimulus vs Svelte
- Stimulus vs Angular
- Stimulus vs MUI
- Stimulus vs Preact
- Stimulus vs SolidJS
- Stimulus vs Bootstrap
- Stimulus vs Vercel
- Stimulus vs Express.js
- Stimulus vs FastAPI
- Stimulus vs Apache HTTP Server
- Stimulus vs Base UI
- Stimulus vs Jekyll
- Stimulus vs v0 by Vercel
- Stimulus vs Turbopack
