All projects

Genapi

A tool for generating API clients from OpenAPI specifications with type safety.

Genapi generates typed API clients from OpenAPI/Swagger specifications, providing type-safe HTTP clients for your APIs.

Features

  • TypeScript generation: Strongly-typed clients
  • Multiple backends: Support for fetch, axios, and custom transports
  • OpenAPI 3.0 support: Full specification compliance
  • Customizable templates: Modify generated code structure

Example Output

const client = new APIClient({ baseUrl: 'https://api.example.com' });

// Type-safe API calls
const users = await client.users.list({ limit: 10 });
const user = await client.users.get({ id: '123' });

Status

Work in progress - OpenAPI parsing and code generation being developed.