{"adoption": {"forks": 152, "observed_at": "2026-08-28T04:03:19.757054+00:00", "stars": 1038}, "canonical_url": "https://ross.abutalabs.com/products/jpillora-xhook", "card": {"archived": false, "artifact_type": "library", "description": "Easily intercept and modify XHR request and response", "domain": ["web-development", "frontend", "developer-tools", "testing"], "enriched": true, "function": ["http-client", "middleware", "mocking", "caching"], "health_score": 22, "homepage": "http://jpillora.com/xhook", "language": "HTML", "license": "MIT", "license_family": "permissive", "maturity": "maintenance", "member_repos": ["jpillora/xhook"], "name": "jpillora/xhook", "platform": ["browser"], "pushed_at": "2024-07-06T03:33:26+00:00", "repo": "jpillora/xhook", "stars": 1038, "tags": ["xhr", "ajax", "request-interception", "response-mocking", "javascript", "web-server"], "topics": [], "urls": [], "use_cases": ["intercept and modify xhr requests in the browser", "mock ajax responses for frontend testing", "add authentication headers to xhr requests", "cache ajax requests in localstorage", "simulate fake backend responses client-side", "log xhr error statistics to analytics"], "what_it_is": "XHook is a small JavaScript library that patches XMLHttpRequest to let you intercept and modify AJAX requests and responses in the browser. It supports before/after hooks, fake responses for testing, header injection, and works alongside fetch, jQuery, Angular, and web workers.", "when_to_avoid": ["your code exclusively uses the fetch API instead of XMLHttpRequest", "you need full network-level interception in Node.js or service workers", "you want an actively developed library with ongoing feature work"], "when_to_choose": ["you need to transparently patch XMLHttpRequest across an existing codebase", "you want to fake or modify AJAX responses without a server", "you need to inject headers or rewrite requests in legacy XHR-based apps"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/jpillora-xhook", "repo": "jpillora/xhook", "role": "main", "score": 23}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:03:19.757054+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-30T07:04:16.851477+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "1ea5a206d31475a78692d64d0a08ffb061484ff71dbd9d8c5f92cb36bd4b57ee", "fetched_at": "2026-08-28T04:03:19.757054+00:00", "kind": "readme", "missing": false, "url": "https://github.com/jpillora/xhook"}, {"content_hash": "65fc932ec901c028253b862dd0df8df5bb7baf3ae9e3501a3e83278882fb211d", "fetched_at": "2026-08-29T13:04:56.810674+00:00", "kind": "homepage", "missing": false, "url": "http://jpillora.com/xhook"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:03:19.757054+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-30T07:04:16.851477+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "1ea5a206d31475a78692d64d0a08ffb061484ff71dbd9d8c5f92cb36bd4b57ee", "fetched_at": "2026-08-28T04:03:19.757054+00:00", "kind": "readme", "missing": false, "url": "https://github.com/jpillora/xhook"}, {"content_hash": "65fc932ec901c028253b862dd0df8df5bb7baf3ae9e3501a3e83278882fb211d", "fetched_at": "2026-08-29T13:04:56.810674+00:00", "kind": "homepage", "missing": false, "url": "http://jpillora.com/xhook"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-30T07:04:16.851477+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "1ea5a206d31475a78692d64d0a08ffb061484ff71dbd9d8c5f92cb36bd4b57ee", "fetched_at": "2026-08-28T04:03:19.757054+00:00", "kind": "readme", "missing": false, "url": "https://github.com/jpillora/xhook"}, {"content_hash": "65fc932ec901c028253b862dd0df8df5bb7baf3ae9e3501a3e83278882fb211d", "fetched_at": "2026-08-29T13:04:56.810674+00:00", "kind": "homepage", "missing": false, "url": "http://jpillora.com/xhook"}], "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:03:19.757054+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:03:19.757054+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:03:19.757054+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-30T07:04:16.851477+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "1ea5a206d31475a78692d64d0a08ffb061484ff71dbd9d8c5f92cb36bd4b57ee", "fetched_at": "2026-08-28T04:03:19.757054+00:00", "kind": "readme", "missing": false, "url": "https://github.com/jpillora/xhook"}, {"content_hash": "65fc932ec901c028253b862dd0df8df5bb7baf3ae9e3501a3e83278882fb211d", "fetched_at": "2026-08-29T13:04:56.810674+00:00", "kind": "homepage", "missing": false, "url": "http://jpillora.com/xhook"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:03:19.757054+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:03:19.757054+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-30T07:04:16.851477+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "1ea5a206d31475a78692d64d0a08ffb061484ff71dbd9d8c5f92cb36bd4b57ee", "fetched_at": "2026-08-28T04:03:19.757054+00:00", "kind": "readme", "missing": false, "url": "https://github.com/jpillora/xhook"}, {"content_hash": "65fc932ec901c028253b862dd0df8df5bb7baf3ae9e3501a3e83278882fb211d", "fetched_at": "2026-08-29T13:04:56.810674+00:00", "kind": "homepage", "missing": false, "url": "http://jpillora.com/xhook"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:03:19.757054+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:03:19.757054+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:03:19.757054+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-30T07:04:16.851477+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "1ea5a206d31475a78692d64d0a08ffb061484ff71dbd9d8c5f92cb36bd4b57ee", "fetched_at": "2026-08-28T04:03:19.757054+00:00", "kind": "readme", "missing": false, "url": "https://github.com/jpillora/xhook"}, {"content_hash": "65fc932ec901c028253b862dd0df8df5bb7baf3ae9e3501a3e83278882fb211d", "fetched_at": "2026-08-29T13:04:56.810674+00:00", "kind": "homepage", "missing": false, "url": "http://jpillora.com/xhook"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:03:19.757054+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:03:19.757054+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-30T07:04:16.851477+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "1ea5a206d31475a78692d64d0a08ffb061484ff71dbd9d8c5f92cb36bd4b57ee", "fetched_at": "2026-08-28T04:03:19.757054+00:00", "kind": "readme", "missing": false, "url": "https://github.com/jpillora/xhook"}, {"content_hash": "65fc932ec901c028253b862dd0df8df5bb7baf3ae9e3501a3e83278882fb211d", "fetched_at": "2026-08-29T13:04:56.810674+00:00", "kind": "homepage", "missing": false, "url": "http://jpillora.com/xhook"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-30T07:04:16.851477+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "1ea5a206d31475a78692d64d0a08ffb061484ff71dbd9d8c5f92cb36bd4b57ee", "fetched_at": "2026-08-28T04:03:19.757054+00:00", "kind": "readme", "missing": false, "url": "https://github.com/jpillora/xhook"}, {"content_hash": "65fc932ec901c028253b862dd0df8df5bb7baf3ae9e3501a3e83278882fb211d", "fetched_at": "2026-08-29T13:04:56.810674+00:00", "kind": "homepage", "missing": false, "url": "http://jpillora.com/xhook"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-30T07:04:16.851477+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "1ea5a206d31475a78692d64d0a08ffb061484ff71dbd9d8c5f92cb36bd4b57ee", "fetched_at": "2026-08-28T04:03:19.757054+00:00", "kind": "readme", "missing": false, "url": "https://github.com/jpillora/xhook"}, {"content_hash": "65fc932ec901c028253b862dd0df8df5bb7baf3ae9e3501a3e83278882fb211d", "fetched_at": "2026-08-29T13:04:56.810674+00:00", "kind": "homepage", "missing": false, "url": "http://jpillora.com/xhook"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-30T07:04:16.851477+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "1ea5a206d31475a78692d64d0a08ffb061484ff71dbd9d8c5f92cb36bd4b57ee", "fetched_at": "2026-08-28T04:03:19.757054+00:00", "kind": "readme", "missing": false, "url": "https://github.com/jpillora/xhook"}, {"content_hash": "65fc932ec901c028253b862dd0df8df5bb7baf3ae9e3501a3e83278882fb211d", "fetched_at": "2026-08-29T13:04:56.810674+00:00", "kind": "homepage", "missing": false, "url": "http://jpillora.com/xhook"}], "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": 4756, "days_push": 788, "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}}