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.
Available on npm.
Stars
66
Forks
8
Language
TypeScript
License
AGPL-3.0
Category
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.
Compare
Related tools
reagento/descanso
A modern and simple way to create clients for REST like APIs
mikestead/openapi-client
Generate ES6 or Typescript service integration code from an OpenAPI 2 spec
verizonconnect/ngx-form-generator
Generate Angular ReactiveForms from OpenAPI documents
yhnavein/swaggie
Tool for generating TypeScript client code for given Swagger API endpoints
vermiculus/apiwrap.el
Generate wrappers for your API endpoints!