API-First approach k6 extension development

I want to share with you an experimental k6 extension code generator. It’s still in early development, but I’d appreciate any feedback.

tygor allows you to develop extensions using an API-First approach. A TypeScript declaration file can be used as IDL to define the JavaScript API of the extension.
From the TypeScript declaration file, tygor generates the go interfaces needed to implement the API, as well as the binding code between the go implementation and the JavaScript runtime. In addition, tygor is also able to generate a skeleton implementation to help create a go implementation.

1 Like