Description
@zap-studio/fetch is a lightweight wrapper around the standard fetch Web API.
It provides built-in schema validation via Standard Schema along with a set of convenient utilities.
It also includes:
- Automatic JSON serialization for request bodies (when needed)
- A factory pattern with default options (API keys, search params, auth, etc.) and reusable clients
- Error handling for both network and validation errors
- Full TypeScript support
- Tree-shaking by default
- Compatibility with Deno, Bun, browsers, Node.js, Workers, and other JavaScript runtimes
The bundle size is extremely small—just 1.4 kB minified and gzipped.
See: https://bundlephobia.com/package/@zap-studio/fetch@0.5.4
Description
@zap-studio/fetchis a lightweight wrapper around the standardfetchWeb API.It provides built-in schema validation via Standard Schema along with a set of convenient utilities.
It also includes:
The bundle size is extremely small—just 1.4 kB minified and gzipped.
See: https://bundlephobia.com/package/@zap-studio/fetch@0.5.4