{"adoption": {"forks": 106, "observed_at": "2026-08-28T04:05:42.886995+00:00", "stars": 1839}, "canonical_url": "https://ross.abutalabs.com/products/visibilityjs", "card": {"archived": false, "artifact_type": "library", "description": "Wrapper for the Page Visibility API", "domain": ["web-development", "frontend", "browser-extensions"], "enriched": true, "function": ["developer-tools", "middleware"], "health_score": 20, "homepage": null, "language": "JavaScript", "license": "MIT", "license_family": "permissive", "maturity": "maintenance", "member_repos": ["ai/visibilityjs"], "name": "ai/visibilityjs", "platform": ["browser"], "pushed_at": "2024-01-11T16:41:43+00:00", "repo": "ai/visibilityjs", "stars": 1839, "tags": ["page-visibility-api", "polyfill", "timers", "browser-api-wrapper", "javascript", "nodejs"], "topics": [], "urls": [], "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"], "what_it_is": "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.", "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"], "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"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/visibilityjs", "repo": "ai/visibilityjs", "role": "main", "score": 23}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:05:42.886995+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-30T03:18:14.361636+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "46576c2d27ea4e262e5c992ada2f35efdfb5f2a70f9a481c81672b1b5d3f5867", "fetched_at": "2026-08-28T04:05:42.886995+00:00", "kind": "readme", "missing": false, "url": "https://github.com/ai/visibilityjs"}, {"content_hash": "e8a7b8ee197005f3371bd9da4039afefa0514a2ae54bfd35f0e1afa730f2a11f", "fetched_at": "2026-08-29T10:57:14.748932+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/visibilityjs"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:05:42.886995+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-30T03:18:14.361636+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "46576c2d27ea4e262e5c992ada2f35efdfb5f2a70f9a481c81672b1b5d3f5867", "fetched_at": "2026-08-28T04:05:42.886995+00:00", "kind": "readme", "missing": false, "url": "https://github.com/ai/visibilityjs"}, {"content_hash": "e8a7b8ee197005f3371bd9da4039afefa0514a2ae54bfd35f0e1afa730f2a11f", "fetched_at": "2026-08-29T10:57:14.748932+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/visibilityjs"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-30T03:18:14.361636+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "46576c2d27ea4e262e5c992ada2f35efdfb5f2a70f9a481c81672b1b5d3f5867", "fetched_at": "2026-08-28T04:05:42.886995+00:00", "kind": "readme", "missing": false, "url": "https://github.com/ai/visibilityjs"}, {"content_hash": "e8a7b8ee197005f3371bd9da4039afefa0514a2ae54bfd35f0e1afa730f2a11f", "fetched_at": "2026-08-29T10:57:14.748932+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/visibilityjs"}], "taxonomy_version": 1}, "health_score": {"inputs": ["days_since_push", "days_since_release", "archived"], "kind": "computed", "method": "health_v1"}, "homepage": {"kind": "observed", "observed_at": "2026-08-28T04:05:42.886995+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:05:42.886995+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:05:42.886995+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-30T03:18:14.361636+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "46576c2d27ea4e262e5c992ada2f35efdfb5f2a70f9a481c81672b1b5d3f5867", "fetched_at": "2026-08-28T04:05:42.886995+00:00", "kind": "readme", "missing": false, "url": "https://github.com/ai/visibilityjs"}, {"content_hash": "e8a7b8ee197005f3371bd9da4039afefa0514a2ae54bfd35f0e1afa730f2a11f", "fetched_at": "2026-08-29T10:57:14.748932+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/visibilityjs"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:05:42.886995+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:05:42.886995+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-30T03:18:14.361636+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "46576c2d27ea4e262e5c992ada2f35efdfb5f2a70f9a481c81672b1b5d3f5867", "fetched_at": "2026-08-28T04:05:42.886995+00:00", "kind": "readme", "missing": false, "url": "https://github.com/ai/visibilityjs"}, {"content_hash": "e8a7b8ee197005f3371bd9da4039afefa0514a2ae54bfd35f0e1afa730f2a11f", "fetched_at": "2026-08-29T10:57:14.748932+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/visibilityjs"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:05:42.886995+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:05:42.886995+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:05:42.886995+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-30T03:18:14.361636+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "46576c2d27ea4e262e5c992ada2f35efdfb5f2a70f9a481c81672b1b5d3f5867", "fetched_at": "2026-08-28T04:05:42.886995+00:00", "kind": "readme", "missing": false, "url": "https://github.com/ai/visibilityjs"}, {"content_hash": "e8a7b8ee197005f3371bd9da4039afefa0514a2ae54bfd35f0e1afa730f2a11f", "fetched_at": "2026-08-29T10:57:14.748932+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/visibilityjs"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:05:42.886995+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:05:42.886995+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-30T03:18:14.361636+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "46576c2d27ea4e262e5c992ada2f35efdfb5f2a70f9a481c81672b1b5d3f5867", "fetched_at": "2026-08-28T04:05:42.886995+00:00", "kind": "readme", "missing": false, "url": "https://github.com/ai/visibilityjs"}, {"content_hash": "e8a7b8ee197005f3371bd9da4039afefa0514a2ae54bfd35f0e1afa730f2a11f", "fetched_at": "2026-08-29T10:57:14.748932+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/visibilityjs"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-30T03:18:14.361636+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "46576c2d27ea4e262e5c992ada2f35efdfb5f2a70f9a481c81672b1b5d3f5867", "fetched_at": "2026-08-28T04:05:42.886995+00:00", "kind": "readme", "missing": false, "url": "https://github.com/ai/visibilityjs"}, {"content_hash": "e8a7b8ee197005f3371bd9da4039afefa0514a2ae54bfd35f0e1afa730f2a11f", "fetched_at": "2026-08-29T10:57:14.748932+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/visibilityjs"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-30T03:18:14.361636+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "46576c2d27ea4e262e5c992ada2f35efdfb5f2a70f9a481c81672b1b5d3f5867", "fetched_at": "2026-08-28T04:05:42.886995+00:00", "kind": "readme", "missing": false, "url": "https://github.com/ai/visibilityjs"}, {"content_hash": "e8a7b8ee197005f3371bd9da4039afefa0514a2ae54bfd35f0e1afa730f2a11f", "fetched_at": "2026-08-29T10:57:14.748932+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/visibilityjs"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-30T03:18:14.361636+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "46576c2d27ea4e262e5c992ada2f35efdfb5f2a70f9a481c81672b1b5d3f5867", "fetched_at": "2026-08-28T04:05:42.886995+00:00", "kind": "readme", "missing": false, "url": "https://github.com/ai/visibilityjs"}, {"content_hash": "e8a7b8ee197005f3371bd9da4039afefa0514a2ae54bfd35f0e1afa730f2a11f", "fetched_at": "2026-08-29T10:57:14.748932+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/visibilityjs"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 0, "longevity": 100, "rhythm": 8}, "computed_at": "2026-09-02T17:46:02.011165+00:00", "flags": [], "formula": "round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)", "inputs": {"age_days": 5554, "days_push": 965, "days_rel": null, "gap_med": null, "n_releases_24m": 0}, "score": 23, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}