Skip to content

Remote control & multiple screens

Seedshade’s visuals can be controlled from the terminal of another PC, or from an AI (via the CLI). The main window connects to a relay server over WebSocket, and the CLI (vj-ctl and others) sends commands to that relay.

Relay URL to use Where the relay runs Best for
room ?room=<id> The hosted version’s Worker (/room/<id>) Using the hosted version. Works from another PC or another network
bridge ?bridge=1 pnpm bridge on your own PC (127.0.0.1:7877) Using the local version (pnpm dev). Same PC only

If the URL has neither room nor bridge, the main window does not connect to any relay (so there is no risk of it being controlled unexpectedly during a show).

The CLI is in the repository, so set up the repository on the controlling PC (Node.js 24 and pnpm are required).

  1. Set up the repository

    ターミナルウィンドウ
    git clone https://github.com/tainakanchu/seedshade.git
    cd seedshade
    pnpm install
  2. Create a room (no network traffic; it only generates a random shared key)

    ターミナルウィンドウ
    node scripts/vj-ctl.mjs room --host seedshade.tainakanchu.com

    It prints room (the id), pageUrl, and ctlArgs as JSON.

  3. Open pageUrl on the output PC

    The URL has the form https://seedshade.tainakanchu.com/?room=<id>. You may add other parameters such as ui=hide.

  4. Confirm it is connected

    ターミナルウィンドウ
    node scripts/vj-ctl.mjs --url wss://seedshade.tainakanchu.com/room/<id> state

    If JSON comes back, you are ready. Add the same --url to every command from here on (you can use ctlArgs as is).

  • {"error":"no synth connected"} … one of: the page is not open, ?room= is missing, or the room id is wrong.
  • The room id is a shared key with no authentication. Anyone who knows the URL can control the visuals, so do not post it in public places, and create a new one for each show.
  • A room id is 8 to 64 characters of alphanumerics, _, and -. An id with a different form will not connect.
  1. Start the local version (pnpm dev).

  2. In another terminal, start the relay and leave it running.

    ターミナルウィンドウ
    pnpm bridge

    If you see vj-bridge listening on ws://127.0.0.1:7877 ..., it is OK.

  3. Open https://localhost:5173/?bridge=1 in the browser.

  4. Check with node scripts/vj-ctl.mjs state (the local relay is the default target, so --url is not needed).

  • The relay listens only on 127.0.0.1 (it has no authentication, so it is not exposed to the LAN). Therefore it can only be used within the same PC.
  • To change the port, use pnpm bridge --port 7878, ?bridge=7878 for the page, and --port 7878 for the CLI.
  • vj:gen / vj:tweak / vj:recipe require a connection target, so add --url ws://127.0.0.1:7877 (How it works & connecting).

You can connect any number of display-only mirror screens to the same room (or bridge).

Role URL Count
Main (responds to commands) ?room=<id> Only one
mirror (display only) ?room=<id>&mirror=1 Any number

Commands sent from the CLI reach the main and all mirrors at the same time. Mirrors do not send responses, so the main answers queries such as state.

Opening the local version from another LAN device

Section titled “Opening the local version from another LAN device”

pnpm dev is also exposed to the LAN, so another device on the same network can open https://<the PC's IP address>:5173/ (proceed past the self-signed certificate warning via “Advanced” → “Proceed to …”). However, ?bridge=1 cannot be used from that device (bridge looks at that device’s own 127.0.0.1). To control from another device, use the hosted version with ?room=.