LAYERS OF TIMESINGULARITY docsChapter 18

WebSocket API

The same live show state the crew screens use, as JSON over a WebSocket, for your own tools: TouchDesigner, Unreal, Notch or a script. Read it; run the show from the desktop app.

Build 0.9.13 · updated 2026-11-05
Checked
2026-11-05
With
SINGULARITY 0.9.13
Upcoming update
checked on our test build

01What it is

SINGULARITY serves the crew screens and the API from one web server on port 8080. It is always on. Its card in NETWORK › OUTPUTS (in 0.9.13: POLARIS › CARDS) Upcoming update is Crew screens, “Web UI and API”, under SYSTEM. The port is not changed in Settings.

AddressGives
http://<show computer>:8080/The crew screens in a browser.
GET /api/stateOne snapshot of the show state, as JSON.
ws://<show computer>:8080/api/wsThe live stream: snapshots and events.

02What the stream carries

snapshot
The whole show state and every part’s health, 30 times a second per client. Each deck: track, play state, position, pitch, BPM, on-air. Also the timecode outputs (DECK A, DECK B, MASTER: timecode, running, followed deck, matched track), each deck’s set-list match, the timecode master, HOLD and the next cues.
event
Things that happen between snapshots: beat (beat number, beat in bar, BPM), cueHit when a set-list cue fires, trackInfoUpdated when a deck’s track info changes. phraseStart is experimental and off by default (Settings › Pro DJ Link › Phrases (rekordbox) · EXPERIMENTAL).
showChanged
The set list changed: fetch it again.
error
A message the server could not handle.

Each snapshot’s deck positions are worked out for the moment it is sent. Between snapshots, move a playing deck on yourself: position + elapsed time × pitch. Snapshots also carry sentAtMs, so a client on a jittery link can time from when it was sent instead of when it arrived. Events are best effort: a slow client drops the oldest. Always take state from snapshots.

03Who may connect

  • A tool on the show computer itself connects without a PIN.
  • With Require pairing ON (the default), another device sees nothing until it is paired with the PIN or the CREW QR code.
  • Every web screen on another device is view only: the show is operated in the desktop app on the show computer.
  • Set it up in Settings › Crew & control › Crew phones & web (in 0.9.13: Settings › Web access). Upcoming update

04What it says

The Crew screens card
MessageWordMeans
Port 8080, 2 client(s)OKServing, with that many screens and tools connected.
Not runningLOOKThe web server is not running. (In 0.9.13 the word is WARN.) Upcoming update
Couldn’t start: its network port is already in use by another programFAILIt could not start: another program already uses port 8080. Other causes read Couldn’t start: …. (In 0.9.13 the card reads ERROR and a technical message such as start() threw BindException: ….) Upcoming update
SymptomCauseDo this
The card reads FAIL (in 0.9.13: ERROR) and crew screens do not open Upcoming updateAnother program on this computer uses port 8080.Close that program and restart SINGULARITY.
A tool on another device gets nothingRequire pairing is ON and the device is not paired.Pair the device with the PIN or the CREW QR code (Settings › Crew & control › Crew phones & web; in 0.9.13: Settings › Web access), or run the tool on the show computer. Upcoming update