grafana/openapi-to-k6

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

59
/ 100
Established

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.

Available on npm.

Maintenance 13 / 25
Adoption 8 / 25
Maturity 25 / 25
Community 13 / 25

How are scores calculated?

Stars

66

Forks

8

Language

TypeScript

License

AGPL-3.0

Last pushed

Mar 17, 2026

Commits (30d)

0

Dependencies

10

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/ai-coding/grafana/openapi-to-k6"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.