Yjs
A strong pick. 1st of 10 realtime and collaboration.
Yjs is the most widely used CRDT library for JavaScript. It gives you shared data types that merge concurrent edits, and it is the engine behind Tiptap, BlockNote, Hocuspocus and many collaborative editors. Today it is the default pick for collaborative editing, with two caveats: one main maintainer carries most of the work, and a breaking v14 (renamed @y/y) is on the way.
Best for: Teams building collaborative rich-text or document editing, especially on ProseMirror/Tiptap, CodeMirror, Monaco or Lexical, who want offline and peer-to-peer support.
Scores
Overall8.2
How strongly do we recommend it for a new project today?
Claude Opus 5.5: 8.0, likely 7.0 to 8.5
For collaborative editing, Yjs is the strong default. It has the biggest ecosystem, real production proof and fast growth. The main maintenance risk is its dependence on one maintainer, and v14 will force a migration. The y-prosemirror critique and stronger peers for JSON or history-heavy data (Automerge, Loro) keep it below 9. For plain live messaging, Socket.IO or ws is the better fit.
- dependents: Dominant among CRDT peers
- hn.jakechampion.name/reader/https://www.moment.dev/blog/lies-i-was-told-pt-2: Credible limits for server-authoritative editors
- pkgpulse.com/guides/yjs-vs-automerge-vs-loro-crdt-libraries-2026: Yjs is the usual default unless you need Automerge history or Loro speed
GPT-6.2 Sol: 8.3, likely 7.2 to 9.2
Yjs is a strong first choice for a new collaborative editor that needs offline merging and can use an established binding. Its production integrations and ongoing stable fixes make it easier to adopt with confidence than a less proven CRDT. Socket.IO is simpler for event delivery alone, and Loro or Automerge are stronger when built-in edit history is central. Large-editor performance, backend integration, and the v14 transition account for most of the range.
- tiptap.dev/docs/editor/extensions/collaboration: Established editor integration with hosted and self-hosted server options.
- archive.fosdem.org/2026/schedule/event/TCH8XQ-plane-wiki-local-first-in-production-with-yjs: Production offline editing with concrete scaling trade-offs.
- github.com/yjs/yjs/releases: Stable v13 fixes and active v14 release candidates.
- socket.io/docs/v4: A peer focused on client-server event delivery.
- github.com/KizakiCorp/crdt-benchmarks: Comparison documents the speed and history trade-offs among Yjs, Loro, and Automerge.
Needed by many4.7
How many developers need a tool for this job?
Claude Opus 5.5: 5.0, likely 4.0 to 6.0
Collaborative and offline-first editing is a real but bounded need, mostly in document, whiteboard and notes apps. Many realtime apps in this category only need pub/sub messaging (Socket.IO, ws), not a CRDT. Yjs is framework-agnostic and runs in browser, Node and other runtimes, which widens its use within that niche.
- peers: Messaging tools like Socket.IO have far more dependent repos than CRDT libraries
- pkgpulse.com/guides/yjs-vs-automerge-vs-loro-crdt-libraries-2026: Positions Yjs as the default for text collaboration
GPT-6.2 Sol: 4.3, likely 3.2 to 5.6
Yjs serves a distinct group of JavaScript and TypeScript developers building shared editors, notebooks, whiteboards, and other apps where users edit the same state. Its transport-independent design spans frameworks and runtimes. Apps that only need live notifications or event delivery have simpler options, and the available survey gives no direct estimate of how many developers need concurrent editing.
- docs.yjs.dev: Shared data types, editor bindings, and transport providers.
- jupyter-ydoc.readthedocs.io/en/latest/overview.html: Collaborative notebooks and file editing use the same core.
- socket.io/docs/v4: General-purpose realtime event delivery covers a broader set of apps.
- 2025.stateofjs.com/en-US/other-tools: The survey provides no direct Yjs usage measure.
Helps a lot8.3
How well does it do the job for those who need it?
Claude Opus 5.5: 8.0, likely 7.0 to 9.0
Yjs is mature and fast, with a small bundle, many editor bindings, awareness/presence, undo manager and offline support. It ships types, but its documentation and API ergonomics are uneven. A widely read 2026 critique documents real problems in the ProseMirror binding: whole-document replacement, schema-mismatch data loss and hard permission enforcement. Loro and Automerge beat it on full history and tree types.
- hn.jakechampion.name/reader/https://www.moment.dev/blog/lies-i-was-told-pt-2: Detailed critique of y-prosemirror performance and correctness
- pkgpulse.com/guides/yjs-vs-automerge-vs-loro-crdt-libraries-2026: Yjs has the smallest bundle and best editor integrations; Loro leads benchmarks
- npm hasTypes: Ships TypeScript types
- discuss.yjs.dev/t/yjs-vs-loro-new-crdt-lib/2567/4: Benchmark comparison discussion with Loro
GPT-6.2 Sol: 8.5, likely 7.3 to 9.3
Stable v13.6.33 has typed shared data, compact incremental updates, and editor bindings that handle much of the integration. Documented examples give coding agents a clear starting point, while provider lifecycle and schema changes still require app-specific decisions. An independent benchmark found fast per-edit sync in plain text on the preceding patch release, while Moment reported costly plugin recomputation with the stable ProseMirror binding. Loro and Automerge offer more direct access to edit history, and performance depends on the editor and workload.
- docs.yjs.dev/api/document-updates: Documents deduplicate updates and exchange only missing changes.
- github.com/yjs/yjs/blob/v13.6.33/package.json: The stable package exports TypeScript declarations.
- github.com/KizakiCorp/crdt-benchmarks: Independent Node benchmarks cover plain text, arrays, and maps on v13.6.32.
- moment.dev/blog/lies-i-was-told-pt-2: An editor team reports latency and schema integration costs.
- github.com/yjs/y-prosemirror/issues/113: Users report whole-document transactions, with incremental updates implemented in the v14 binding.
- loro.dev/docs/tutorial/time_travel: Loro exposes historical document states.
- automerge.org/docs/reference/concepts: Automerge stores a document's edit history.
Holds up over time7.4
Will it still be a good choice in two years?
Claude Opus 5.5: 7.0, likely 5.5 to 8.0
Activity is high: 226 commits and 45 GitHub releases in the last year, a Scorecard Maintained check of 10, and 137 contributors. Most of the work still rests on one maintainer funded by sponsorships and contracts. The coming v14 changes the package name and the type model, which raises migration cost. The large commercial ecosystem (Tiptap, BlockNote, Liveblocks) makes abandonment unlikely.
- github commitsLastYear / releasesLastYear: 226 commits, 45 releases in the last year
- github.com/yjs/yjs: Maintainer works on it via sponsorships and contracting
- nick-the-sick.pckt.blog/yjs-14-at-yprosemirror-wwv64pw: v14 unifies types and adds schemas; APIs not finalized
- blocknotejs.org/examples/collaboration/versioning-yjs14: Downstream editors already building on @y/y v14
GPT-6.2 Sol: 7.8, likely 6.5 to 8.7
The repo logged 226 commits and 45 GitHub releases in the past year, alongside six npm versions and continued v13 fixes. Community contributors helped resolve a reported regression, while the stable release history and sponsorship page point to one principal maintainer. BlockNote co-developed funded v14 work, but the new package and editor binding leave upgrade effort and long-term release coverage uncertain.
- github commitsLastYear and releasesLastYear: 226 commits and 45 GitHub releases, including release candidates.
- npm versionsLastYear and latestVersion: Six npm versions in the past year, with 13.6.33 stable.
- github.com/yjs/yjs/releases: The maintainer published stable fixes alongside frequent v14 candidates.
- github.com/yjs/yjs/releases/tag/v13.6.33: The stable patch credits community contributors for an observer regression fix.
- github.com/sponsors/dmonad: The principal maintainer works independently and offers paid support.
- archive.fosdem.org/2026/schedule/event/8VKQXR-blocknote-yjs-prosemirror: ZenDiS and DINUM funded joint work on version history and track changes.
- github.com/yjs/y-prosemirror: The new binding has migration guidance and still advises most users to stay on v13.
Used widely6.9
How many use it, and is that growing?
Claude Opus 5.5: 8.0, likely 7.0 to 8.5
Downloads rose from 7.4M to 63.7M per 4 weeks, a ratio of about 8.6 against a median of 4.1. Much of that comes through Tiptap, Hocuspocus and Liveblocks installs rather than direct choice. Its 3,035 dependent repos and 570 dependent packages far exceed the other CRDTs (Automerge 25, Loro 1), so it clearly leads its sub-niche, though it is far below Socket.IO in absolute use.
- npm downloadsLast4Weeks / downloadsSame4WeeksYearAgo: 63.7M vs 7.4M, about 8.6x growth
- dependents: 3,035 repos and 570 packages, far above other CRDT peers
- github stars: 23k stars, more than all CRDT peers combined
GPT-6.2 Sol: 5.7, likely 4.3 to 7.0
Four-week downloads rose from 7.4 million to 63.7 million, an 8.6× increase against the 4.1× catalog median. Loro and Hocuspocus grew faster, while Yjs has far more indexed dependent repositories than either Loro or Automerge. Its 3,035 indexed repositories and 570 packages show substantial use, but partial indexing, automated installs, and use through tools such as Tiptap and Hocuspocus leave the number of direct choices uncertain.
- npm downloadsLast4Weeks and downloadsSame4WeeksYearAgo: 63.7 million versus 7.4 million installs, or 8.6×.
- medianDownloadsRatio: The catalog median was 4.1×.
- dependents repos and packages: ecosyste.ms indexed 3,035 repositories and 570 packages.
- peers: Loro grew 26.3× and Hocuspocus 10.8×, with much smaller indexed footprints.
- github stars and bluesky posts: 23,094 stars and four recent Bluesky repository links.
- tiptap.dev/docs/collaboration/getting-started/overview: Yjs also reaches users through Tiptap and Hocuspocus.
Vouched for8.5
Who stands behind it being good?
Claude Opus 5.5: 8.5, likely 7.5 to 9.0
Many well-known products run Yjs in production, and major editor frameworks build on it: JupyterLab, Proton Docs, Evernote, AFFiNE, Gitbook, Linear, AWS SageMaker, Nextcloud, Tiptap and BlockNote. Independent comparisons call it the de facto standard. A prominent 2026 critique from Moment, a company that chose not to use it, adds a credible counter-signal.
- github.com/yjs/yjs: Long list of production users (self-reported)
- hackerNews top: 309-point interactive guide; 272-point critique thread
- youngju.dev/blog/culture/2026-05-15-crdt-local-first-engines-2026-yjs-automerge-loro-replicache-liveblocks-deep-dive.en: 2026 independent comparison of CRDT engines
GPT-6.2 Sol: 8.5, likely 7.4 to 9.4
Tiptap and JupyterLab build collaborative editing on Yjs, and Plane reports shipping its offline-capable wiki on it. Independent benchmark results and Plane's account of scaling shared documents give concrete evidence about how it behaves in use. Moment's experience and the lack of a broad satisfaction measure leave more uncertainty for custom editors with strict latency targets.
- tiptap.dev/docs/editor/extensions/collaboration: Tiptap's collaboration extension syncs through Yjs.
- jupyter-ydoc.readthedocs.io/en/latest/overview.html: JupyterLab's collaborative frontend models depend on Yjs.
- archive.fosdem.org/2026/schedule/event/TCH8XQ-plane-wiki-local-first-in-production-with-yjs: Plane describes production use and the work needed to scale it.
- github.com/KizakiCorp/crdt-benchmarks: An independent comparison measures runtime and bundle size across CRDTs.
- moment.dev/blog/lies-i-was-told-pt-2: Moment chose another approach for its editor workload.
- 2025.stateofjs.com/en-US/other-tools: No Yjs-specific satisfaction or retention result.
Safe7.0
How safe is it to depend on?
Claude Opus 5.5: 7.5, likely 6.5 to 8.5
Yjs has no known advisories, MIT licence and only one runtime dependency (lib0, by the same author), so the attack surface is small. The OpenSSF Scorecard is a middling 5.4, with weak code review, branch protection, CI-test, SAST and fuzzing checks. Releases depend on a small number of publishers.
- advisories total: Zero advisories
- npm dependencies: One dependency
- scorecard score: 5.4; Code-Review 3, Branch-Protection 3, CI-Tests 0
- npm license: MIT
GPT-6.2 Sol: 6.5, likely 5.1 to 7.8
Yjs is MIT-licensed, has a public security policy, and has zero direct advisories in the bundle. Its sole direct dependency, lib0, had two high-severity memory disclosure advisories with fixes available by 0.2.119, which the stable Yjs dependency range accepts. OpenSSF scored it 5.4, with weak code review and branch protection signals, and the visible publish runs are concentrated under one maintainer. Older lockfiles can retain vulnerable lib0 versions, and the bundle leaves release signing and backup publishing access unverified.
- advisories total and scorecard checks: Zero direct advisories reported, with low review and branch protection scores.
- github.com/yjs/yjs/blob/v13.6.33/package.json: Declares MIT and a single direct dependency, lib0 at ^0.2.99.
- github.com/yjs/yjs/security: Public reporting policy supports the 13.6 release line.
- osv.dev/vulnerability/CVE-2026-102360: First high-severity lib0 advisory, fixed in 0.2.118.
- osv.dev/vulnerability/CVE-2026-102521: Second high-severity lib0 advisory, fixed in 0.2.119.
- github.com/dmonad/lib0/releases/tag/v0.2.119: The patched release was available in September 2026.
- github.com/yjs/yjs/actions: GitHub Actions shows npm publish runs initiated by the principal maintainer.
Good
- It has the broadest ecosystem of any CRDT: editor bindings, providers (WebSocket, WebRTC, IndexedDB) and backends such as Hocuspocus and Liveblocks.
- It is small and fast in JavaScript, with a single dependency (lib0) and a compact binary update format.
- Large products run it in production, including JupyterLab, Proton Docs, Evernote, AFFiNE, Gitbook and Linear.
- It has no known security advisories, and its npm downloads grew about 8.6x year over year.
Bad
- It depends heavily on one maintainer who funds the work through sponsorship and contracts.
- v14 renames the package to @y/y and redesigns the types, so the ecosystem faces a disruptive migration.
- The y-prosemirror binding replaces the whole document on remote updates, and users report trouble with schema mismatches, position mapping and permissions.
- Its data model is limited to its own shared types, and it has no first-class full-history model. Automerge and Loro do better on JSON trees and history.
The numbers
- npm downloads, 4 weeks
- 64M ×8.6 in a year
- GitHub stars
- 23k
- Commits, 12 months
- 226
- npm version
- 13.6.33 Sept 2026
- Versions, 12 months
- 6
- Advisories, 24 months
- 0 of 0 ever
- OpenSSF Scorecard
- 5.4 out of 10, Nov 2026
- Licence
- MIT
Read on 21 November 2026 from GitHub (yjs/yjs), npm (yjs), OSV and the OpenSSF Scorecard.
Realtime and collaboration
- 8.2Yjs
- 7.9Socket.IO
- 7.8Hocuspocus
- 7.8ws
- 7.5Liveblocks
- 7.1Ably SDK
- 7.1Automerge
- 7.0Loro
- 6.6PartyServer
- 6.6Pusher SDK