@kubb/studio
Kubb Studio client runtime.
Connects a Kubb project to Kubb Studio through typed Cap'n Web RPC over one
authenticated WebSocket, and publishes snapshots from CI in one HTTP request. It backs the kubb studio
CLI command and the kubblabs/kubb-agent Docker image.
Most people never install this directly. Reach for kubb studio instead, which pairs your machine
and runs this for you.
Installation
npm install @kubb/studio
Permissions
Every permission is off by default, and each covers one trust boundary:
| Option |
What it grants |
allowWrite |
Generated files are written to disk. Off means they exist only in memory and stream to Studio. |
allowExec |
The formatter, the linter, and output.postGenerate run as child processes. |
allowConfigEdit |
Studio may change plugin options in kubb.config.ts. |
allowRead |
Studio may read existing output files and the files a generation produced. |
allowReadAst |
Studio may read back the parsed spec (the Kubb AST). |
allowFileRefs |
A $ref in the spec may read a local file outside the project. |
A sandbox never writes or edits config. A sandbox the host declares with agentType: 'sandbox' or 'global' always allows reads.
Supporting Kubb
Kubb is an open source project, and its development is funded entirely by sponsors. If you would like to become a sponsor, please consider:
License
MIT