whatisgithub

What is is-offline?

lukeed/is-offline — explained in plain English

Analysis updated 2026-07-17 · repo last pushed 2018-12-28

92JavaScriptAudience · developerComplexity · 1/5DormantLicenseSetup · easy

In one sentence

A tiny 174-byte JavaScript library that detects whether a user is online or offline and alerts you when that status changes.

Mindmap

mindmap
  root((repo))
    What it does
      Check online status
      Watch for changes
      Tiny footprint
    Tech stack
      JavaScript
      ESM and CommonJS
      Script tag support
    Use cases
      Pause uploads offline
      Show disconnect message
      Retry failed requests
      Cache map tiles
    Audience
      Frontend developers
      Vibe coders
      Web app builders
      PWA developers

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Automatically save drafts locally when a note-taking app detects the user has gone offline.

USE CASE 2

Show a connection status banner in a web app that updates instantly when the network changes.

USE CASE 3

Pause and buffer a video player differently based on live connection quality.

USE CASE 4

Retry failed API requests automatically once the app detects the connection is back.

What is it built with?

JavaScript

How does it compare?

lukeed/is-offlinecocktailpeanut/image-to-promptruanyf/user-tracking-demos
Stars929391
LanguageJavaScriptJavaScriptJavaScript
Last pushed2018-12-282019-04-15
MaintenanceDormantDormant
Setup difficultyeasymoderateeasy
Complexity1/53/52/5
Audiencedevelopervibe coderdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 5min
Free to use, modify, and distribute for any purpose, including commercial use.

Copy-paste prompts

Prompt 1
Show me how to use is-offline's watch() function to display a banner when my web app loses internet connection.
Prompt 2
Write code using is-offline's check() function to decide whether to queue a form submission for later.
Prompt 3
Help me integrate is-offline into a note-taking app so drafts save locally when offline and sync when back online.
Prompt 4
How do I stop the is-offline watch() listener once my component unmounts?

Frequently asked questions

What is is-offline?

A tiny 174-byte JavaScript library that detects whether a user is online or offline and alerts you when that status changes.

What language is is-offline written in?

Mainly JavaScript. The stack also includes JavaScript.

Is is-offline actively maintained?

Dormant — no commits in 2+ years (last push 2018-12-28).

What license does is-offline use?

Free to use, modify, and distribute for any purpose, including commercial use.

How hard is is-offline to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is is-offline for?

Mainly developer.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.