Skip to main content
Home

Type-safe Fetch API client for your @hey-api/openapi-ts types

This package works with Node.js, Deno, Bun, BrowsersIt is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score
64%
Published
9 months ago (0.3.1)
Logo

Fetch API Client

🚀 Type-safe Fetch API client for your Hey API types.

Plug and play Fetch API wrapper for @hey-api/openapi-ts generator.

Live demo

Features

  • seamless integration with @hey-api/openapi-ts
  • type-safe response data and errors
  • access to the original request and response
  • granular request and response customization options
  • minimal learning curve thanks to extending the underlying technology
  • support bundling inside the generated output

Documentation

Please visit our website for documentation, guides, migrating, and more.

Sponsoring

Love Hey API? Please consider becoming a sponsor.

GitHub Integration (coming soon)

Automatically update your code when the APIs it depends on change. Find out more.

Migrating from OpenAPI Typescript Codegen?

Please read our migration guide.

Contributing

Want to get involved? Please refer to the contributing guide.

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@hey-api/client-fetch

Import symbol

import * as client_fetch from "@hey-api/client-fetch";
or

Import directly with a jsr specifier

import * as client_fetch from "jsr:@hey-api/client-fetch";

Add Package

pnpm i jsr:@hey-api/client-fetch
or (using pnpm 10.8 or older)
pnpm dlx jsr add @hey-api/client-fetch

Import symbol

import * as client_fetch from "@hey-api/client-fetch";

Add Package

yarn add jsr:@hey-api/client-fetch
or (using Yarn 4.8 or older)
yarn dlx jsr add @hey-api/client-fetch

Import symbol

import * as client_fetch from "@hey-api/client-fetch";

Add Package

vlt install jsr:@hey-api/client-fetch

Import symbol

import * as client_fetch from "@hey-api/client-fetch";

Add Package

npx jsr add @hey-api/client-fetch

Import symbol

import * as client_fetch from "@hey-api/client-fetch";

Add Package

bunx jsr add @hey-api/client-fetch

Import symbol

import * as client_fetch from "@hey-api/client-fetch";