Skip to content

Web editor

Run /rr editor, or /rr editor user <name> or /rr editor group <name>. You get a clickable link that expires after editor.token-lifetime-minutes.

This is the default. The plugin serves the editor on editor.port (7780). Staff open the link, edit, and the changes apply immediately. Set editor.public-url if the bound address is not the one people should open.

Use this for networks that should not expose a port on every backend server. Host the editor once, set editor.mode: remote and editor.remote-url, and /rr editor uploads a snapshot. After editing, run /rr apply <code> on the server.

editor:
enabled: true
mode: integrated # or "remote"
host: 0.0.0.0
port: 7780
public-url: ""
token-lifetime-minutes: 120
remote-url: "http://127.0.0.1:7781"

From the web/ folder of the repository:

Terminal window
npm ci
npm run build
PUBLIC_URL=https://editor.example.com PORT=7781 npm run server

Or with Docker, after a build:

Terminal window
PUBLIC_URL=https://editor.example.com docker compose -f server/docker-compose.yml up --build -d

The host’s API and environment variables are described in web/server/README.md.

The colour studio also works without a session, as a MiniMessage playground.