netblocks Samples
Multiplayer XR for xrblocks. Each sample below is best opened in
two browser tabs so you can see yourself across both.
💡 Every sample starts in local mode (BroadcastChannelTransport
— two tabs, same origin, no signaling server). Click
Start new room in the top-left HUD to generate a join
code; the framework switches to WebRTCTransport and friends
with the same code land in the same mesh. Voice signaling rides on
whichever transport you pick, while audio always flows directly via WebRTC
peer connections.
Basic
Presence
See remote heads as live avatars (plus hands in XR with hand
tracking).
Shared objects
A draggable cube whose transform replicates to all peers, with
cooperative grab/release ownership.
RPC events
Click anywhere to send an emoji burst broadcast to everyone in the
room.
Chat
Plain text chat using the typed events bus — type a message in one tab
and watch it appear in the others.
Spatial voice
Push-to-talk WebRTC audio that pans with each peer's head. WASD /
gamepad to walk around in 2D.
Transports
Switch between BroadcastChannel, WebRTC, and WebSocket transports at
runtime.
Integration
Shared room
Everything together — presence + shared objects + chat + spatial voice
in a single room. The "kitchen sink" demo.