Built a real-time collaboration tool using WebRTC and Yjs

Hey everyone! :waving_hand:

I’m excited to share a project I’ve been working on for the past 3 months - CollabSpace, a real-time collaboration platform for distributed teams.

Tech Stack

// Core technologies
- Next.js 14 (App Router)
- WebRTC for peer-to-peer connections
- Yjs for CRDT-based real-time sync
- Tailwind CSS + Radix UI
- Cloudflare Durable Objects

Key Features

:sparkles: Real-time document collaboration - Google Docs style
:video_camera: Video conferencing - No external services required
:artist_palette: Shared whiteboard - With infinite canvas
:locked: End-to-end encryption - Privacy-first design

Would love to hear your feedback! :rocket:

This is incredible! The demo is buttery smooth. How are you handling NAT traversal? STUN/TURN servers?

Thanks @Glen! Yes, using Cloudflare’s TURN infrastructure. It’s been rock solid.

Love the architecture! Have you considered adding presence awareness? It would be great to see who’s actively viewing each document.

What’s the experience like with 10+ concurrent users? We’re evaluating real-time collaboration tools and performance is critical.

Tested up to 20 concurrent editors and it holds up well! The CRDT approach means no central bottleneck.