YArray
YArray is a data type in Yjs for representing a shared, ordered list of elements in real-time collaborative applications. It is implemented as a CRDT-based array that can be edited by multiple clients concurrently, with changes synchronized across all participants to reach a consistent final state.
It is constructed within a Y.Doc and participates in the document's transaction model. Elements stored in a
Internally, YArray uses the CRDT principles of Yjs to merge concurrent edits without conflicts. Updates are
Typical use cases include collaborative editing of lists, task boards, or structured data where the order of