# HubSpot/offline

Automatically display online/offline indication to your users

Repository: https://github.com/HubSpot/offline
Canonical: https://ross.abutalabs.com/products/offline
Homepage: http://github.hubspot.com/offline/docs/welcome
Language: CSS
License: MIT
License Family: permissive
Archived: true
Last push: 2023-02-26T00:19:50+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 4699, "days_push": 1285, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: archived
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 8573, forks 820 (observed 2026-08-28T04:10:23.617237+00:00)

## What it is
Offline.js is a small browser JavaScript library that automatically detects when users lose internet connectivity and shows a themed online/offline indicator, similar to Gmail's. It monitors AJAX requests, confirms connection status via test requests, and replays failed requests once the connection is restored.

## Use cases
- show users an offline banner when they lose internet connection
- automatically retry ajax requests that failed while offline
- detect network connectivity changes in a web app
- alert users when their connection is restored
- queue requests made while offline and replay them later

## When to choose
- you want a lightweight (~3kb) drop-in offline indicator with themes
- your app relies on AJAX and should gracefully handle dropped connections
- you need automatic request replay after reconnection

## When to avoid
- you need an actively maintained project - it is explicitly unmaintained
- you need offline data caching or service-worker-based PWA offline support
- your app uses fetch or websockets rather than XHR-based AJAX

## Facets
- artifact type: library
- maturity: maintenance
- function: http-client, ui-components, middleware
- domain: web-development, frontend, networking
- platform: browser
- tags: offline-detection, connectivity, ajax-retry, network-status, ux, javascript

## Member repositories
- HubSpot/offline (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:23.617237+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:26:16.386909+00:00, confidence not recorded.
  - readme: https://github.com/HubSpot/offline (fetched 2026-08-28T04:10:23.617237+00:00, sha 38add7f672dd)
  - homepage: http://github.hubspot.com/offline/docs/welcome (fetched 2026-08-29T08:26:30.664698+00:00, sha 0dc13b3f53bc)
  - site_page: http://github.hubspot.com/offline (fetched 2026-08-29T08:26:30.667568+00:00, sha 8f9950a6aa9c)
- Data as of 2026-08-30T08:39:29.467469+00:00.
