ai/visibilityjs
Wrapper for the Page Visibility API observed · 2026-08-28
Health v2 · maintenance only
23/100
- Activity 0
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 5554
- days_rel: n/a
- days_push: 965
- n_releases_24m: 0
Adoption not part of the score
1839 stars · 106 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
Visibility.js is a JavaScript wrapper around the browser Page Visibility API that hides vendor prefixes and adds high-level helpers. It lets developers run timers and callbacks only when the page is visible, and detect hidden or prerendering states.
Use cases
- run countdown animations only when the tab is visible
- reduce polling frequency for AJAX requests in background tabs
- stop video or slideshow playback when the user switches tabs
- avoid counting prerendered pages as visits in analytics
- pause heavy calculations while the page is hidden
When to choose
- you need visibility-aware timers or polling in a browser app
- you want a simple cross-browser wrapper with fallbacks for old browsers
- you need to detect prerendering to avoid wasted work
When to avoid
- you only target modern browsers and prefer using the native Page Visibility API directly
- you need visibility detection outside the browser (Node.js or mobile native)
- you need a maintained library with frequent updates
Facets
library · maturity maintenance
developer-tools middleware web-development frontend browser-extensions browser page-visibility-api polyfill timers browser-api-wrapper javascript nodejs
2 sources
- readme: https://github.com/ai/visibilityjs · fetched 2026-08-28 · 46576c2d27ea
- registry_npm: https://registry.npmjs.org/visibilityjs · fetched 2026-08-29 · e8a7b8ee1970
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| ai/visibilityjs | main | 23 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem