Description
is-reachable is a small JavaScript library that checks whether servers can be reached. You pass one or more targets, given as a hostname, a host with a port, an IP address or a URL, and it returns a promise that resolves to true if any target is reachable. In Node.js, HTTP and HTTPS targets are checked with HEAD requests first and fall back to GET if HEAD is not supported. Other ports are checked with a TCP connection. By default any HTTP response, including 404, 401 or 500, counts as reachable. The requireHttpSuccess option makes the check require a successful response. The browser version works with a bundler and only supports HTTP and HTTPS. Because browsers cannot connect to arbitrary ports, it loads common favicon paths and returns true only if those files load. An AbortSignal option lets you cancel the requests. The README has install and usage sections with examples, and the source is public on GitHub.…
Highlights
- Checks hostnames, IP addresses and URLs
- HEAD requests with GET fallback in Node.js
- TCP checks for non-HTTP ports
- Browser version that checks favicon paths
- AbortSignal support to cancel checks
Ratings & Reviews
No ratings yet
Be the first to rate Is Reachable.
People also visit
Is Reachable FAQ
What does is-reachable do?
It checks whether one or more servers can be reached and returns true if any of the targets responds.
Does it work in the browser?
Yes, with a bundler. The browser version only supports HTTP and HTTPS, and it returns true only when the favicon files load, because browsers cannot connect to arbitrary ports.
What counts as reachable?
By default any HTTP response counts, including 401, 403 and 500. Use the requireHttpSuccess option if you need a successful response only.
How do I install it?
Follow the Install section of the README, which shows the install command and a usage example.
Is it free?
The source is public on GitHub. The README does not mention pricing.
What are the best Is Reachable alternatives?
Popular alternatives to Is Reachable include Is Online, Vernet and Minestat. See all Is Reachable alternatives




