Skip to main content
Home

A type-safe fetch wrapper with Standard Schema validation.

This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
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
94%
Published
a day ago (0.3.1)
f
$fetch

Type-safe fetch wrapper with Standard Schema validation.

v
api

Convenience methods for common HTTP verbs.

f
createFetch

Creates a custom fetch instance with pre-configured defaults.

c
FetchError

Error thrown for HTTP errors (non-2xx responses)

c
ValidationError

Error thrown for validation errors

T
$Fetch

Type-safe fetch function with Standard Schema validation support

T
ApiMethods

API HTTP method-specific fetch functions

T
CreateFetchOptions

Options for creating a custom fetch instance with createFetch

T
ExtendedRequestInit

Extended RequestInit type to include custom fetch options

T
SearchParams

Type representing various formats for search parameters that can be used in requests. Can be a URLSearchParams object, a record of string pairs, a query string, or an array of tuples.

f
isStandardSchema

Type guard to check if a value is a Standard Schema schema

f
standardValidate

Helper function to validate data using Standard Schema

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.