Index of every page on this site: llms.txt
All skills
Run it yourself

Fishjam platform fundamentals — domain model and auth shared by all SDKs. Covers glossary (room, peer, track, agent, streamer, viewer), the four room types (conference / audio_only / livestream / audio_only_livestream), two-tier auth (management vs peer tokens), Sandbox vs production, WebSocket-vs-webhook notifications and the 18-event taxonomy, REST endpoint list, and the end-to-end auth/join flow. Read this first for any Fishjam task. Trigger on: 'Fishjam', 'fishjam.io', 'fishjam.swmansion.com', 'fishjam dashboard', 'management token', 'peer token', 'sandbox API', 'useSandbox', 'room manager', 'livestream room', 'audio-only room', 'conference room', 'Fishjam ID', 'room types', 'auth flow', 'webhook', 'webhookUrl', 'FishjamWSNotifier', 'FishjamNotifier', 'notifier vs webhook', 'ServerMessage', 'peerAdded', 'peerConnected', 'roomCreated', 'refreshPeerToken', 'rest endpoint', 'OpenAPI', 'llms.txt'.

  • 10 files
  • 54.4 KB
  • MIT
  • Updated last month
  • GitHub
Use this Skill: https://skilld.dev/gh/software-mansion-labs/skills/platform

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

glossary.md

≈1.5k tokens on demand. Your agent reads this file only when SKILL.md points to it.

Fishjam Glossary

Mirrors the canonical definitions at https://fishjam.swmansion.com/docs/explanation/glossary. Linked from every Fishjam SDK skill.

Room

A collection of peers that exchange audio and video. Identified by a room.id (server-assigned). Created by the backend via the server SDK or REST API. Four room types — conference (default), audio_only (75% cheaper, video tracks silently dropped), livestream (one streamer, many viewers, single video + single audio track), audio_only_livestream (audio-only livestream variant). Optional webhookUrl on creation routes server notifications for that room to your endpoint.

Peer

A user or program connected to a room. Each peer has:

  • An id (server-assigned).
  • A peerType: webrtc (client SDK), agent (server-side via createAgent / create_agent), vapi (managed voice agent).
  • Optional metadata (set at peer creation by the backend; the client can update its own metadata mid-session via useUpdatePeerMetadata / update_peer_metadata, emitting peerMetadataUpdated to notifier/webhook).
  • A peerToken issued by the backend that authorizes the client to connect.

A peer publishes zero or more tracks and subscribes to other peers' tracks (automatic by default; manual via subscribePeer / subscribeTracks).

Track

A single stream of media — one camera, one microphone, one screen share, or one audio output from an agent. A peer typically publishes multiple tracks simultaneously. Track shape:

  • id — server-assigned per track.
  • type — video | audio | unspecified.
  • metadata — opaque string set by the publishing peer; visible to all subscribers.

Agent

A programmatic peer — a server-side program that joins a room via the server SDK (FishjamClient.createAgent / create_agent) and sends or receives audio frames directly. Used for AI voice integrations (e.g., Gemini Live) and custom server-side audio processing. Agents do not run a WebRTC negotiation; they use a direct protocol over WebSocket.

Streamer

Livestream-room-specific peer role: the single peer authorized to publish into a livestream room. Authorized by a livestream streamer token (createLivestreamStreamerToken). One streamer per livestream room.

Viewer

Livestream-room-specific peer role: a peer that only consumes the livestream. Unlimited viewers per room. For private livestreams a viewer needs a viewerToken (createLivestreamViewerToken); for public livestreams the room ID alone suffices.

Channel

Server-side notification subject that tracks WebRTC data-channel lifecycle inside a room. Server notifications channelAdded / channelRemoved carry roomId, channelId (required), and exactly one of peerId / componentId (the endpoint that owns the channel). Distinct from Data Channel below — "Channel" is the notification entity; "Data Channel" is the client-side RTC primitive you use via useDataChannel.

Management Token

Long-lived secret credential issued from the Fishjam Dashboard. Authorizes the server SDK to call REST endpoints — create rooms, mint peer tokens, configure webhooks, set immutable peer metadata. Never ship this token to a client. If exposed, regenerate from the Dashboard.

Peer Token

Short-lived (24-hour), peer-scoped credential issued by the backend (createPeer / create_peer returns it alongside the peer object). Authorizes one client to join one room as one peer. Safe to send to a frontend. Refresh via refreshPeerToken / refresh_peer_token to extend validity.

Adjacent token types: livestream streamer token, livestream viewer token, MoQ publisher/subscriber token — see auth-model.md.

Fishjam ID

Identifier of your Fishjam instance. Both the backend (FishjamClient constructor) and the client (FishjamProvider / useConnection) need it. Visible in the Fishjam Dashboard. Not a secret on its own — the management token does the gating — but knowing it lets clients connect to your instance, so don't publish it pointlessly.

Sandbox API

A no-auth HTTP backend hosted by Fishjam that mints peer tokens, livestream tokens, and MoQ tokens for your instance. Intended for prototyping a frontend before you've stood up a real backend. Activated and rotated from the Dashboard's Sandbox tab. Not for production — anyone with the URL can create rooms on your behalf. See sandbox-vs-production.md.

Track Forwarding

Forwarding a room's tracks into a composition. Set up via POST /room/{room_id}/track_forwardings with the composition URL; Fishjam then adds each peer's media as a composition input while the peer publishes. Lasts as long as the room. See ../composition/room-composition.md.

Data Channel

WebRTC data channel between peers, used for arbitrary app-defined messaging (text chat, signals, etc.). Distinct from media tracks. See useDataChannel on the client SDKs.

Webhook

HTTP POST callback Fishjam sends to your backend per room-lifecycle event. Set the webhookUrl when creating a room. Payload is binary protobuf (Content-Type: application/x-protobuf) — decode with the SDK helper. Same event set as the WebSocket notifier (see notifications-taxonomy.md). Picking between the two: notifier-vs-webhook.md.

Notifier

Object exposed by the server SDKs — FishjamWSNotifier in JS, FishjamNotifier in Python — that opens a persistent WebSocket to Fishjam and emits typed events. Drop-in alternative to webhooks for single-process worker deployments.

MoQ (Media over QUIC)

Newer Fishjam streaming mode for one-to-many delivery using the MoQ standard. Distinct from livestream rooms (which use WHEP/WebRTC). Tokens issued via createMoqToken / create_moq_token; clients connect to relay.fishjam.io/<fishjam-id>. See room-types.md and the upstream docs (docs/explanation/moq-streaming, docs/tutorials/moq).

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No third-party reports yet.

Signed by skilld at 43cde80. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 weeks ago.

Activeupdated last month

README badge

README badge for software-mansion-labs/skills/platform