Ross ROSS = Recommend OSS · open-source software intelligence for agents

sindresorhus/is-online

Check if the internet connection is up observed · 2026-08-28

github.com/sindresorhus/is-online · JavaScript · MIT (permissive) observed · 2026-08-28

Health v2 · maintenance only

59/100

  • Activity 52
  • Release rhythm 45
  • Longevity 100
How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.

  • gap_med: 32.5
  • age_days: 4366
  • days_rel: 291
  • days_push: 291
  • n_releases_24m: 3

Full methodology

Adoption not part of the score

1357 stars · 88 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded

A JavaScript library that checks whether the internet connection is actually up, unlike navigator.onLine which only reports local network status. It runs parallel connectivity checks (HTTPS endpoints, DNS queries, captive portal test) in Node.js and the browser and resolves to a boolean.

Use cases

  • check if the internet connection is up
  • detect real internet connectivity in nodejs
  • verify online status before making api calls
  • check ipv6 connectivity
  • detect captive portal internet access
  • show online/offline indicator in a web app
  • wait for network reconnection after going offline

When to choose

  • you need to know if the internet is truly reachable, not just the local network
  • you want a maintained, promise-based connectivity check with timeout and abort support
  • you need the same check to work in both Node.js and bundled browser code
  • you need to assert IPv4 or IPv6 connectivity specifically

When to avoid

  • you only need local network interface status (navigator.onLine suffices)
  • you need continuous connection monitoring rather than on-demand checks
  • you cannot tolerate outbound requests to third-party endpoints
  • you need low-level socket or ping-based diagnostics

Facets

library · maturity active

http-client networking developer-tools networking web-development developer-tools browser cross-platform connectivity-check internet-detection online-status ping-alternative captive-portal nodejs

2 sources

Member repositories

RepositoryRoleHealth v2
sindresorhus/is-onlinemain59

For agents

markdown · JSON · MCP: product_card(name="sindresorhus/is-online")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem