grafana/openapi-to-k6
A CLI tool to convert an OpenAPI schema to a TypeScript client to use with k6.
This tool helps developers create robust performance tests for their APIs. It takes an existing OpenAPI specification (in JSON or YAML) and automatically generates a TypeScript client and a sample k6 script. This output allows developers to quickly build k6 performance test scripts with auto-completion and easily call API endpoints defined in their documentation.
Available on npm.
Use this if you are a developer who needs to create k6 performance tests for your APIs and already have an OpenAPI specification.
Not ideal if you are not a developer or do not have an OpenAPI specification for your API.
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
yhnavein/swaggie
Tool for generating TypeScript client code for given Swagger API endpoints
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
SamuelMarks/cdd-c
OpenAPI ↔ C. Frontend for C, concentrating on: generation from code; single-file analysis;...