{"id":26558090,"url":"https://github.com/januarylabs/sdk-it","last_synced_at":"2025-10-25T07:14:13.007Z","repository":{"id":280200708,"uuid":"940804183","full_name":"JanuaryLabs/sdk-it","owner":"JanuaryLabs","description":"SDK-IT generates type-safe client SDKs from OpenAPI specifications and creates OpenAPI specs from TypeScript code.","archived":false,"fork":false,"pushed_at":"2025-07-25T09:45:02.000Z","size":8115,"stargazers_count":9,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-25T15:46:04.115Z","etag":null,"topics":["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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JanuaryLabs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":null,"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}},"created_at":"2025-02-28T20:30:13.000Z","updated_at":"2025-07-25T09:45:06.000Z","dependencies_parsed_at":"2025-04-08T22:20:32.035Z","dependency_job_id":"188f21f8-e02c-477a-a067-3cbfba12e321","html_url":"https://github.com/JanuaryLabs/sdk-it","commit_stats":null,"previous_names":["ezzabuzaid/lace","ezzabuzaid/sdk-it","januarylabs/sdk-it"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/JanuaryLabs/sdk-it","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JanuaryLabs%2Fsdk-it","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JanuaryLabs%2Fsdk-it/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JanuaryLabs%2Fsdk-it/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JanuaryLabs%2Fsdk-it/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JanuaryLabs","download_url":"https://codeload.github.com/JanuaryLabs/sdk-it/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JanuaryLabs%2Fsdk-it/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268264153,"owners_count":24222500,"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-08-01T02:00:08.611Z","response_time":67,"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":["openapi","typescript"],"created_at":"2025-03-22T12:22:12.277Z","updated_at":"2025-10-25T07:14:07.972Z","avatar_url":"https://github.com/JanuaryLabs.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SDK-IT\n\nSDK-IT generates type-safe client SDKs from OpenAPI specifications and creates OpenAPI specs from TypeScript code.\n\n## Features\n\n1. **Generating type-safe client SDKs from OpenAPI specifications to different languages**\n\nAlso\n\n2. Generating OpenAPI specifications from TypeScript code\n\n3. TypeScript RPC Client From OpenAPI specifications. (WIP)\n\n## Quick Start\n\n- Generate an SDK from an OpenAPI specification\n\n```bash\nnpx @sdk-it/cli@latest typescript \\\n  --spec https://api.openstatus.dev/v1/openapi \\\n  --output ./client \\\n  --name OpenStatus \\\n  --mode full\n```\n\n- Use the generated SDK\n\n```typescript\nimport { OpenStatus } from './client';\n\nconst client = new Client({\n  baseUrl: 'https://api.openstatus.dev/v1/',\n});\n\nconst [result, error] = await client.request('GET /status_report', {});\n```\n\nVoilà!\n\n![demo](./demo.png)\n\n### 2. OpenAPI Generation from TypeScript\n\nWith the right framework integration, SDK-IT can statically examine your codebase and generate OpenAPI specifications with minimal input required.\n\n- Extracts TypeScript types for request/response schemas\n- Uses framework-specific adapters to detect API patterns\n- Requires little to no additional configuration or annotations; depends on your code structure and naming conventions\n\nThe result is accurate OpenAPI documentation that stays in sync with your code.\n\n```typescript\nimport { validate } from '@sdk-it/hono/runtime';\n\nconst app = new Hono();\n\n/**\n * @openapi listBooks\n * @tags books\n */\napp.get(\n  '/books',\n  validate((payload) =\u003e ({\n    author: {\n      select: payload.query.author,\n      against: z.string(),\n    },\n  })),\n  async (c) =\u003e {\n    const books = [{ name: 'OpenAPI' }];\n    return c.json(books);\n  },\n);\n```\n\nThis route will be correctly inferred because it uses the validate middleware and has an `@openapi` tag.\n\n[Supported frameworks](#OpenAPI-Generation-Framework-Support)\n\n## Guides\n\n- [Monorepos](./docs/monorepos.md)\n\n## Examples\n\n- [Docker Engine](./docs/examples/docker-engine.md)\n- [OpenAI](./docs/examples/openai.md)\n- [Figma](./docs/examples/figma.md)\n- [Hetzner Cloud](./docs/examples/hetzner.md)\n- [Discord](./docs/examples/discord.md)\n- [OpenStatus](./docs/examples/openstatus.md)\n\n## Roadmap\n\nSDK-IT is evolving to support more languages and frameworks. Here's our current roadmap:\n\n### SDK Generation Languages\n\n- [x] TypeScript/JavaScript\n- [ ] Dart (WIP)\n- [ ] Python\n- [ ] Go\n- [ ] Rust\n- ...\n\n### Frontend Framework Integration\n\n- [x] [React Query](./docs/react-query.md)\n- [x] [Angular](./docs/angular.md)\n\n### OpenAPI Generation Framework Support\n\n- [x] [Generic HTTP primitives](./packages/generic/README.md)\n- [x] [Hono](./packages/hono/README.md)\n- [ ] Express (WIP)\n- [ ] Fastify\n- [ ] Koa.js\n- [ ] Next.js\n\nWe welcome contributions to help us expand language and framework support!\n\n## Contributing\n\nSDK-IT is organized as a monorepo with multiple packages:\n\n```\n.\n├── packages/\n│   ├── core/             # Core functionality and utilities\n│   ├── cli/              # Command-line interface\n│   ├── generic/          # Generic OpenAPI generation\n│   ├── hono/             # Hono OpenAPI generation\n│   └── typescript/       # TypeScript code generation\n```\n\nEach package serves a specific purpose:\n\n- **core**: Provides fundamental utilities and services used by all other packages\n- **cli**: Command-line interface for SDK-IT\n- **typescript**: Focuses on generating TypeScript code from OpenAPI specifications (primary use case)\n- **generic**: OpenAPI generation using `output` and `validate` constructs.\n- **hono**: OpenAPI generation for the Hono framework\n\nFor more detailed information about the codebase structure and development process, see the [contributing guide](CONTRIBUTING.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjanuarylabs%2Fsdk-it","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjanuarylabs%2Fsdk-it","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjanuarylabs%2Fsdk-it/lists"}