Preparing for system design interviews?  Try bugzed.com →

fetch-interceptor

JSON →
library 1.1.0 ·javascript
verified Jun 7, 2026

A lightweight library to intercept and modify fetch requests and responses in the browser. Current stable version is 1.1.0. It provides hooks for before request, on response success, and on response failure. Key differentiator is its simplicity and zero dependencies, unlike more complex alternatives like Mock Service Worker or Polly.js. The library is actively maintained with a small API surface, making it easy to integrate into any project that uses the Fetch API. It is released on npm and supports CommonJS and ES modules via module field.

total hits 8
actors 2 distinct systems
last hit 16d ago AhrefsBot
GPTBot
3
Humans
4

top countries 🇺🇸 United States · 🇸🇬 Singapore · 🇮🇱 Israel · 🇨🇦 Canada