{"repo":"astahmer/typed-openapi","free":true,"listed":false,"github":"https://github.com/astahmer/typed-openapi","clone":"git clone https://github.com/astahmer/typed-openapi.git","description":"Generate a headless Typescript API client from an OpenAPI spec - optionally with a @tanstack/react-query client using queryOptions","language":"TypeScript","stars":378,"topics":["arktype","generator","io-ts","openapi","runtime","typebox","typescript","valibot","yup","zod"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"typed-openapi Generate a Typescript API client from an OpenAPI spec See the documentation or try the online playground. Features - Headless API client, bring your own fetcher (fetch, axios, ky, etc...) ! (You can generate that file with --default-fetcher — honors requestFormat for json / form-data / form-url / binary / text bodies) - Generates a fully typesafe API client with just types by default (instant suggestions) - Type-safe error handling : with discriminated unions and configurable success/error status codes - withResponse & throwOnStatusError : Get a union-style response object or throw on configured error status codes, with full type inference - TanStack Query integration : queryOptions , suspenseQueryOptions , infiniteQueryOptions (with pageParamKey ), queryKeyFactory , and invalidate / invalidateEndpoint helpers — works with promise and Effect clients ( Effect.runPromise when needed) - MSW mocks ( --msw ): request handlers + a typed method/path mock facade from schemas/examples; optional --msw-faker for @faker-js/faker - Auth from securitySchemes : default fetcher emits AuthCredentials + configureFetcher({ getAuth }) (apiKey / http / oauth2 / openIdConnect) - Date / bigint transforms ( --transform-dates , --transform-bigint ): format: date-time date → Date , format: int64 → bigint (types + runtime schema transforms; none-runtime revives ISO date strings) - Typed config : defineConfig + typed-openapi.config.ts (also JSON); auto-loaded when present - Or you can also","default_branch":null,"files":null,"tree":[],"storefront":"/r/astahmer","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/astahmer/typed-openapi/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."}