# Yjs

[BASE product page](<https://base.akulich.dev/en/library/yjs/>) · [Resource](<https://github.com/yjs/yjs>)

ID: yjs · Language: en
Schema version: 1 · Data version: cbbe7123b47a5ae80983

This is editorial data. An unknown field neither confirms nor rules out a capability.
dataVersion is a dataset fingerprint, not evidence of a recent fact check.

A CRDT library of shared data types with providers: synchronizes concurrent text and state editing between clients\.

## Type

Shared state / CRDT

## Entry type

library

## Separate catalog

No

## [Access conditions](<https://base.akulich.dev/en/library/yjs/#resource-access>)

free

## [What you can use for free](<https://base.akulich.dev/en/library/yjs/#resource-access>)

Code and local use under MIT\.

## [Paid features and costs](<https://base.akulich.dev/en/library/yjs/#resource-access>)

Computing resources, self\-hosting, and external services are paid for separately if used\.

## [Access and limitations](<https://base.akulich.dev/en/library/yjs/#resource-access>)

Code and local use under MIT\. Computing resources, self\-hosting, and external services are paid for separately if used\.

## [Use cases](<https://base.akulich.dev/en/library/yjs/#resource-tasks>)

- Synchronize collaborative editing between clients
- Connect a provider and check concurrent edits/reconnect between two clients

## Category IDs

- backend
- frontend

## Subcategory IDs

- backend\.api
- frontend\.utilities
- backend\.realtime

## Tags

- Yjs
- collab
- Development

## Also known as

- yjs/yjs
- yjs

## [Selection purpose](<https://base.akulich.dev/en/library/yjs/#resource-selection>)

Synchronize collaborative editing between clients

## [Choose this when](<https://base.akulich.dev/en/library/yjs/#resource-selection>)

- Synchronize collaborative editing between clients
- Connect a provider and check concurrent edits/reconnect between two clients

## [Consider alternatives when](<https://base.akulich.dev/en/library/yjs/#resource-selection>)

- 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](<https://base.akulich.dev/en/library/yjs/#resource-selection>)

- 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](<https://base.akulich.dev/en/library/yjs/#resource-selection>)

- 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\.

## [Questions before use](<https://base.akulich.dev/en/library/yjs/#resource-faq>)

### What can you use for free in Yjs?

Code and local use under MIT\.

### What additional costs might arise with Yjs?

Computing resources, self\-hosting, and external services are paid for separately if used\.

### What terms of use matter for Yjs?

MIT for the code; dependencies have separate licenses\.

### How do you get started with Yjs?

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\.

### Is installing yjs enough to connect clients and save offline changes?

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 resources selected by editors

- 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\.
- 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\.
- partykit: 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 for the selection guide

- [https://github\.com/yjs/yjs](<https://github.com/yjs/yjs>)
- [https://raw\.githubusercontent\.com/yjs/yjs/HEAD/README\.md](<https://raw.githubusercontent.com/yjs/yjs/HEAD/README.md>)
- [https://raw\.githubusercontent\.com/yjs/yjs/HEAD/LICENSE](<https://raw.githubusercontent.com/yjs/yjs/HEAD/LICENSE>)
- [https://www\.open\-source\-tools\.com/](<https://www.open-source-tools.com/>)

## [Possible workflow](<https://base.akulich.dev/en/library/yjs/#resource-scenario>)

Synchronize collaborative editing between clients\.

A possible workflow; this is not a report of hands-on testing.

## Before you start

- A document model and concurrent updates\.
- A client application and transport provider\.

## Steps

1. Describe the document's shared text/map types\.
2. Connect a provider and check concurrent edits/reconnect between two clients\.
3. Test offline edits, merging, and reconnecting\.

## Check your result

- Clients converge on one state after conflicting changes\.
- Transport authorization and history size suit the project\.

## [License](<https://base.akulich.dev/en/library/yjs/#resource-license>)

MIT for the code; dependencies have separate licenses\.

## License explanations for the specified scope

### MIT — permissive license

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\.

[License terms](<https://opensource.org/license/mit>)

## Related resource IDs

- automerge
- liveblocks
- livestore
- partykit

## [Sources](<https://base.akulich.dev/en/library/yjs/#resource-sources>)

- [Official source](<https://github.com/yjs/yjs>)
- [Official source](<https://raw.githubusercontent.com/yjs/yjs/HEAD/README.md>)
- [License](<https://raw.githubusercontent.com/yjs/yjs/HEAD/LICENSE>)
- [Catalog / discovery source](<https://www.open-source-tools.com/>)

## Editorial review date

2026\-10\-06

## Editorial review scope

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\.

Dates refer to the stated editorial review, not hands-on testing, a product update, or a recent review of all sources.
