FocusFlow: Local-First CRDT Real-Time Sync & Offline Engine by Xiang ChenFocusFlow: Local-First CRDT Real-Time Sync & Offline Engine by Xiang Chen

FocusFlow: Local-First CRDT Real-Time Sync & Offline Engine

Portfolio project
Xiang Chen
Modern visual workspace tools require robust offline support and real-time multiplayer collaboration. FocusFlow implements a production Local-First architecture powered by Conflict-Free Replicated Data Types (CRDTs).
Key Technical Highlights:
Sub-15ms IndexedDB Local Persistence: Instant local boot with automatic binary snapshot chunking and background compaction.
Yjs Document Tree Modeling: Represents complex graph hierarchies, node metadata, and connection states as conflict-free shared types.
Multi-Tab BroadcastChannel Synchronization: Enables seamless multi-window workflow with zero network roundtrips.
Reconciliation & Network Partition Resilience: Seamlessly reconnects and deterministically merges offline mutations via WebSocket with exponential backoff.
Outcome: Guaranteed data integrity, zero lost edits during network dropouts, and instant interactive response times.

0 likes · 0 views · Nov 18, 2026

Zero-conflict collaborative editing architecture with Yjs CRDTs, sub-15ms IndexedDB persistence, multi-tab BroadcastChannel, and offline sync.

Tags