Fishjam

作者 software-mansion-labse3f00cdb3494MIT291 个星标收录于 2026年10月8日更新于 2026年10月8日仓库10天前更新

Software Mansion's Fishjam — hosted WebRTC platform for video, audio, and one-to-many livestreaming. MUST USE before writing, reviewing, or debugging ANY code that talks to a Fishjam instance from a backend (Node, Python) or a client (React web, React Native / Expo). Routes to platform fundamentals and the right SDK sub-skill. Trigger on: 'Fishjam', 'fishjam.io', 'fishjam.swmansion.com', 'fishjam dashboard', 'Fishjam ID', 'management token', 'peer token', 'sandbox API', 'livestream room', '@fishjam-cloud/js-server-sdk', 'fishjam-server-sdk', '@fishjam-cloud/react-client', '@fishjam-cloud/react-native-client', '@fishjam-cloud/ts-client', 'FishjamClient', 'FishjamProvider', 'FishjamNotifier', 'FishjamAgent', 'createPeer', 'createRoom', 'createAgent', 'createLivestreamStreamerToken', 'createMoqToken', 'refreshPeerToken', 'webhook', 'gemini fishjam', 'vapi fishjam', 'fishjam expo plugin'.

AI 生成的概览

引导代理了解 Fishjam WebRTC 平台基础,并为后端或客户端代码指向正确的 SDK 子技能。

功能
该技能是 Software Mansion 托管的 Fishjam WebRTC 平台的路由指南,涵盖视频、音频和一对多直播。它指向平台参考文档以了解领域模型(房间、对等端、轨道、令牌、通知),并指向 JavaScript 服务端 SDK、Python 服务端 SDK、React 客户端、React Native/Expo 客户端以及直接使用 REST 的子技能。它还说明了关于管理令牌、24 小时对等端令牌及刷新、以及仅限开发环境的 Sandbox API URL 的关键规则。
适用场景
在编写、审查或调试任何与 Fishjam 实例通信的代码之前使用,无论是来自 Node 或 Python 后端,还是 React、React Native 或 Expo 客户端。在处理 Fishjam 令牌、房间、对等端、webhook 或直播概念时也适用。
运行要求
不附带脚本,仅为说明文档。它假定可以访问 references/ 下引用的子技能文件,并且在实际使用时需要一个带有管理令牌和对等端令牌的 Fishjam 账户。

Fishjam

Software Mansion's hosted WebRTC platform. Routes between platform fundamentals and the four SDKs.

Read the references/platform/SKILL.md first for the domain model (rooms, peers, tracks, tokens, notifications). Then read the SDK sub-skill that matches what you're building. All sub-skills are in references/.

Which sub-skill do I need?

You are writing…Sub-skill
Anything Fishjam — start here for glossary, room types, auth, notifications, RESTreferences/platform/SKILL.md
A Node.js / Express / Fastify / Hono backendreferences/js-server-sdk/SKILL.md
A Python / FastAPI / Flask backendreferences/python-server-sdk/SKILL.md
A React app in a browserreferences/react-client/SKILL.md
A React Native / Expo app for iOS or Androidreferences/react-native-client/SKILL.md
Vanilla TS / Svelte / Vue / web worker (non-React)references/react-client/SKILL.md → ts-client-escape.md (drop to @fishjam-cloud/ts-client)
Just calling REST directly (no SDK)references/platform/rest-endpoints.md

A production Fishjam app always has a backend (server SDK) + a client (client SDK). For prototyping you can skip the backend with the Sandbox API — see references/platform/sandbox-vs-production.md.

Critical rules

  • Management token never leaves the backend. If it leaks, regenerate it from the Dashboard.
  • Peer tokens are valid for 24 hours from creation. The token is consumed during the initial WS handshake; an established session keeps running on its own. If the peer hasn't connected yet or needs to reconnect after 24h, call refreshPeerToken / refresh_peer_token to mint a new one.
  • Sandbox API URLs are dev-only. Anyone holding one can create rooms on your account — never ship in a production client build.

来源与署名

来源:software-mansion-labs/skills位于skills/fishjam提交e3f00cd

许可证: MIT

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架