openapi-client and openapi-to-k6

These two tools are complements because tool A generates a client from an OpenAPI spec for general ES6/TypeScript service integration, while tool B specifically leverages an OpenAPI schema to generate a TypeScript client tailored for use with the k6 load testing tool, suggesting that B could utilize the output or principles from A in a specialized context.

openapi-client
62
Established
openapi-to-k6
59
Established
Maintenance 0/25
Adoption 16/25
Maturity 25/25
Community 21/25
Maintenance 13/25
Adoption 8/25
Maturity 25/25
Community 13/25
Stars: 93
Forks: 34
Downloads: 670
Commits (30d): 0
Language: TypeScript
License: MIT
Stars: 66
Forks: 8
Downloads:
Commits (30d): 0
Language: TypeScript
License: AGPL-3.0
Stale 6m
No risk flags

About openapi-client

mikestead/openapi-client

Generate ES6 or Typescript service integration code from an OpenAPI 2 spec

Generates strongly-typed service clients using `isomorphic-fetch` for both plain JavaScript and TypeScript, with optional Redux action creator scaffolding for state management integration. Supports customizable request/response processing hooks, pluggable authorization handlers for OpenAPI security definitions, and retry logic, enabling fine-grained control over HTTP interactions. Accepts OpenAPI 2.0 specs from file paths or URLs via CLI or programmatic API, outputting a gateway module that manages the full request lifecycle.

About openapi-to-k6

grafana/openapi-to-k6

A CLI tool to convert an OpenAPI schema to a TypeScript client to use with k6.

Generates a fully-typed TypeScript client class with methods for each OpenAPI endpoint, enabling IDE auto-completion in k6 scripts. Supports multiple output modes (single file, split types/implementation, or tag-based organization) and can filter endpoints by tags for focused clients. Includes sample k6 script generation with Faker-based data when examples aren't defined in the schema.

Scores updated daily from GitHub, PyPI, and npm data. How scores work