A self-hosted meeting service built on the Live777 WebRTC engine (WHIP/WHEP).
- Node.js 26 and npm
- Stable Rust with rustfmt and Clippy
- Live777/Liveion on port 7777
- Docker for the default Liveion service and container builds
Start Liveion:
docker compose up -dDocker Compose loads conf/live777.toml, which restricts
video to H264 and audio to Opus for both WHIP publishing and WHEP subscribing.
CI E2E tests use the same configuration.
The WebApp also prefers H264, then VP9 when publishing, retaining all other supported codecs as fallbacks, including H265 and AV1. If using a separately managed Live777 instance, apply the same codec whitelist; WOOM does not transcode streams from other publishers.
Generate a secret once and keep it stable across restarts. Existing user tokens and room ownership depend on it.
export SECRET="$(openssl rand -hex 32)"
npm ci
npm run build
cargo runcargo run serves the production WebApp and API on http://localhost:4000. The initial npm run build creates static/dist, which is required when compiling the backend.
For frontend development, run Vite in another terminal:
npm run devVite listens on http://localhost:5173 and proxies the API, browser logs, WHIP/WHEP and session signaling through the Rust server on port 4000.
The WebApp supports English (default) and Simplified Chinese. Change the language
under Settings → General → Language, or use the language selector on /admin.
The choice applies immediately and is saved in this browser. Interface labels,
errors and dates follow the selected language; participant names, chat, captions
and generated meeting content retain their original text.
Use the layout selector above the meeting stage (also in Settings → General):
- Auto uses a grid until someone shares their screen, then gives the shared screen the main stage.
- Grid keeps every visible stream, including shared screens, in the grid.
- Speaker gives one participant the main stage, with a strip on the right on desktop or below on mobile. Automatic focus prioritizes shared screens, then the designated presenter, then the first remote participant (or yourself).
Pin a tile or choose a participant from the main-participant selector to keep that person on the main stage, including while someone else shares a screen. Unpin to return to automatic focus. A pin clears when the person leaves or you switch layouts; only the layout preference is saved for future meetings. Speaker view selects a participant rather than following microphone activity.
The main stage reuses the tile's existing media stream and plays no additional copy of the audio. The nine-participant tile limit still applies; selecting a hidden participant brings them into that set. Focused video is enabled despite the default six-video limit, while explicit per-participant video choices are preserved.
| Variable | Default | Purpose |
|---|---|---|
SECRET |
required | HS512 signing secret; at least 32 bytes, not a known default |
PORT |
4000 |
WOOM HTTP port |
LIVE777_URL |
http://localhost:7777 |
Upstream Live777/Liveion URL |
LIVE777_TOKEN |
empty | Optional upstream bearer token |
DATA_FILE |
./data/woom.json |
Durable state file; :memory: disables persistence for tests |
LOG_READ_TOKEN |
empty | Optional admin token for reading browser diagnostics; at least 32 bytes when set |
CAPTION_TOKEN |
empty | Optional static token enabling the live-captions API used by caption-bot/; at least 32 bytes when set |
EVENTS_CABLE |
empty (disabled) | Optional opt-in (any value except empty/0/false) dual-push of room events over a Live777 cable datachannel alongside SSE; requires the Live777 cable messages API (merged, no release yet — dev compose and CI build a pinned live777 commit) and a single-node Live777 (cables do not bridge liveman cascade nodes) |
MINUTES_URL |
empty | Optional OpenAI-compatible chat-completions base URL (e.g. Ollama http://localhost:11434/v1) enabling POST /room/{id}/records/{meetingNo}/minutes |
MINUTES_MODEL |
empty | Model name for the minutes endpoint; required when MINUTES_URL is set |
MINUTES_API_KEY |
empty | Optional bearer token for the minutes upstream |
ADMIN_USER |
empty | Optional admin console username; both ADMIN_USER and ADMIN_PASSWORD must be set to enable the console |
ADMIN_PASSWORD |
empty | Admin console password; must not be blank when set |
WOOM requires membership authorization for room events, chat, presence and media signaling. Room passwords and secrets are never included in API responses or startup logs.
The browser reports errors, warnings and WebRTC lifecycle events to WOOM. Set a separate admin token to enable the diagnostic export endpoint:
export LOG_READ_TOKEN="$(openssl rand -hex 32)"
curl -H "Authorization: Bearer $LOG_READ_TOKEN" \
"http://localhost:4000/log?meetingId=123-456-789&limit=500" \
-o woom-browser-log.ndjsonFilters include meetingId, sessionId, level, since (epoch milliseconds) and limit. The NDJSON output contains session and meeting identifiers, timestamps, event data, page URL and user agent, so it can be supplied directly to an AI assistant for troubleshooting.
whip_rtp and whep_rtp report the first active RTP sample per connection,
including negotiated codecs, payload types, packet/byte counters and encoded
or decoded frame counts. whep_video_unavailable reports rejected or stalled
video without repeatedly disconnecting working audio. Transport failures and
media stalls without working audio have at most three automatic reconnects,
with 10s and 20s between retries. A warning offers manual reconnect after
exhaustion; retries reset after 30s of healthy media or an explicit reconnect.
These diagnostics contain no SDP or ICE credentials.
GET /log is disabled when LOG_READ_TOKEN is unset and never accepts an ordinary user JWT. The in-memory buffer retains the most recent 5000 entries and is cleared on restart; long-term history remains available through the existing client_log service-log output. Exported data is redacted, but should still be treated as sensitive diagnostic material.
WOOM supports live meeting subtitles through an optional sidecar process, caption-bot/ (binary woom-caption). For every participant publishing audio, the bot subscribes to their Live777 stream over WHEP, decodes Opus, streams PCM to an external streaming speech-to-text server (a sherpa-onnx reference implementation is included; bilingual Chinese/English, CPU-only), and posts caption segments back to WOOM. Browsers receive them as caption SSE events and render an overlay. Partial segments are ephemeral; final segments are archived into the meeting record and exposed through the records APIs as the meeting transcript.
Enable the caption API on the server, then run the STT server and the bot — either directly (see caption-bot/README.md) or with the captions compose profile, which builds both images:
export CAPTION_TOKEN="$(openssl rand -hex 32)"
# WOOM server runs with CAPTION_TOKEN set
docker compose --profile captions up -d --buildThe caption endpoints are disabled when CAPTION_TOKEN is unset and never accept an ordinary user JWT.
With MINUTES_URL/MINUTES_MODEL configured, any meeting participant can generate two LLM artifacts from an archived transcript: Markdown minutes via POST /room/{roomId}/records/{meetingNo}/minutes, and a polished transcript (ASR errors fixed, punctuation restored, topic-segmented) via POST /room/{roomId}/records/{meetingNo}/cleanup. Each artifact is generated once and cached in the meeting record (?force=true regenerates). Any OpenAI-compatible endpoint works — for example DeepSeek (MINUTES_URL=https://api.deepseek.com/v1, MINUTES_MODEL=deepseek-flash) or a self-hosted Ollama — so transcripts never have to leave your infrastructure.
Setting ADMIN_USER and ADMIN_PASSWORD together enables a built-in admin console at /admin (API under /api/admin/*). Signing in issues a 12-hour admin token that is held in session storage only; admin tokens are distinct from meeting user JWTs and neither is accepted by the other's API.
The console manages meeting records across all rooms:
- list every archived meeting with its room, duration and content counters
- inspect a full record: transcript, chat messages and cached LLM artifacts
- replay a meeting as a merged chat + transcript timeline (play/pause, 1x/2x/4x)
- generate or regenerate minutes and polished transcripts (requires
MINUTES_URL/MINUTES_MODEL) - permanently delete records (records otherwise accumulate forever)
The admin API answers 404 while the variables are unset, and the credentials are read at startup — changing them requires a restart. Serve WOOM over HTTPS before exposing the console to a network.
WOOM records meetings through the Live777 recorder (the bundled liveion-main:local image has it compiled in). The room owner toggles recording in the meeting controls; every publishing participant's stream is recorded to Live777 storage as fragmented MP4 with a DASH manifest, and participants joining or publishing mid-recording are picked up automatically. Everyone in the meeting sees a REC indicator while it runs. Recording stops when the owner toggles it off, when a publisher leaves, or when the meeting ends.
Recordings are attached to the archived meeting record: the room owner can play them from the room's meeting history, and admins from the console's Recordings tab (where entries can also be deleted). Playback runs through WOOM-authorized DASH proxies (/room/{id}/records/{no}/playback/*, admin variant under /api/admin/) gated by one-hour tickets. Publishers prefer H264, then VP9; the VP8 fallback cannot be recorded by Live777.
Storage notes: the Live777 container writes ./storage (compose mounts a live777-storage volume); S3-compatible storage is configured on the Live777 side ([recorder.storage]). Deleting a recording in WOOM removes its metadata, its Live777 index row, and the media files (via delete_files; Live777 versions before that fix keep the files, so deployment-side retention like bucket lifecycle rules is still recommended).
Rooms, meetings, participants, chat and meeting records are stored in an atomically replaced JSON file. Presence is ephemeral and is restored by client heartbeats after a restart.
The JSON store supports one WOOM process only. Do not share one file between replicas. Back up DATA_FILE and the configured SECRET together. A damaged or unknown-version data file prevents startup rather than being overwritten.
For Docker, /data/woom.json is the default and /data should be a persistent volume:
docker build -t woom .
docker volume create woom-data
docker run --rm --network woom -p 4000:4000 \
-e SECRET \
-e LIVE777_URL=http://live777:7777 \
-e LOG_READ_TOKEN \
-v woom-data:/data \
woomOnly HTTP signaling is proxied through WOOM. WebRTC media still requires reachable ICE candidates. On NAT, Docker Desktop or public deployments, configure Live777's external candidates and UDP/TURN networking as appropriate; publishing only TCP port 7777 is not a general NAT solution.
For Fly.io, create the volume once in the configured region, set the secrets, then deploy:
fly volumes create woom_data --region nrt --size 1
fly secrets set SECRET="$(openssl rand -hex 32)"
fly secrets set LOG_READ_TOKEN="$(openssl rand -hex 32)"
fly secrets set LIVE777_TOKEN="your-upstream-token" # if required
fly deploymake
export SECRET="your-stable-production-secret"
./target/release/woommake builds the WebApp before compiling the release binary. Cargo and npm both use their lockfiles in release and container builds.
Format and lint the WebApp and E2E sources with Biome 2.6.4, ESLint and vue-tsc:
npm run format
npm run lintRust format, lint and unit/API/store tests:
npm run test:rustBrowser E2E tests use Chromium with fake media devices:
docker compose up -d
npx playwright install chromium
npm run test:e2eThe E2E server uses a test-only secret and in-memory storage. By default, Playwright starts the newly built binary rather than reusing whatever is already listening on port 4000. For an explicitly verified running server, opt in with:
E2E_REUSE_SERVER=true npx playwright testThe suite covers meeting and chat flows, authorization boundaries, media lifecycle, reconnect/recovery, video frame progress and PWA offline behavior.