{"id":13401663,"url":"https://github.com/acacode/swagger-typescript-api","last_synced_at":"2026-02-14T08:16:20.447Z","repository":{"id":37361380,"uuid":"233476269","full_name":"acacode/swagger-typescript-api","owner":"acacode","description":"Generate the API Client for Fetch or Axios from an OpenAPI Specification","archived":false,"fork":false,"pushed_at":"2025-05-06T21:25:11.000Z","size":18270,"stargazers_count":3705,"open_issues_count":220,"forks_count":391,"subscribers_count":9,"default_branch":"main","last_synced_at":"2025-05-07T06:59:21.682Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://acacode.github.io/swagger-typescript-api/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/acacode.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"custom":["https://paypal.me/acacode"],"github":"smorimoto","ko_fi":"js2me"}},"created_at":"2020-01-12T23:46:19.000Z","updated_at":"2025-05-06T21:25:13.000Z","dependencies_parsed_at":"2024-01-13T17:47:23.349Z","dependency_job_id":"6856dcb4-d914-4d25-b367-ea12d60f9bbc","html_url":"https://github.com/acacode/swagger-typescript-api","commit_stats":{"total_commits":589,"total_committers":39,"mean_commits":"15.102564102564102","dds":0.6825127334465195,"last_synced_commit":"d467bb2ebef60e8c176a96244ae820f9710d1ef2"},"previous_names":[],"tags_count":110,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acacode%2Fswagger-typescript-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acacode%2Fswagger-typescript-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acacode%2Fswagger-typescript-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acacode%2Fswagger-typescript-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/acacode","download_url":"https://codeload.github.com/acacode/swagger-typescript-api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254092648,"owners_count":22013290,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","api-generator","generator","nodejs","openapi","rest","swagger","swagger-scheme","swagger-typescript-api","typescript"],"created_at":"2024-07-30T19:01:05.486Z","updated_at":"2026-02-14T08:16:20.443Z","avatar_url":"https://github.com/acacode.png","language":"TypeScript","funding_links":["https://paypal.me/acacode","https://github.com/sponsors/smorimoto","https://ko-fi.com/js2me"],"categories":["JavaScript","TypeScript","others","Popular Frameworks"],"sub_categories":["OpenAPI and Swagger Tools"],"readme":"# Swagger TypeScript API\n\n- Support for OpenAPI 3.0, 2.0, JSON and YAML\n- Generate the API Client for Fetch or Axios from an OpenAPI Specification\n\nAny questions you can ask here: \u003chttps://github.com/acacode/swagger-typescript-api/discussions\u003e\n\n## Examples\n\nAll examples you can find here: \u003chttps://github.com/acacode/swagger-typescript-api/tree/main/tests\u003e\n\n## Usage\n\nYou can use this package in two ways:\n\n### CLI\n\n```bash\nnpx swagger-typescript-api generate --path ./swagger.json\n```\n\nOr install locally in your project:\n\n```bash\nnpm install --save-dev swagger-typescript-api\nnpx swagger-typescript-api generate --path ./swagger.json\n```\n\n### Library\n\n```bash\nnpm install --save-dev swagger-typescript-api\n```\n\n```typescript\nimport * as path from \"node:path\";\nimport * as process from \"node:process\";\nimport { generateApi } from \"swagger-typescript-api\";\n\nawait generateApi({ input: path.resolve(process.cwd(), \"./swagger.json\") });\n```\n\nFor more detailed configuration options, please consult the documentation.\n\n## Mass media\n\n- [5 Lessons learned about swagger-typescript-api](https://christo8989.medium.com/5-lessons-learned-about-swagger-typescript-api-511240b34c1)\n- [Why Swagger schemes are needed in frontend development ?](https://dev.to/js2me/why-swagger-schemes-are-needed-in-frontend-development-2cb4)\n- [Migration en douceur vers TypeScript (French)](https://www.premieroctet.com/blog/migration-typescript/)\n- [swagger-typescript-api usage (Japanese)](https://zenn.dev/watahaya/articles/2f4a716c47903b)\n\n## License\n\nLicensed under the [MIT License](https://github.com/acacode/swagger-typescript-api/blob/main/LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Facacode%2Fswagger-typescript-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Facacode%2Fswagger-typescript-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Facacode%2Fswagger-typescript-api/lists"}