itty-fetcher
JSON →itty-fetcher is an ultra-compact (~650 bytes) typed wrapper around the native Fetch API, designed to eliminate boilerplate such as manually setting Content-Type headers, JSON encoding/decoding, and error handling. Version 1.0.10 is the latest stable release, maintained by the author of itty-router. It shifts the final response parsing, method/body handling, and base URL into a small, chainable, proxy-based interface. Differentiators include TypeScript generics for request/response types, composable response transforms via after hooks, and a runtime-minifiable snippet that fits in a tweet. The library is ESM-only and ships with TypeScript definitions.
Traffic · last 30 days stale · no recent hits
total hits 7
actors 2 distinct systems
last hit 22d ago human
top countries 🇺🇸 United States · 🇸🇬 Singapore · 🇳🇴 Norway · 🇪🇸 Spain
Resources
packageitty-fetcher ↗