{"library":"itty-fetcher","type":"library","category":null,"description":"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.","language":"javascript","status":"active","version":"1.0.10","tags":["javascript","fetch","api","composable","tiny","simple","json","typescript"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install itty-fetcher","imports":["import { fetcher } from 'itty-fetcher'","import type { Fetcher } from 'itty-fetcher'","Copy the minified snippet from README directly"]},{"cmd":"yarn add itty-fetcher","imports":[]},{"cmd":"pnpm add itty-fetcher","imports":[]}],"homepage":"https://github.com/kwhitley/itty-fetcher#readme","github":"https://github.com/kwhitley/itty-fetcher","docs":null,"changelog":null,"pypi":null,"npm":"itty-fetcher","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}