gretchen

JSON →
library 1.5.1 ·javascript
verified Jun 7, 2026

A TypeScript-first HTTP client that wraps fetch with safe error handling, typed responses, configurable retries, timeouts, and support for Retry-After headers. Current stable version is 1.5.1, with infrequent releases. Unlike axios or got, it never throws on non-2xx responses, exposing both success and error types. Ships with TypeScript definitions, targets modern browsers, and requires minimal polyfills for IE11 or Node.js. It's small (under 3KB minzip) and provides a fluent API similar to fetch but with convenience methods like `.json()` and `.flush()`.