{"id":17402126,"url":"https://github.com/osomepteltd/openapi-ts-sdk","last_synced_at":"2025-04-14T06:13:10.342Z","repository":{"id":38308845,"uuid":"286746961","full_name":"OsomePteLtd/openapi-ts-sdk","owner":"OsomePteLtd","description":"Osome TypeScript SDK Generator","archived":false,"fork":false,"pushed_at":"2025-04-03T11:39:58.000Z","size":329,"stargazers_count":10,"open_issues_count":5,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-14T06:13:05.558Z","etag":null,"topics":["openapi","sdk","typescript"],"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/OsomePteLtd.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":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-08-11T13:07:11.000Z","updated_at":"2025-04-03T11:40:01.000Z","dependencies_parsed_at":"2024-10-17T10:09:07.902Z","dependency_job_id":null,"html_url":"https://github.com/OsomePteLtd/openapi-ts-sdk","commit_stats":{"total_commits":105,"total_committers":20,"mean_commits":5.25,"dds":0.5904761904761905,"last_synced_commit":"7242664bbcf32d635711b5973c60cc8236a1b731"},"previous_names":[],"tags_count":47,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OsomePteLtd%2Fopenapi-ts-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OsomePteLtd%2Fopenapi-ts-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OsomePteLtd%2Fopenapi-ts-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OsomePteLtd%2Fopenapi-ts-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OsomePteLtd","download_url":"https://codeload.github.com/OsomePteLtd/openapi-ts-sdk/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248830399,"owners_count":21168272,"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","sdk","typescript"],"created_at":"2024-10-16T17:07:58.123Z","updated_at":"2025-04-14T06:13:10.308Z","avatar_url":"https://github.com/OsomePteLtd.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OpenAPI TypeScript SDK Generator\n\nThis tool allows generating a TypeScript SDK from OpenAPI specification files. This will provide you with fully typed API library to use in a client-side application.\n\n## Install\n\n```bash\nnpm install -D openapi-ts-sdk\n```\n\nYou will also need some dependencies used by the generated code:\n\n```bash\nnpm install -S axios qs\nnpm install -D @types/qs\n```\n\n## Usage sample\n\n```bash\nopenapi-ts-sdk /path/to/service1/openapi.json /path/to/service2/openapi.json --outDir /path/to/client/sdk\n```\n\nThis command will take your `openapi.json` files and generate a TypeScript SDK within your client-side project. You will then be able to `import` it in your code:\n\n```ts\nimport { createSdkClient } from '../sdk';\n\nconst sdk = createSdkClient({\n  baseUrl: process.env.API_URL,\n});\n\nconst { company } = await sdk.companies.id(9526).get();\nconsole.log(company);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fosomepteltd%2Fopenapi-ts-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fosomepteltd%2Fopenapi-ts-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fosomepteltd%2Fopenapi-ts-sdk/lists"}