fetch-intercept
JSON →A lightweight library to intercept and modify fetch requests and responses, inspired by Angular HTTP interceptors. Version 2.4.0 is the latest stable release, with infrequent updates. It monkey-patches the global fetch function to allow addition of request/response interceptors in browser, Node, and WebWorker environments. Unlike other interceptors, it uses a simple register/unregister pattern and supports TypeScript definitions, making it easy to add logging, authentication headers, or error handling without modifying fetch calls directly. It requires fetch to be available (polyfill suggested for older environments).
Traffic · last 30 days ↓50% vs prev 7d
total hits 13
actors 5 distinct systems
last hit 1d ago AhrefsBot
top countries 🇺🇸 United States · 🇨🇦 Canada · UY · 🇩🇪 Germany · 🇫🇷 France
API endpoints
full doc /v1/registry/fetch-intercept
compatibility /v1/registry/fetch-intercept/compatibility