# better-auth/better-fetch

Advanced fetch wrapper for TypeScript

Repository: https://github.com/better-auth/better-fetch
Canonical: https://ross.abutalabs.com/products/better-fetch
Homepage: https://better-fetch.vercel.app/
Language: TypeScript
License: MIT
License Family: permissive
Last push: 2026-08-31T21:37:28+00:00

## Health v2 (maintenance only)
Score: 88/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 100, release rhythm 89, longevity 61
- inputs: {"age_days": 863, "days_push": 2, "days_rel": 79, "gap_med": 5, "n_releases_24m": 16}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1036, forks 61 (observed 2026-09-01T02:13:59.188445+00:00)

## What it is
Better Fetch is an advanced TypeScript fetch wrapper with standard schema validation support (zod, valibot, arktype), pre-defined routes, callbacks, and plugins. It runs across browsers, Node 18+, workers, Deno, and Bun.

## Use cases
- type-safe fetch requests in typescript
- validate api responses with zod
- create typed api clients with predefined routes
- add plugins and callbacks to fetch calls
- shared http client for browser and node
- handle api errors consistently

## When to choose
- you want schema-validated, type-safe HTTP requests in TypeScript
- you need one fetch client working across browser, node, deno, and bun
- you want reusable route definitions and fetch plugins

## When to avoid
- you only need simple one-off fetch calls without validation
- you need a full-featured GraphQL or gRPC client
- your project is not TypeScript/JavaScript

## Facets
- artifact type: library
- maturity: active
- function: http-client, serialization, middleware, plugin-system
- domain: web-development, frontend, backend, developer-tools, apis
- platform: bun, browser, cross-platform
- tags: fetch-wrapper, schema-validation, zod, type-safe-http, api-client, nodejs, deno, typescript

## Member repositories
- better-auth/better-fetch (main) score 88

## Provenance
- Observed fields: from GitHub, fetched 2026-09-01T02:13:59.188445+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T07:04:52.832192+00:00, confidence not recorded.
  - readme: https://github.com/better-auth/better-fetch (fetched 2026-09-01T02:13:59.188445+00:00, sha 56f03188b1e9)
  - homepage: https://better-fetch.vercel.app/ (fetched 2026-08-29T13:05:39.857240+00:00, sha 7746f8f917b6)
- Data as of 2026-08-30T08:39:29.467469+00:00.
