{"library":"wretch","type":"library","category":null,"description":"A tiny (~1.8KB g-zipped) wrapper around the Fetch API with an intuitive, chainable syntax. v3.0.8 (latest) is actively maintained and supports modern browsers, Node.js 22+, Deno, and Bun. Key differentiators: immutable API (cloning for reuse), automatic JSON serialization/deserialization, error handling via status-specific handlers (notFound, internalError, etc.), addon/middleware system, and full TypeScript types. Compared to alternatives like ky or axios, wretch is lighter and focuses on a minimal, functional style.","language":"javascript","status":"active","version":"3.0.8","tags":["javascript","wretch","fetch","ajax","request","typescript"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install wretch","imports":["import wretch from 'wretch'","import { WretchError } from 'wretch'","import type { Wretch } from 'wretch'","import type { WretchAddon, WretchMiddleware } from 'wretch'"]},{"cmd":"yarn add wretch","imports":[]},{"cmd":"pnpm add wretch","imports":[]}],"homepage":"https://elbywan.github.io/wretch","github":"https://github.com/elbywan/wretch","docs":null,"changelog":null,"pypi":null,"npm":"wretch","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}