{"repo":"vladkens/apigen-ts","free":true,"listed":false,"github":"https://github.com/vladkens/apigen-ts","clone":"git clone https://github.com/vladkens/apigen-ts.git","description":"Generate a fully typed TypeScript fetch client from OpenAPI/Swagger in one file. Supports OpenAPI 2.0, 3.0, and 3.1.","language":"TypeScript","stars":54,"topics":["codegen","openapi","swagger","typescript","openapi3","openapi31","openapi2","api-client","fetch","nodejs"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"apigen-ts Turn your OpenAPI spec into a typed TypeScript client with one command. - One file. Outputs a single api-client.ts — no scattered modules, no runtime deps in generated code. - Fully typed. Every method returns the exact response type from your schema. No casting, no any . - Pure Node.js. No Java, no Docker. Works with npx in any project. - Fetch-based. Uses native fetch . Override it with your own function for auth, retries, or logging. - All OpenAPI versions. Supports v2 (Swagger), v3, and v3.1 — auto-upgrades v2 on the fly. - Extras built in. Automatic date parsing, string literal unions instead of enums, Prettier formatting. - Filterable. Include or exclude endpoints by path regex or tag — essential for large schemas. Unlike openapi-typescript , it generates a ready-to-call client — not just types. Unlike openapi-generator-cli , it's pure Node.js with zero Java dependency. Unlike openapi-typescript-codegen , it outputs a single file. Install Usage 1. Generate Run npx apigen-ts --help for all options. See generated examples. 2. Import 3. Use Advanced Login flow Automatic date parsing String unions instead of enums Pass --inline-enums to generate string literal unions — useful for Node.js type stripping: Filter by path Include only the endpoints you need — useful with large schemas (e.g. Cloudflare's 8 MB monolith): Filter by tag When both flags are set, --exclude-tags wins. Fetch options Pass --fetch-options to add an optional last argument to every generated meth","default_branch":null,"files":null,"tree":[],"storefront":"/r/vladkens","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/vladkens/apigen-ts/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."}