Ship faster,
Stay in control

Yorkie provides synchronization primitives: a JSON-like Document,
Presence, and Channel. Dashboard lets you manage the documents
stored in each project.

Turn anything
into multiplayer.

Yorkie allows you to build multiplayer products without the need for database configuration and conflict management. This saves time and money.

Conflict-free state sharing

Yorkie implements real-time collaboration based on the Conflict-free Replicated Data Type(CRDT) algorithm. CRDTs offer a clean and reliable way to resolve conflicts when editing concurrent data, unlike Operational Transformation(OT) algorithms which can be complex and may not always ensure convergence. Yorkie's use of the well-proven CRDT algorithm ensures reliable services.

Document

Yorkie provides a general-purpose JSON-like Document to enable complex application models, while some CRDT libraries only offer basic data types.

1// You can use a key-value pair to share data with users.
2// The key is a string, and the value should be serializable - objects, arrays, and primitives.
3doc.update((root) => {
4 root.num = 1; // {"num":1}
5 root.obj = {'str':'a'}; // {"num":1,"obj":{"str":"a"}}
6 root.arr = ['1', '2']; // {"num":1,"obj":{"str":"a"},"arr":["1","2"]}
7});
Presence

You can build a sense of presence by tracking the status of users who are editing the same document with Presence.

1// Share your presence with other users
2client.attach(doc, {
3 initialPresence: { name: 'Alice', cursor: { x: 0, y: 0 } },
4});
5
6doc.update((root, presence) => {
7 presence.set({ cursor: { x: 10, y: 20 } });
8});
Channel

Channel provides lightweight real-time communication without database persistence. Perfect for tracking online users, broadcasting messages, and handling ephemeral real-time data like chat messages or live notifications.

1// Attach to a channel and track how many users are online
2const channel = new yorkie.Channel('room-123');
3await client.attach(channel);
4
5channel.subscribe('presence', (event) => {
6 console.log(`${event.count} users online`);
7});
8
9// The current count is also available at any time
10console.log(channel.getSessionCount());
More features of Yorkie SDK
  • SDKs for Mobile & Web

    Yorkie SDKs support development for iOS, Android and Web applications.

  • Size optimization

    Yorkie uses Garbage Collection and Lamport timestamps to reduce the size of documents.

  • Security

    Auth Webhook allows users to verify the authorization of clients to access documents from an external service.

Real-time monitoring
anytime, anywhere.

Dashboard lets project members browse the documents stored in a project and monitor them in real time.

Dashboard

Dashboard in Cloud is accessible from any device without the need for installation.

Build your own
Cluster

If needed, Yorkie open source packages allow you to build self-hosted server locally.

Yorkie open-source package
How to build self-hosted server

Yorkie open-source package includes SDKs, a server, and a database, making it easy to implement the co-editing feature.