git404hub

what is is-offline fr?

lukeed/is-offline — explained in plain English

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

92JavaScriptAudience · developerComplexity · 1/5DormantLicenseSetup · easy

tl;dr

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

vibe map

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 make with this?

VIBE 1

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

VIBE 2

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

VIBE 3

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

VIBE 4

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

what's the stack?

JavaScript

how it stacks up fr

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 i run it?

Difficulty · easy time til it works · 5min
Free to use, modify, and distribute for any purpose, including commercial use.

prompts (copy fr)

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 fr?

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.

peek the repo → explain another one

This repo across BitVibe Labs

double-check against the repo, no cap.