TypeScript SDK Generation

Generate production-ready TypeScript SDKs from OpenAPI

Automated publishing. Stays in sync forever.

How it works

From OpenAPI spec to published npm package in three steps.

1

Connect your spec

Point code-forge.net at your OpenAPI document via a GitHub repository URL or a direct link.

2

Generate the SDK

The platform runs the-codegen-project CLI and produces a fully-typed TypeScript client SDK.

3

Publish automatically

The generated SDK is versioned and published to npm. Every spec change triggers a new release.

From spec to typed SDK

Your OpenAPI definition becomes a production-ready TypeScript client with zero boilerplate.

openapi.yaml
paths:
  /users/{id}:
    get:
      operationId: getUser
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/User'
generated-sdk.ts
import { ApiClient } from './generated-sdk';

const client = new ApiClient({
  baseUrl: 'https://api.example.com',
  timeout: 5000,
  retry: { attempts: 3, backoff: 'exponential' }
});

// Fully typed response
const user = await client.getUser({ id: '123' });
//    ^? { id: string; name: string; email: string }

Full TypeScript types inferred from schema

Configurable base URL, timeout, and retry logic

Zero runtime dependencies in the generated output

Published to npm with semantic versioning

Your SDKs stay in sync. Automatically.

Connect your GitHub repository once. Every merge to your default branch that touches the OpenAPI spec triggers a regeneration and a new npm publish.

  • GitHub webhook triggers on every push
  • Diff-aware: only re-generates when the spec changes
  • Automatic semantic version bump on publish
  • Full generation log available in the platform dashboard

Open Source

Built on the-codegen-project CLI

code-forge.net is the hosted platform layer on top of the open-source the-codegen-project CLI. You can run the same generator locally or in CI without an account.

github-icon

the-codegen-project/cli

View on GitHub

Start generating SDKs in 5 minutes

Sign in with GitHub and connect your first OpenAPI spec. No credit card required.