{"adoption": {"forks": 865, "observed_at": "2026-08-28T04:08:36.230804+00:00", "stars": 4138}, "canonical_url": "https://ross.abutalabs.com/products/mobile-detectjs", "card": {"archived": false, "artifact_type": "library", "description": "Device detection (phone, tablet, desktop, mobile grade, os, versions)", "domain": ["web-development", "frontend", "developer-tools"], "enriched": true, "function": ["http-server", "middleware"], "health_score": 20, "homepage": "http://hgoebl.github.io/mobile-detect.js/", "language": "JavaScript", "license": "MIT", "license_family": "permissive", "maturity": "maintenance", "member_repos": ["hgoebl/mobile-detect.js"], "name": "hgoebl/mobile-detect.js", "platform": ["browser"], "pushed_at": "2021-03-13T09:22:29+00:00", "repo": "hgoebl/mobile-detect.js", "stars": 4138, "tags": ["user-agent-parsing", "device-detection", "mobile-detection", "responsive-design", "user-agent-sniffing", "nodejs", "javascript"], "topics": [], "urls": [], "use_cases": ["detect if a visitor is on a mobile phone or tablet", "serve different content based on device type", "detect operating system from user agent string", "redirect mobile users to a mobile site", "log device types of website visitors in Express", "check if a user agent is a desktop browser"], "what_it_is": "mobile-detect.js is a JavaScript library that detects device type (phone, tablet, desktop), operating system, and versions by matching regular expressions against a User-Agent string. It is a loose port of the PHP Mobile-Detect library and works in both the browser and Node.js.", "when_to_avoid": ["you can use feature detection (e.g. Modernizr) or CSS media queries instead, which the author recommends", "you need reliable, up-to-date detection of the newest devices, since the regex rules are outdated", "you need the mobile grade feature, which the author says is useless nowadays", "you are starting a new project where responsive design would remove the need for UA sniffing"], "when_to_choose": ["you must use User-Agent sniffing for legacy reasons and need a lightweight, dependency-free library", "you need device detection in both browser and Node.js with the same API", "you are maintaining an older codebase that already relies on UA-based detection"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/mobile-detectjs", "repo": "hgoebl/mobile-detect.js", "role": "main", "score": 32}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:08:36.230804+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-29T18:23:00.215062+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "9a5f07b5fe4517d6333b09119f38b3622a3e351c8fe63791c55c3ac2269e0e18", "fetched_at": "2026-08-28T04:08:36.230804+00:00", "kind": "readme", "missing": false, "url": "https://github.com/hgoebl/mobile-detect.js"}, {"content_hash": "35cf5777c73b0407edb5296d139744f02441d10802726300ec18dd9f3b843a3e", "fetched_at": "2026-08-29T09:14:17.442091+00:00", "kind": "homepage", "missing": false, "url": "http://hgoebl.github.io/mobile-detect.js/"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:08:36.230804+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-29T18:23:00.215062+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "9a5f07b5fe4517d6333b09119f38b3622a3e351c8fe63791c55c3ac2269e0e18", "fetched_at": "2026-08-28T04:08:36.230804+00:00", "kind": "readme", "missing": false, "url": "https://github.com/hgoebl/mobile-detect.js"}, {"content_hash": "35cf5777c73b0407edb5296d139744f02441d10802726300ec18dd9f3b843a3e", "fetched_at": "2026-08-29T09:14:17.442091+00:00", "kind": "homepage", "missing": false, "url": "http://hgoebl.github.io/mobile-detect.js/"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-29T18:23:00.215062+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "9a5f07b5fe4517d6333b09119f38b3622a3e351c8fe63791c55c3ac2269e0e18", "fetched_at": "2026-08-28T04:08:36.230804+00:00", "kind": "readme", "missing": false, "url": "https://github.com/hgoebl/mobile-detect.js"}, {"content_hash": "35cf5777c73b0407edb5296d139744f02441d10802726300ec18dd9f3b843a3e", "fetched_at": "2026-08-29T09:14:17.442091+00:00", "kind": "homepage", "missing": false, "url": "http://hgoebl.github.io/mobile-detect.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:08:36.230804+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:08:36.230804+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:08:36.230804+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-29T18:23:00.215062+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "9a5f07b5fe4517d6333b09119f38b3622a3e351c8fe63791c55c3ac2269e0e18", "fetched_at": "2026-08-28T04:08:36.230804+00:00", "kind": "readme", "missing": false, "url": "https://github.com/hgoebl/mobile-detect.js"}, {"content_hash": "35cf5777c73b0407edb5296d139744f02441d10802726300ec18dd9f3b843a3e", "fetched_at": "2026-08-29T09:14:17.442091+00:00", "kind": "homepage", "missing": false, "url": "http://hgoebl.github.io/mobile-detect.js/"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:08:36.230804+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:08:36.230804+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-29T18:23:00.215062+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "9a5f07b5fe4517d6333b09119f38b3622a3e351c8fe63791c55c3ac2269e0e18", "fetched_at": "2026-08-28T04:08:36.230804+00:00", "kind": "readme", "missing": false, "url": "https://github.com/hgoebl/mobile-detect.js"}, {"content_hash": "35cf5777c73b0407edb5296d139744f02441d10802726300ec18dd9f3b843a3e", "fetched_at": "2026-08-29T09:14:17.442091+00:00", "kind": "homepage", "missing": false, "url": "http://hgoebl.github.io/mobile-detect.js/"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:08:36.230804+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:08:36.230804+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:08:36.230804+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-29T18:23:00.215062+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "9a5f07b5fe4517d6333b09119f38b3622a3e351c8fe63791c55c3ac2269e0e18", "fetched_at": "2026-08-28T04:08:36.230804+00:00", "kind": "readme", "missing": false, "url": "https://github.com/hgoebl/mobile-detect.js"}, {"content_hash": "35cf5777c73b0407edb5296d139744f02441d10802726300ec18dd9f3b843a3e", "fetched_at": "2026-08-29T09:14:17.442091+00:00", "kind": "homepage", "missing": false, "url": "http://hgoebl.github.io/mobile-detect.js/"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:08:36.230804+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:08:36.230804+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-29T18:23:00.215062+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "9a5f07b5fe4517d6333b09119f38b3622a3e351c8fe63791c55c3ac2269e0e18", "fetched_at": "2026-08-28T04:08:36.230804+00:00", "kind": "readme", "missing": false, "url": "https://github.com/hgoebl/mobile-detect.js"}, {"content_hash": "35cf5777c73b0407edb5296d139744f02441d10802726300ec18dd9f3b843a3e", "fetched_at": "2026-08-29T09:14:17.442091+00:00", "kind": "homepage", "missing": false, "url": "http://hgoebl.github.io/mobile-detect.js/"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-29T18:23:00.215062+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "9a5f07b5fe4517d6333b09119f38b3622a3e351c8fe63791c55c3ac2269e0e18", "fetched_at": "2026-08-28T04:08:36.230804+00:00", "kind": "readme", "missing": false, "url": "https://github.com/hgoebl/mobile-detect.js"}, {"content_hash": "35cf5777c73b0407edb5296d139744f02441d10802726300ec18dd9f3b843a3e", "fetched_at": "2026-08-29T09:14:17.442091+00:00", "kind": "homepage", "missing": false, "url": "http://hgoebl.github.io/mobile-detect.js/"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-29T18:23:00.215062+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "9a5f07b5fe4517d6333b09119f38b3622a3e351c8fe63791c55c3ac2269e0e18", "fetched_at": "2026-08-28T04:08:36.230804+00:00", "kind": "readme", "missing": false, "url": "https://github.com/hgoebl/mobile-detect.js"}, {"content_hash": "35cf5777c73b0407edb5296d139744f02441d10802726300ec18dd9f3b843a3e", "fetched_at": "2026-08-29T09:14:17.442091+00:00", "kind": "homepage", "missing": false, "url": "http://hgoebl.github.io/mobile-detect.js/"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-29T18:23:00.215062+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "9a5f07b5fe4517d6333b09119f38b3622a3e351c8fe63791c55c3ac2269e0e18", "fetched_at": "2026-08-28T04:08:36.230804+00:00", "kind": "readme", "missing": false, "url": "https://github.com/hgoebl/mobile-detect.js"}, {"content_hash": "35cf5777c73b0407edb5296d139744f02441d10802726300ec18dd9f3b843a3e", "fetched_at": "2026-08-29T09:14:17.442091+00:00", "kind": "homepage", "missing": false, "url": "http://hgoebl.github.io/mobile-detect.js/"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 0, "longevity": 100, "rhythm": 35}, "computed_at": "2026-09-03T02:20:16.233290+00:00", "flags": ["no_releases"], "formula": "round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)", "inputs": {"age_days": 4739, "days_push": 1999, "days_rel": null, "gap_med": null, "n_releases_24m": 0}, "score": 32, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}