Skip to content

Add @zap-studio/fetch HTTP client #3992

@alexandretrotel

Description

@alexandretrotel

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions