Viewport Relay
A self-hosted WebSocket relay. Daemons dial out and register a hub, proving they own their key; viewers attach by hub id; the relay forwards end-to-end encrypted bytes it cannot read. Optional: a viewer can always reach a daemon directly.
On npmOn npm. Install it today.
npm install @viewportai/relayDaemons
studiohome networkrelay-aci-runner-1cloud VMrelay-blaptopcoffee shop wifirelay-a
What it does
Encrypted end to end
Channel bodies are Noise messages between the viewer's key and the daemon's key. The relay sees metadata, never plaintext.
Hubs owned by proof
Each registration proves the daemon's X25519 key, bound to this relay's origin, so a token holder cannot take another daemon's hub.
Separate operator tokens
Different tokens for daemons and viewers. A viewer token cannot register a hub.
Bounded under load
Connection caps, an upgrade rate limit, per-viewer buffer accounting and backoff, all with defaults you can override.
Limits today
- No container image yet; the Dockerfile in the repository is not built or verified.
- State lives in memory in one process: a restart drops every connection, and clients reconnect.
- This is the v0.1 rebuild. The earlier Redis-based relay in the archived viewportai/viewport monorepo is no longer documented.