Yjs is a library for building real-time collaborative multi-user applications. It exposes Shared Types that behave like normal data types but sync automatically across users and devices.
Unlike traditional approaches that require a central server for coordination, Yjs is network agnostic and works with any communication protocol. It is designed for developers building collaborative editors, whiteboards, note-taking apps, and any multi-user tool that needs real-time state synchronization.
You define shared data types (like text, arrays, maps) that behave like normal JavaScript data types. Yjs uses a CRDT (Conflict-free Replicated Data Type) under the hood to automatically merge changes from multiple users without conflicts. You connect users through any transport layer — WebSocket, WebRTC, or Matrix — and Yjs handles the synchronization and conflict resolution.
Yjs is best suited for developers who need to add real-time collaboration to web applications without building custom conflict resolution logic. It is open source, network agnostic, and has the largest ecosystem of integrations among collaborative CRDT libraries. The library is maintained by Kevin Jahns and supported by a community forum and Discord server.
Yjs exposes Shared Types like text, arrays, and maps that behave like normal data types but sync automatically across users.
Yjs does not require a central server for coordination and can sync through WebSocket, WebRTC, Matrix, or any communication protocol.
Shared data can be stored in a local database like IndexedDB and will be available immediately, syncing later when connectivity returns.
Yjs provides ready-to-use integrations with popular editor libraries including ProseMirror, Lexical, and other rich-text editors.
Persist shared state in different databases including y-indexeddb, y-leveldb, and y-redis.
Yjs has been ported to multiple languages including Rust (Yrs), Swift, Python (pycrdt), .NET, Go, and Kotlin.
Implement user awareness features like cursor positions and presence indicators using the built-in Awareness CRDT.
Yjs integrates with web frameworks and has a rich ecosystem of services including Y-Sweet, Liveblocks, and Hocuspocus.
Pricing extracted from the product website and may change. Check the source for current details.
YjsThis | ||||
|---|---|---|---|---|
| Starting price | Free | Free | Free | — |
| Pricing model | Free | Freemium | Free | Freemium |
| Platforms | Web | Web, macOS, Windows, Linux | Web | Web |
| Top features |
|
|
|
|
| Rating | — | — | — | — |
Build real-time collaborative applications with shared data types that sync automatically — offline-...
Open-source Node.js multiplayer framework with automatic state sync, built-in matchmaking, and SDKs ...
Bidirectional and low-latency communication for every platform
A unified design system for building cohesive, accessible Atlassian experiences across all products.
Free GIF keyboard and search engine for Android and web — find trending animated GIFs and reaction c...