netblocks

Create real-time multiplayer XR experiences with presence avatars, shared objects, and voice chat.

455|91|Updated Sep 25, 2025
One-click install
npx skills add https://github.com/google/xrblocks --skill netblocks
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: netblocks
Source: https://github.com/google/xrblocks/tree/main/src/addons/netblocks
Command: npx skills add https://github.com/google/xrblocks --skill netblocks

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires xrblocks, BroadcastChannelTransport, WebRTCTransport, WebSocketTransport, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

NetBlocks eliminates the complexities of creating multiplayer XR (extended reality) experiences by offering a seamless solution that includes real-time sharing, presence avatars, object synchronization, and voice chat.

Core Features & Use Cases

  • Multiplayer Presence: See other users' avatars in real-time, including their heads and hands when using hand tracking.
  • Shared Objects: Synchronize the position and state of objects across all connected devices for collaborative manipulation.
  • RPC Events: Send and receive typed events for chat, button presses, and other interactions.
  • Voice Chat: Implement spatial voice chat for immersive communication.
  • Transport Flexibility: Choose from local development (BroadcastChannelTransport), serverless peer-to-peer (WebRTCTransport), or scalable relay-based options (WebSocketTransport).
  • Use Case: Imagine a group of friends wants to collaboratively build a virtual structure in an XR environment. NetBlocks allows them to do so in real-time, with each person's movements and actions reflected instantly on all screens.

Quick Start

Use the netblocks skill to create a multiplayer XR experience by running the command: enableNet(). Then, join a room with the command: joinRoom('my-room').

Frequently Asked Questions about netblocks

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add real-time multiplayer features to an XR environment?

To add multiplayer features to an XR environment, you can use a framework that provides presence avatars, shared objects, and voice chat. This allows collaborative manipulation and real-time synchronization across all connected devices.

Can I use WebRTC for serverless peer-to-peer VR collaboration?

Yes, you can use WebRTC for serverless peer-to-peer VR collaboration. WebRTCTransport provides a scalable, serverless option for connecting users, while WebSocketTransport offers a relay-based alternative for larger deployments.

How do I synchronize object positions and states across multiple XR devices?

You synchronize object positions and states across multiple XR devices by using shared object features. This ensures that any collaborative manipulation of virtual items is instantly reflected on all connected screens in real-time.

What transport options are available for real-time XR voice chat?

Available transport options for real-time XR voice chat include BroadcastChannelTransport for local development, WebRTCTransport for serverless peer-to-peer connections, and WebSocketTransport for scalable relay-based deployments.

Does multiplayer XR support spatial voice chat and hand tracking presence?

Yes, multiplayer XR supports spatial voice chat for immersive communication and hand tracking presence. User avatars accurately represent real-time head and hand movements to enhance remote team collaboration and multiplayer VR gaming.