# Desktop plugins & Broadcast Bridge (/docs/organisers/desktop-plugins)

Install optional Strave Desktop plugins on Windows, including Broadcast Bridge for NDI, vMix HTTP push, and Bitfocus Companion.

Strave Desktop supports optional on-demand plugins so core players don't
download broadcast tooling they never use. The first plugin, **Broadcast
Bridge**, connects Strave overlays and live match data to vMix, NDI, and
Bitfocus Companion on Windows.

<Callout type="info">
Strave Desktop plugins and Broadcast Bridge run on Windows only. On macOS and
Linux, use the combined program URL or live vMix Data Sources described in
[vMix integration](/docs/organisers/overlays/vmix).
</Callout>

## How desktop plugins work [#how-desktop-plugins-work]

Plugins follow the same verified delivery model as the Strave anti-cheat
component. Nothing downloads or runs until you opt in.

- **Zero overhead when disabled:** Strave Desktop spawns no plugin processes
  until you install and enable a plugin.
- **Verified downloads:** Each desktop release embeds an approved plugin
  manifest with exact SHA-256 hashes. Before launching any plugin binary on
  Windows, Strave Desktop verifies every file hash and checks Windows
  Authenticode code signing.
- **Isolated supervision:** Each enabled plugin runs in its own child process.
  If a plugin crashes, Strave Desktop restarts it with backoff delays (1 second,
  3 seconds, and 10 seconds). After 5 crashes within 60 seconds, the plugin
  moves to a **Degraded** state until you select **Restart**.
- **Clean removal:** Selecting **Remove** deletes the plugin folder from disk,
  and the Strave Desktop Windows uninstaller removes all installed plugin files
  automatically.

## Install and manage plugins [#install-and-manage-plugins]

Manage every desktop plugin from one screen inside Strave Desktop.

1. Open Strave Desktop on Windows and go to **Settings → Plugins**.
2. Find **Broadcast Bridge** in the list and select **Install**. Strave
   Desktop downloads the verified plugin files and shows progress inline.
3. Once installation finishes, select **Enable** to start the plugin.
4. Optional: Select **Disable** to stop the plugin without uninstalling it,
   **Update** when a newer approved version is ready, or **Remove** after
   disabling the plugin to delete its files.

## Broadcast Bridge overview [#broadcast-bridge-overview]

Broadcast Bridge is a standalone Windows helper (`StraveBroadcastBridge.exe`)
managed by Strave Desktop. It combines three broadcast features in one process
so your production machine stays light and predictable.

### NDI video output with alpha [#ndi-video-output-with-alpha]

Broadcast Bridge renders up to 4 Strave overlay channels offscreen and sends
each channel as a named NDI source on your local network or production PC.

- **Straight-alpha BGRA output:** Premultiplied browser frames are converted to
  straight-alpha BGRA before entering NDI, preventing dark fringes around
  semi-transparent shadows and anti-aliased text in vMix.
- **Canvas and frame rate limits:** Each channel supports resolutions up to
  3840 × 2160 at `30` or `60` fps (default `1920 × 1080` at `60` fps).
- **Idle frame throttling:** When idle throttling is on (the default), an
  off-air channel emits one fully transparent frame and pauses rendering until
  a graphic comes back on air.
- **vMix setup:** In vMix, select **Add Input → NDI / Desktop Capture** and
  pick your Broadcast Bridge source (for example `Strave - Program`). Add it as
  an Overlay channel in vMix with no Web Browser input required.

NDI® is a registered trademark of Vizrt NDI AB
([ndi.video](https://ndi.video)).

### Local vMix HTTP API push [#local-vmix-http-api-push]

When you want Broadcast Bridge to push changes directly into local vMix inputs
instead of polling from vMix Data Sources Manager, enable vMix HTTP push.

- **Diff-based updates:** Broadcast Bridge polls your configured Strave JSON
  feed (`/api/overlay/vmix-data` or `/api/overlay/vmix-design`) every `250` to
  `10000` milliseconds (default `500` milliseconds) and sends `SetText` or
  `SetImage` calls to vMix only for fields whose value changed.
- **Overlay cues:** Bridge can also trigger vMix `OverlayInput1In` through
  `OverlayInput4In` and `OverlayInput1Out` through `OverlayInput4Out` commands
  on slots `1` to `4`.
- **Private-network guard:** For security, the vMix target URL must point to
  `http://127.0.0.1:8088` (or `localhost`) or a private RFC1918 LAN address
  (`10.0.0.0/8`, `172.16.0.0/12`, or `192.168.0.0/16`). Public internet hosts
  are rejected automatically.

### Bitfocus Companion and Stream Deck control [#bitfocus-companion-and-stream-deck-control]

Broadcast Bridge includes an optional local HTTP control server so hardware
decks such as Bitfocus Companion or Elgato Stream Deck can cue graphics and
update live overlay scores.

By default, the server binds strictly to loopback (`http://127.0.0.1:48721`).
If you enable LAN access (`0.0.0.0`) to control Strave from another production
PC on your studio network, you must configure a bearer token of at least 16
characters. Requests without a matching `Authorization: Bearer <token>` header
receive `401 Unauthorized`.

| Method | Path                   | Purpose                                                    |
| ------ | ---------------------- | ---------------------------------------------------------- |
| `GET`  | `/v1/health`           | Check bridge status and NDI attribution metadata.          |
| `GET`  | `/v1/state`            | Read active channels, vMix connection state, and cue list. |
| `GET`  | `/v1/companion-preset` | Download a starter Companion generic-HTTP button preset.   |
| `POST` | `/v1/cues/:designId`   | Show, hide, or toggle one design overlay cue.              |
| `POST` | `/v1/match/score`      | Increment or decrement the live overlay score for a team.  |

#### Toggle or set a graphic cue [#toggle-or-set-a-graphic-cue]

Send a JSON body with `visible` set to `true`, `false`, or `"toggle"`:

```json
{
	"visible": "toggle"
}
```

#### Adjust the live overlay score [#adjust-the-live-overlay-score]

Send `team` (`"a"` or `"b"`) and `delta` (`1` or `-1`):

```json
{
	"team": "a",
	"delta": 1
}
```

#### Import the starter Companion preset [#import-the-starter-companion-preset]

Fetch `GET http://127.0.0.1:48721/v1/companion-preset` to generate a JSON list
of pre-wired generic-HTTP buttons for **Team A +1**, **Team B +1**, and toggle
buttons for each active design cue.

## Troubleshooting [#troubleshooting]

Check these common causes if a plugin or bridge output doesn't behave as
expected.

- **Plugin shows "Desktop plugins run on Windows only":** Run Strave Desktop on
  Windows 10 or Windows 11, or use the web-based workflows in
  [vMix integration](/docs/organisers/overlays/vmix).
- **Plugin status is Degraded:** Review the error shown under **Settings →
  Plugins**, verify that your overlay URLs and vMix target URL are reachable,
  and select **Restart**.
- **vMix target rejected:** Confirm that vMix Web Controller is enabled on port
  `8088` and that the target uses `127.0.0.1`, `localhost`, or a private LAN IP
  address.
- **Companion returns `401 Unauthorized`:** Check that the `Authorization`
  header uses `Bearer <token>` with the exact token configured for LAN mode.

## Next steps [#next-steps]

- Compare all vMix workflows in
  [vMix integration](/docs/organisers/overlays/vmix).
- Build and publish custom graphics in
  [Design overlays](/docs/organisers/overlays/designs).
- Operate live playdays and cues in
  [Stream Manager](/docs/organisers/overlays/stream-manager).