fetch-compose
JSON →A set of higher-order functions for the WHATWG Fetch API, providing composable middleware such as JSON handling, query string injection, timeout, retry (via vercel/fetch-retry), and JWT token support. Version 1.0.1 is the latest stable release, last updated in 2020. It re-exports cross-fetch for cross-platform compatibility (browser, Node, React Native) and includes TypeScript definitions. Key differentiators: opinionated default configuration via createFetch(), first-class JWT support with token refresh and request retry, and a functional composition approach inspired by higher-order functions.
Resources
packagefetch-compose ↗