zhi-fetch-middleware

JSON →
library 0.13.5 ·javascript
verified Jun 7, 2026

A lightweight middleware layer for fetch requests that allows adding interceptors (before, after) and error handling. Version 0.13.5 is the latest stable release, with no external dependencies. It provides a simple API to compose middleware functions for modifying requests and responses, similar to Express middleware but for the Fetch API. Ships TypeScript definitions. Suitable for small to medium projects needing request/response transforms or logging.