{"adoption": {"forks": 183, "observed_at": "2026-08-28T04:05:58.173289+00:00", "stars": 1950}, "canonical_url": "https://ross.abutalabs.com/products/ifvisiblejs", "card": {"archived": false, "artifact_type": "library", "description": "Crossbrowser & lightweight way to check if user is looking at the page or interacting with it.", "domain": ["web-development", "frontend", "developer-tools"], "enriched": true, "function": ["developer-tools"], "health_score": 72, "homepage": "https://ifvisible.serkan.dev/", "language": "TypeScript", "license": "MIT", "license_family": "permissive", "maturity": "stable", "member_repos": ["serkanyersen/ifvisible.js"], "name": "serkanyersen/ifvisible.js", "platform": ["browser", "cross-platform"], "pushed_at": "2026-06-12T06:56:59+00:00", "repo": "serkanyersen/ifvisible.js", "stars": 1950, "tags": ["page-visibility", "idle-detection", "page-lifecycle", "typescript", "zero-dependency", "ssr-safe", "event-emitter", "nodejs"], "topics": ["coffeescript", "typescript", "cross-browser", "visibility", "javascript", "npm", "library", "mit", "utilities"], "urls": [], "use_cases": ["pause video or animations when the user switches tabs", "detect when a user goes idle and stop polling or live data streams", "resume updates when the user returns to the page", "run intervals only while the page is visible", "track user activity status in a web app", "handle browser minimize and tab switch events", "clean up visibility listeners on SPA route unmount"], "what_it_is": "A lightweight, dependency-free JavaScript library that wraps the Page Visibility API to detect whether the user is viewing the page, interacting with it, or idle. It emits events like focus, blur, idle, wakeup, and freeze/resume, and supports self-pausing intervals.", "when_to_avoid": ["you only need the raw Page Visibility API and prefer no abstraction", "you need server-side user presence detection rather than in-browser", "you require legacy IE browser support"], "when_to_choose": ["you need cross-browser tab visibility and idle detection with zero dependencies", "you want SSR-safe imports and TypeScript types out of the box", "you need smart intervals that pause when nobody is watching the page"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/ifvisiblejs", "repo": "serkanyersen/ifvisible.js", "role": "main", "score": 62}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:05:58.173289+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-30T03:06:52.876472+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "48eb7bbfdaba06096acaf621a012ea7c0566a260c7394059954418d8e97d0f46", "fetched_at": "2026-08-28T04:05:58.173289+00:00", "kind": "readme", "missing": false, "url": "https://github.com/serkanyersen/ifvisible.js"}, {"content_hash": "daf07b4b60710b42eb26a9026ee08597ceffe42c7cfdaa225e77496d112e92be", "fetched_at": "2026-08-29T10:46:50.726748+00:00", "kind": "homepage", "missing": false, "url": "https://ifvisible.serkan.dev/"}, {"content_hash": "4c61731331495b2ee0cfaf1025e84d03d96deed13f7c8112d593ca0e80f73a93", "fetched_at": "2026-08-29T10:46:50.735711+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/ifvisible.js"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:05:58.173289+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-30T03:06:52.876472+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "48eb7bbfdaba06096acaf621a012ea7c0566a260c7394059954418d8e97d0f46", "fetched_at": "2026-08-28T04:05:58.173289+00:00", "kind": "readme", "missing": false, "url": "https://github.com/serkanyersen/ifvisible.js"}, {"content_hash": "daf07b4b60710b42eb26a9026ee08597ceffe42c7cfdaa225e77496d112e92be", "fetched_at": "2026-08-29T10:46:50.726748+00:00", "kind": "homepage", "missing": false, "url": "https://ifvisible.serkan.dev/"}, {"content_hash": "4c61731331495b2ee0cfaf1025e84d03d96deed13f7c8112d593ca0e80f73a93", "fetched_at": "2026-08-29T10:46:50.735711+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/ifvisible.js"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-30T03:06:52.876472+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "48eb7bbfdaba06096acaf621a012ea7c0566a260c7394059954418d8e97d0f46", "fetched_at": "2026-08-28T04:05:58.173289+00:00", "kind": "readme", "missing": false, "url": "https://github.com/serkanyersen/ifvisible.js"}, {"content_hash": "daf07b4b60710b42eb26a9026ee08597ceffe42c7cfdaa225e77496d112e92be", "fetched_at": "2026-08-29T10:46:50.726748+00:00", "kind": "homepage", "missing": false, "url": "https://ifvisible.serkan.dev/"}, {"content_hash": "4c61731331495b2ee0cfaf1025e84d03d96deed13f7c8112d593ca0e80f73a93", "fetched_at": "2026-08-29T10:46:50.735711+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/ifvisible.js"}], "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:58.173289+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:05:58.173289+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:05:58.173289+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-30T03:06:52.876472+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "48eb7bbfdaba06096acaf621a012ea7c0566a260c7394059954418d8e97d0f46", "fetched_at": "2026-08-28T04:05:58.173289+00:00", "kind": "readme", "missing": false, "url": "https://github.com/serkanyersen/ifvisible.js"}, {"content_hash": "daf07b4b60710b42eb26a9026ee08597ceffe42c7cfdaa225e77496d112e92be", "fetched_at": "2026-08-29T10:46:50.726748+00:00", "kind": "homepage", "missing": false, "url": "https://ifvisible.serkan.dev/"}, {"content_hash": "4c61731331495b2ee0cfaf1025e84d03d96deed13f7c8112d593ca0e80f73a93", "fetched_at": "2026-08-29T10:46:50.735711+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/ifvisible.js"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:05:58.173289+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:05:58.173289+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-30T03:06:52.876472+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "48eb7bbfdaba06096acaf621a012ea7c0566a260c7394059954418d8e97d0f46", "fetched_at": "2026-08-28T04:05:58.173289+00:00", "kind": "readme", "missing": false, "url": "https://github.com/serkanyersen/ifvisible.js"}, {"content_hash": "daf07b4b60710b42eb26a9026ee08597ceffe42c7cfdaa225e77496d112e92be", "fetched_at": "2026-08-29T10:46:50.726748+00:00", "kind": "homepage", "missing": false, "url": "https://ifvisible.serkan.dev/"}, {"content_hash": "4c61731331495b2ee0cfaf1025e84d03d96deed13f7c8112d593ca0e80f73a93", "fetched_at": "2026-08-29T10:46:50.735711+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/ifvisible.js"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:05:58.173289+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:05:58.173289+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:05:58.173289+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-30T03:06:52.876472+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "48eb7bbfdaba06096acaf621a012ea7c0566a260c7394059954418d8e97d0f46", "fetched_at": "2026-08-28T04:05:58.173289+00:00", "kind": "readme", "missing": false, "url": "https://github.com/serkanyersen/ifvisible.js"}, {"content_hash": "daf07b4b60710b42eb26a9026ee08597ceffe42c7cfdaa225e77496d112e92be", "fetched_at": "2026-08-29T10:46:50.726748+00:00", "kind": "homepage", "missing": false, "url": "https://ifvisible.serkan.dev/"}, {"content_hash": "4c61731331495b2ee0cfaf1025e84d03d96deed13f7c8112d593ca0e80f73a93", "fetched_at": "2026-08-29T10:46:50.735711+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/ifvisible.js"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:05:58.173289+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:05:58.173289+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-30T03:06:52.876472+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "48eb7bbfdaba06096acaf621a012ea7c0566a260c7394059954418d8e97d0f46", "fetched_at": "2026-08-28T04:05:58.173289+00:00", "kind": "readme", "missing": false, "url": "https://github.com/serkanyersen/ifvisible.js"}, {"content_hash": "daf07b4b60710b42eb26a9026ee08597ceffe42c7cfdaa225e77496d112e92be", "fetched_at": "2026-08-29T10:46:50.726748+00:00", "kind": "homepage", "missing": false, "url": "https://ifvisible.serkan.dev/"}, {"content_hash": "4c61731331495b2ee0cfaf1025e84d03d96deed13f7c8112d593ca0e80f73a93", "fetched_at": "2026-08-29T10:46:50.735711+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/ifvisible.js"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-30T03:06:52.876472+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "48eb7bbfdaba06096acaf621a012ea7c0566a260c7394059954418d8e97d0f46", "fetched_at": "2026-08-28T04:05:58.173289+00:00", "kind": "readme", "missing": false, "url": "https://github.com/serkanyersen/ifvisible.js"}, {"content_hash": "daf07b4b60710b42eb26a9026ee08597ceffe42c7cfdaa225e77496d112e92be", "fetched_at": "2026-08-29T10:46:50.726748+00:00", "kind": "homepage", "missing": false, "url": "https://ifvisible.serkan.dev/"}, {"content_hash": "4c61731331495b2ee0cfaf1025e84d03d96deed13f7c8112d593ca0e80f73a93", "fetched_at": "2026-08-29T10:46:50.735711+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/ifvisible.js"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-30T03:06:52.876472+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "48eb7bbfdaba06096acaf621a012ea7c0566a260c7394059954418d8e97d0f46", "fetched_at": "2026-08-28T04:05:58.173289+00:00", "kind": "readme", "missing": false, "url": "https://github.com/serkanyersen/ifvisible.js"}, {"content_hash": "daf07b4b60710b42eb26a9026ee08597ceffe42c7cfdaa225e77496d112e92be", "fetched_at": "2026-08-29T10:46:50.726748+00:00", "kind": "homepage", "missing": false, "url": "https://ifvisible.serkan.dev/"}, {"content_hash": "4c61731331495b2ee0cfaf1025e84d03d96deed13f7c8112d593ca0e80f73a93", "fetched_at": "2026-08-29T10:46:50.735711+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/ifvisible.js"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-30T03:06:52.876472+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "48eb7bbfdaba06096acaf621a012ea7c0566a260c7394059954418d8e97d0f46", "fetched_at": "2026-08-28T04:05:58.173289+00:00", "kind": "readme", "missing": false, "url": "https://github.com/serkanyersen/ifvisible.js"}, {"content_hash": "daf07b4b60710b42eb26a9026ee08597ceffe42c7cfdaa225e77496d112e92be", "fetched_at": "2026-08-29T10:46:50.726748+00:00", "kind": "homepage", "missing": false, "url": "https://ifvisible.serkan.dev/"}, {"content_hash": "4c61731331495b2ee0cfaf1025e84d03d96deed13f7c8112d593ca0e80f73a93", "fetched_at": "2026-08-29T10:46:50.735711+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/ifvisible.js"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 87, "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": 5220, "days_push": 82, "days_rel": null, "gap_med": null, "n_releases_24m": 0}, "score": 62, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}