{"schemaVersion":1,"id":"yjs","name":"Yjs","locale":"en","canonicalUrl":"https://base.akulich.dev/en/library/yjs/","officialUrl":"https://github.com/yjs/yjs","isCatalog":false,"description":"A CRDT library of shared data types with providers: synchronizes concurrent text and state editing between clients.","tasks":["Synchronize collaborative editing between clients","Connect a provider and check concurrent edits/reconnect between two clients"],"categoryIds":["backend","frontend"],"subcategoryIds":["backend.api","frontend.utilities","backend.realtime"],"tags":["Yjs","collab","Development"],"aliases":["yjs/yjs","yjs"],"platforms":[],"stack":[],"compatibility":null,"pricing":"free","freeUsage":"Code and local use under MIT.","paidUsage":"Computing resources, self-hosting, and external services are paid for separately if used.","license":"MIT for the code; dependencies have separate licenses.","selectionGuide":{"purpose":"Synchronize collaborative editing between clients","chooseWhen":["Synchronize collaborative editing between clients","Connect a provider and check concurrent edits/reconnect between two clients"],"considerInstead":["When choosing for this topic, compare Yjs with Automerge. A candidate to compare under the topic: APIs and server SDKs, Realtime and notifications. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together.","When choosing for this topic, compare Yjs with Liveblocks. A candidate to compare under the topic: APIs and server SDKs, Realtime and notifications. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together."],"requirements":["Choose a network provider to exchange updates and a persistence provider for local storage. The README demonstrates y-websocket or y-webrtc combined with y-indexeddb, rather than networking built into one core package."],"limitations":["Costs and limits of free use: Computing resources, self-hosting, and external services are paid for separately if used.","Terms of use: MIT for the code; dependencies have separate licenses.","One shared type can occupy only one place in Y.Doc. In the example, the same Y.Array cannot be added again under another key: an already integrated type causes an error."],"faq":[{"question":"What can you use for free in Yjs?","answer":"Code and local use under MIT."},{"question":"What additional costs might arise with Yjs?","answer":"Computing resources, self-hosting, and external services are paid for separately if used."},{"question":"What terms of use matter for Yjs?","answer":"MIT for the code; dependencies have separate licenses."},{"question":"How do you get started with Yjs?","answer":"Describe the document's shared text/map types. Connect a provider and check concurrent edits/reconnect between two clients. Test offline edits, merging, and reconnecting."},{"question":"Is installing yjs enough to connect clients and save offline changes?","answer":"The core provides shared types and change observation. Networking and bindings are separate modules; providers can be combined. y-indexeddb stores updates in the browser, while the network provider handles transmission."}],"related":[{"id":"automerge","reason":"A candidate to compare under the topic: APIs and server SDKs, Realtime and notifications. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together."},{"id":"liveblocks","reason":"A candidate to compare under the topic: APIs and server SDKs, Realtime and notifications. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together."},{"id":"partykit","reason":"A candidate to compare under the topic: APIs and server SDKs, Realtime and notifications. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together."}],"sources":["https://github.com/yjs/yjs","https://raw.githubusercontent.com/yjs/yjs/HEAD/README.md","https://raw.githubusercontent.com/yjs/yjs/HEAD/LICENSE","https://www.open-source-tools.com/"]},"selectionCheckedAt":null,"applicationGuide":{"goal":"Synchronize collaborative editing between clients.","inputs":["A document model and concurrent updates.","A client application and transport provider."],"steps":["Describe the document's shared text/map types.","Connect a provider and check concurrent edits/reconnect between two clients.","Test offline edits, merging, and reconnecting."],"checks":["Clients converge on one state after conflicting changes.","Transport authorization and history size suit the project."]},"sources":["https://github.com/yjs/yjs","https://raw.githubusercontent.com/yjs/yjs/HEAD/README.md","https://raw.githubusercontent.com/yjs/yjs/HEAD/LICENSE","https://www.open-source-tools.com/"],"checkedAt":"2026-10-06","reviewScope":"The purpose, current repository license, and separate terms for code, services, and models have been reviewed. The product was not run, and no security audit was performed.","relatedIds":["automerge","liveblocks","livestore","partykit"],"dataVersion":"cbbe7123b47a5ae80983","type":"Shared state / CRDT","kind":"library","pricingNote":"Code and local use under MIT. Computing resources, self-hosting, and external services are paid for separately if used.","notes":null,"labeledSources":[{"url":"https://github.com/yjs/yjs","label":"Official source"},{"url":"https://raw.githubusercontent.com/yjs/yjs/HEAD/README.md","label":"Official source"},{"url":"https://raw.githubusercontent.com/yjs/yjs/HEAD/LICENSE","label":"License"},{"url":"https://www.open-source-tools.com/","label":"Catalog / discovery source"}],"licenseGuides":[{"id":"mit","title":"MIT — permissive license","scope":null,"summary":"You can use, modify, distribute, and sell the code, including in a closed-source commercial product. When sharing copies or substantial portions of the code, retain the license text and copyright notice. You do not need to open-source your entire project; the author provides no warranties.","url":"https://opensource.org/license/mit"}],"entryIds":[],"composition":null}