RunKit API for evaluating arbitrary JavaScript

I understand RunKit can be embedded in any pages.

Is it possible for RunKit release an API to run some arbitrary JavaScript?

For example,
RunJavaScript(code: string, onStream, onEnd): Promise(string) {}

So that I can use RunKit to develop a JavaScript Kernel for Jupyterlab.

At the same time, please clarify the commercial terms for the API.