grafana/openapi-to-k6

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

59
/ 100
Established

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.

API-performance-testing developer-tools QA-engineering load-testing API-development
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.