{"id":15984568,"url":"https://github.com/7nohe/vite-plugin-openapi-typescript-codegen","last_synced_at":"2025-10-25T02:30:44.956Z","repository":{"id":57711686,"uuid":"513948314","full_name":"7nohe/vite-plugin-openapi-typescript-codegen","owner":"7nohe","description":"OpenAPI Typescript Codegen for Vite","archived":false,"fork":false,"pushed_at":"2022-09-06T14:06:16.000Z","size":82,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-18T07:39:32.954Z","etag":null,"topics":["openapi","typescri"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/7nohe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-07-14T15:13:04.000Z","updated_at":"2024-11-27T22:27:12.000Z","dependencies_parsed_at":"2022-09-26T21:30:21.747Z","dependency_job_id":null,"html_url":"https://github.com/7nohe/vite-plugin-openapi-typescript-codegen","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7nohe%2Fvite-plugin-openapi-typescript-codegen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7nohe%2Fvite-plugin-openapi-typescript-codegen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7nohe%2Fvite-plugin-openapi-typescript-codegen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7nohe%2Fvite-plugin-openapi-typescript-codegen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/7nohe","download_url":"https://codeload.github.com/7nohe/vite-plugin-openapi-typescript-codegen/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238059734,"owners_count":19409745,"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":["openapi","typescri"],"created_at":"2024-10-08T02:09:39.329Z","updated_at":"2025-10-25T02:30:44.951Z","avatar_url":"https://github.com/7nohe.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003e [!IMPORTANT]\n\u003e This library has been archived.\n\u003e This library is no longer maintained because [OpenAPI Typescript Codegen](https://github.com/ferdikoomen/openapi-typescript-codegen?tab=readme-ov-file#important-announcement) is no longer maintained.\n\n# vite-plugin-openapi-typescript-codegen\n\n[OpenAPI Typescript Codegen](https://github.com/ferdikoomen/openapi-typescript-codegen) for Vite\n\n## Install\n\n```bash\nnpm install -D @7nohe/vite-plugin-openapi-typescript-codegen\n```\n\n## Usage\n\nAdd to your `vite.config.ts`\n\n```ts\nimport { defineConfig } from \"vite\";\nimport openApiTypescriptCodegen from \"@7nohe/vite-plugin-openapi-typescript-codegen\";\n\nexport default defineConfig({\n  plugins: [\n    openApiTypescriptCodegen({\n      input: \"./petstore.yaml\",\n      output: \"./openapi\",\n      watch: {\n        interval: 500,\n        disabled: process.env.NODE_ENV === \"production\",\n      },\n    }),\n  ],\n});\n```\n\n`petstore.yaml` is the schema file based on OpenAPI specification.\n\nThis plugin generates TypeScript clients by running `vite`/`vite build`.\n\nIt also detects changes in the schema file and regenerates the client files.\n\n## Options\n\n| name           | type    | describe                                    |\n| -------------- | ------- | ------------------------------------------- |\n| input          | string  | OpenAPI specification file (required)       |\n| output         | string  | Output directory (default: `openapi`)       |\n| watch.interval | number  | Interval of file watching (default: `1000`) |\n| watch.disabled | boolean | Disable file watching (default: `false`)    |\n\n[OpenAPI Typescript Codegen options](https://github.com/ferdikoomen/openapi-typescript-codegen#usage) are also available.\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F7nohe%2Fvite-plugin-openapi-typescript-codegen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F7nohe%2Fvite-plugin-openapi-typescript-codegen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F7nohe%2Fvite-plugin-openapi-typescript-codegen/lists"}