Module @fuman/fetch

@fuman/fetch

no-bullshit minimal wrapper around window.fetch that aims to improve dx by adding commonly used features, while having low runtime overhead, small bundle size and staying close to the web standards.

  • no more (await fetch(url)).json() - just await ffetch(url).json()
  • sugar for common request body types (json, form, multipart)
  • base url, base headers, etc.
  • retries, timeouts, validation built in
  • basic middlewares
  • type-safe compatibility with popular parsing libraries (yup, zod, valibot, etc.)

Modules

addons/parse/adapters/valibot
addons/parse/adapters/valita
addons/parse/adapters/yup
addons/parse/adapters/zod
addons/tough-cookie
index