Skip to content

couchpad docs ​

couchpad turns phones into game controllers for a TV or web game. Players scan a QR code, the phone page joins a room, and input reaches the TV over a WebRTC DataChannel or, when the network blocks that, a WebSocket relay. These docs cover the whole path, from your first input frame to running your own server.

Start here ​

  1. 1InstallAdd couchpad from GitHub
  2. 2HostCreate a room on the TV
  3. 3PhoneJoin and draw controls
  4. 4First inputSee frames arrive

The whole path takes about five minutes with the example server.

Explore ​

What couchpad does for you ​

You writecouchpad handles
A TV page that creates a room and reads inputRoom codes, WebRTC offers and answers, ICE candidates
A phone page that renders controlsTouch widgets with haptics and accessible roles
A WebSocket server (or the example one)Relay fallback, 28 KB chunking, reconnect with backoff
Game logicRejoin tokens, TV resume, held-button keepalive, stale frame dropping

MIT licensed. Extracted from the Fire TV party game Cadabra.