Build collaborative applications with live multiplayer editing, real-time syncing, and interactive features.
Enable real-time collaboration with live cursor tracking and shared editing sessions.
Automatic state synchronization across all connected users with latency compensation.
Dynamic UI updates with instant feedback on user interactions and state changes.
realtime-ui
├── index.canvas
│ └── main.280
├── manifest.json
├── assets/
└── .280/
└── config.json
// Initialize collaborative canvas
const canvas = Canvas.create({
width: 1200,
height: 800,
theme: 'collaborative',
backgroundColor: '#2e2e2e'
});
// Add real-time features
canvas.enableMultiplayer({
userCursor: true,
autoSync: true,
latencyCompensation: 200
});
// Create interactive elements
const whiteboard = Whiteboard.create({
tools: ['text', 'draw', 'shape'],
permissions: { edit: 'all', share: 'owner' }
});
const chat = Chat.create({
position: { right: 32, top: 32 },
history: '280-rtui-demo'
});
// Add event handlers
canvas.on('user-join', (user) => {
chat.postMessage(`Welcome ${user.name}`);
});
canvas.on('draw', (event) => {
whiteboard.updateCanvas(event.position);
chat.postMessage(`${event.user} is drawing`);
});
// Deploy to web and mobile
canvas.deploy({
web: true,
mobile: true
});
Instant setup for collaborative sessions with automatic peer discovery.
All changes are synced instantly with delta compression for efficiency.
Granular control over who can edit, view, and share your projects.
This example demonstrates collaborative UI with live editing, multiplayer support, and real-time synchronization.
Create Your Realtime App