Skip to main content
A plugin is a directory with a manifest and a JS entry module. This page gets you from nothing to a working sidebar tab, then adds a backend.

1. Create the plugin

myrax.plugin.toml

2. Add a tab

The panel imports your entry as an ES module and calls register(myrax). sidebar.add creates the tab; mount is called when the user opens it and must return a cleanup function.
web/plugin.js
web/plugin.css
Plugin CSS gets the panel’s design tokens for free — var(--panel), var(--text), var(--bg) and friends follow the active theme.

3. Install and look at it

On the server (plugin system must be on — myrax add-ons enable):
Reload the panel: the Hello tab is in the sidebar, the button fires a toast. To iterate, edit the files and reinstall — the panel cache-busts assets automatically.

4. Add a backend (optional)

Frontends are sandboxed to the browser. Anything that needs the server — a process, files, another API — goes in a runtime: a process the panel starts, supervises and proxies for you. Declare it in the manifest:
myrax.plugin.toml
Write a tiny HTTP server that binds the port the panel hands it:
Call it from the frontend through the panel’s proxy — same origin, same auth:
web/plugin.js
Reinstall, and the panel starts the runtime, restarts it with the plugin and writes its output to myrax plugin logs hello.

Next