u/sindresorhus
▲ 26 r/javascript
fetch-extras — Build your own HTTP client with Fetch
Tired of reaching for a big HTTP client when you just need a timeout or retry? fetch-extras gives you small, single-purpose with* functions that wrap the standard fetch. Stack only what you need: timeouts, base URLs, retries, rate limiting, caching, auth token refresh, progress tracking, and more.
It has everything you will need:
- Retries
- Timeouts
- HTTP error throwing (non-2xx)
- Base URL (resolve relative URLs against a base)
- Default headers
- Client-side rate limiting
- Concurrency limiting
- Request deduplication
- In-memory caching
- Before/after request hooks
- Auto JSON body stringify
- Default search parameters
- Download/upload progress tracking
- Pagination
- Auto token refresh on 401
u/sindresorhus — 15 hours ago
▲ 6 r/MacOSApps
Imago — Generate images with AI locally on your device with Flux 2
apps.apple.comu/sindresorhus — 10 days ago