yjs
Installation
SKILL.md
Yjs — CRDT Framework for Collaborative Editing
Overview
Yjs, the high-performance CRDT (Conflict-free Replicated Data Type) framework for building collaborative applications. Helps developers implement real-time document editing, offline-first sync, and peer-to-peer collaboration with automatic conflict resolution.
Instructions
Document and Shared Types
Create collaborative data structures that merge automatically:
// src/collaboration/document.ts — Set up a collaborative document with shared types
import * as Y from "yjs";