Skip to content

OpenAPI React Query Codegen

Code generator for creating React Query (also known as TanStack Query) hooks based on your OpenAPI schema.

React Query

Generates custom react hooks that use React(TanStack) Query’s useQuery, useSuspenseQuery, useMutation and useInfiniteQuery hooks.

Prefetching & Router Integration

Generates custom functions that use React Query’s ensureQueryData and prefetchQuery functions to integrate into frameworks like Next.js and Remix.

Pure TypeScript Clients

Generates pure TypeScript clients generated by @hey-api/openapi-ts in case you still want to do type-safe API calls without React Query.