Skip to main content

Introduction

@zimic/fetch is a minimal (~2 kB minified and gzipped) and type-safe fetch-like API client.

Status: Beta 🌱

Features

  • Type-safe fetch

    Use your @zimic/http schema to create a type-safe fetch-like API client and have your requests and responses fully typed by default.

  • Zero dependencies

    @zimic/fetch has no external dependencies, making it a lightweight and fast alternative to other HTTP clients.

  • 💪 Developer experience

    Define default options to apply to your requests, such as a base URL, headers, search parameters, and more. Inspect and modify requests and responses using onRequest and onResponse listeners.

Learn more: