Fatcher is a lightweight, zero-dependency HTTP request library built on the native fetch API, designed for both browsers and Node.js environments (Node.js >= 18.0.0). Current stable version is 3.0.2, released with TypeScript support and a composable middleware system inspired by Koa. Key differentiators: <1kb size, streaming API support, compatible with all modern browsers (Chrome 66+, Firefox 65+, Safari 12.1+, Edge 16+), and seamless cross-platform usage. Unlike axios or got, fatcher leverages the native fetch API with a tiny middleware layer for extensibility.
npm install fatcherNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates basic fatcher usage with a custom logging middleware and async/await.
Use import syntax or set type: module in package.json.
Upgrade Node.js to >=18.
Use import { fatcher } from 'fatcher'.Always await next() and return its result in functional middlewares.
Use a polyfill or avoid IE.
Change to `import { fatcher } from 'fatcher'`.Use import() or set type: module and use import syntax.
Ensure middleware is created with defineMiddleware or has { use: async (ctx, next) => {...} }.No dependency data recorded yet.