Ross ROSS = Recommend OSS · open-source software intelligence for agents

jpillora/xhook

Easily intercept and modify XHR request and response observed · 2026-08-28

github.com/jpillora/xhook · homepage · HTML · MIT (permissive) 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: 4756
  • days_rel: n/a
  • days_push: 788
  • n_releases_24m: 0

Full methodology

Adoption not part of the score

1038 stars · 152 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded

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.

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

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

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

Facets

library · maturity maintenance

http-client middleware mocking caching web-development frontend developer-tools testing browser xhr ajax request-interception response-mocking javascript web-server

2 sources

Member repositories

RepositoryRoleHealth v2
jpillora/xhookmain23

For agents

markdown · JSON · MCP: product_card(name="jpillora/xhook")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem