{"id":15782730,"url":"https://github.com/omermecitoglu/ts-openapi-interface-generator","last_synced_at":"2025-10-15T22:32:18.544Z","repository":{"id":226540135,"uuid":"768992562","full_name":"omermecitoglu/ts-openapi-interface-generator","owner":"omermecitoglu","description":"OpenAPI interface generator for TypeScript","archived":true,"fork":false,"pushed_at":"2024-03-21T08:10:24.000Z","size":164,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-19T10:32:59.659Z","etag":null,"topics":["cli","codegen","generator","interface","openapi","typescript"],"latest_commit_sha":null,"homepage":"","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/omermecitoglu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"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}},"created_at":"2024-03-08T05:49:15.000Z","updated_at":"2024-09-27T07:50:02.000Z","dependencies_parsed_at":"2024-03-21T09:58:20.840Z","dependency_job_id":"5354576f-c713-432e-9a0f-3e323cb20160","html_url":"https://github.com/omermecitoglu/ts-openapi-interface-generator","commit_stats":null,"previous_names":["omermecitoglu/ts-openapi-interface-generator"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/omermecitoglu/ts-openapi-interface-generator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omermecitoglu%2Fts-openapi-interface-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omermecitoglu%2Fts-openapi-interface-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omermecitoglu%2Fts-openapi-interface-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omermecitoglu%2Fts-openapi-interface-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/omermecitoglu","download_url":"https://codeload.github.com/omermecitoglu/ts-openapi-interface-generator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omermecitoglu%2Fts-openapi-interface-generator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279122590,"owners_count":26108481,"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","status":"online","status_checked_at":"2025-10-15T02:00:07.814Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["cli","codegen","generator","interface","openapi","typescript"],"created_at":"2024-10-04T19:21:16.726Z","updated_at":"2025-10-15T22:32:18.236Z","avatar_url":"https://github.com/omermecitoglu.png","language":"TypeScript","readme":"# OpenAPI Interface Generator\n\nProvides an npm command to generate TypeScript code for services defined in a source JSON file.\n\n## Installation\n\n```bash\nnpm install @omer-x/ts-openapi-interface-generator\n```\n\n## Usage\n\n1. Ensure you have a `source.json` file in the root directory of your project with the following structure:\n\n```json\n{\n  \"services\": [\n    {\n      \"name\": \"ExampleService\",\n      \"url\": \"https://example.com/api\",\n      \"specs\": \"/swagger\"\n    }\n  ]\n}\n```\n\n2. Run the following command to generate code for each service defined in `source.json`:\n\n```bash\nnpx generate-service-interfaces\n```\n\nThis will generate code in the `src` folder for each service.\n\n## Configuration\n\nYou can customize the source JSON file by specifying additional properties for each service:\n\n- `name`: The name of the service.\n- `url`: The URL of the service.\n- `specs` (optional): The path to the OpenAPI specifications. Default value is \"/swagger\".\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fomermecitoglu%2Fts-openapi-interface-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fomermecitoglu%2Fts-openapi-interface-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fomermecitoglu%2Fts-openapi-interface-generator/lists"}