Yorkie
Yorkie is an open source document store for building collaborative editing applications. Yorkie uses JSON-like documents(CRDT) with optional types.
Yorkie consists of three main components: Client, Document and Server.
Client "A" (Go) Server MemDB or MongoDB
โโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโ
โ Document "D-1" โโโChangesโโบโ Project "P-1" โ โ Changes โ
โ { a: 1, b: {} } โ โ โโโโโโโโโโโโโโโโโโโโโ โโโโบโ Snapshots โ
โโโโโโโโโโโโโโโโโโโโโ โ โ Document "D-1" โ โ โโโโโโโโโโโโโ
Client "B" (JS) โ โ { a: 2, b: {} } โ โ
โโโโโโโโโโโโโโโโโโโโโ โ โ โ โ
โ Document "D-1" โโโChangesโโบโ โ Document "D-2" โ โ
โ { a: 2, b: {} } โ โ โ { a: 3, b: {} } โ โ
โโโโโโโโโโโโโโโโโโโโโ โ โโโโโโโโโโโโโโโโโโโโโ โ
Admin (CLI, Web) โ โ
โโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Query "Q-1" โ โฒ
โ P-1.find({a:2}) โโโโโโ Queryโโโโ
โโโโโโโโโโโโโโโโโโโโโโ
- Clients can have a replica of the document representing an application model locally on several devices.
- Each client can independently update the document on their local device, even while offline.
- When a network connection is available, the client figures out which changes need to be synced from one device to another, and brings them into the same state.
- If the document was changed concurrently on different devices, Yorkie automatically syncs the changes, so that every replica ends up in the same state with resolving conflict.
SDKs
Yorkie provides SDKs for Go, JavaScript, iOS, and Android:
Documentation
Full, comprehensive documentation is available on the Yorkie website.
Getting Started
Contributing
See CONTRIBUTING for details on submitting patches and the contribution workflow.
Contributors โจ
Thanks go to these incredible people:
Sponsors
Is your company using Yorkie? Ask your boss to support us. It will help us dedicate more time to maintain this project and to make it even better for all our users. Also, your company logo will show up on here and on our website: -) [Become a sponsor]
Backers
Please be our Backers.