{"repo":"7nohe/openapi-react-query-codegen","free":true,"listed":false,"github":"https://github.com/7nohe/openapi-react-query-codegen","clone":"git clone https://github.com/7nohe/openapi-react-query-codegen.git","description":"OpenAPI React Query Codegen is a code generator for creating React Query (also known as TanStack Query) hooks based on your OpenAPI schema.","language":"TypeScript","stars":428,"topics":["codegen","openapi","react","react-query","swagger","tanstack","typescript","tanstack-query","tanstack-react-query","openapi3"],"license":"MIT","category":"dev-tools","readme_excerpt":"OpenAPI React Query Codegen Code generator for TanStack Query (React Query) based on your OpenAPI schema — queryOptions factories following the official TanStack Query v5 pattern, plus ready-to-use hooks, prefetch, ensure, suspense, and infinite query helpers. 📖 Documentation · Migrating to v3 Features - queryOptions / infiniteQueryOptions factories for every GET operation — the TanStack Query v5 recommended pattern, composable with useQuery , useQueries , useSuspenseQuery , prefetchQuery , ensureQueryData , and setQueryData with full type safety - Custom hooks : useQuery , useSuspenseQuery , useMutation , useInfiniteQuery , and useSuspenseInfiniteQuery variants per operation - SSR helpers : prefetchQuery , prefetchInfiniteQuery , and ensureQueryData functions per operation — ready for Next.js App Router hydration - Hierarchical query keys with exported key constants and functions: invalidate one exact query, all infinite pages of an operation, or every cache entry of an operation with a single prefix - Pure TypeScript clients generated by @hey-api/openapi-ts (fetch and axios) Quick start See the documentation for CLI options, SSR recipes, and infinite query usage. How it compares This library @hey-api tanstack-query plugin Orval --- --- --- --- queryOptions / infiniteQueryOptions factories (TanStack v5 pattern) ✅ ✅ ❌ Ready-to-use hooks ( useQuery / suspense / infinite variants) ✅ ❌ (options only) ✅ SSR helpers ( prefetchQuery / prefetchInfiniteQuery / ensureQueryData ) ✅ ❌ ","default_branch":null,"files":null,"tree":[],"storefront":"/r/7nohe","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/7nohe/openapi-react-query-codegen/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}