Skip to main content
Send avatar.session from your backend to the browser. Keep your Cloud API key and publisher token on the backend.

React

The package also exports useAvatar().

Browser custom element

Both players handle connection and autoplay permission. For the server’s WebSocket transport, pass { ...session, transport: "websocket" }; otherwise they use WebRTC. The built in avatar.viewer_url is the fastest way to watch a session.