Preparing for system design interviews?  Try bugzed.com →

fetch-intercept

JSON →
library 2.4.0 ·javascript
verified Jun 17, 2026

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).

total hits 14
actors 4 distinct systems
last hit 18d ago human
GPTBot
4
Amazonbot
4
Script
1
Humans
1

top countries 🇺🇸 United States · 🇨🇦 Canada · 🇬🇧 United Kingdom · 🇸🇬 Singapore · 🇫🇷 France