Skip to main content

One SDK. Any API.
Fully TypedTyped.

The type-safe API layer for TypeScript apps. Connect to REST, GraphQL, Firebase, WebSockets, SSE . All with one consistent interface and the best type safety in the ecosystem.

Loading preview...
Companies that use BetterTyped open-source software.
Why HyperFetch

One SDK. Any API.

Stop juggling libraries, hand-typing types, and rebuilding cache, retries, and offline in every project. HyperFetch is the complete data layer for every protocol you ship.

CLI

Schema → typed SDK

Point at any OpenAPI spec, get a fully typed client. No hand-written interfaces, no any.

OpenAPISwaggerTypeScriptZero any
openapi.json
schema source
24 endpoints
generated.ts typed
const user = await sdk
Learn more
Adapters

Any protocol, one API

REST, GraphQL, Firebase, Sockets. Swap the adapter, keep the same createRequest / .send() everywhere.

RESTGraphQLFirebaseSocketsSSE
Request
file_type_rest
REST
/users
200 OK
Your app
Typed data received
Learn more
Data layer

Production data layer

Cache, queue, retry, dedup, offline replay. All built in. Stop re-implementing the same infra in every project.

CacheQueueRetryDedupOffline
useFetch()
Cache
HIT
Queue
Adapter
Server
Online
cache HIT · instant
Learn more
Type safety

End-to-end TypeScript

Params inferred from URL strings. Typed responses, payloads, query params, errors. Zero any.

URL paramsResponsesPayloadsQueryErrors
React

React hooks built in

useFetch for queries. useSubmit for mutations. Loading, error, and data states all managed for you.

useFetchuseSubmitloadingerrordata
Devtools

HyperFlow DevTools

Inspect every request, cache entry, queue, and event. Debug your data layer visually.

NetworkCacheQueuesEvents
Runtimes

Runs everywhere

Browser, Node, edge, mobile, SSR. Same client, same behavior, every runtime.

BrowserNodeEdgeMobileSSR
Mutations

Optimistic updates

Mutate the UI first, reconcile with the server. Smooth, race-condition-free.

Mutate firstReconcileRace-safeRollback
Performance

Smart deduplication

Five components ask for the same data. One network call fires. Automatic.

Shared promiseOne requestAuto
Power up your development workflow

Meet HyperFlow Devtools

A standalone desktop app that plugs into your client. Inspect every request, cache entry, and queue as your app runs. Debug your data layer visually.

preview
Support the development.

Our wonderful sponsors

We're grateful to the following companies and individuals who have supported us financially. You can still help us by joining the GitHub Sponsors program or contact us for other ways of support or collaboration.

My Sponsors
Improve your workflow today

Build with HyperFetch

Spend less time on boilerplate and more on building amazing features that your users will love.