Automerge
Shared state / CRDT · Free
A document CRDT library: merges concurrent changes and helps build collaborative applications with local data.
Also known as: automerge/automerge; automerge; crdt-json; automerge-crdt

What you can use for free
Code and local use under MIT.
Paid features and costs
Computing resources, self-hosting, and external services are paid for separately if used.
Access and limitations
Code and local use under MIT. Computing resources, self-hosting, and external services are paid for separately if used.
Use cases
- Merge concurrent changes to a local document
- Make concurrent edits to two copies and check the state merge
Example workflow
A possible workflow; this is not a report of hands-on testing.
Merge concurrent changes to a local document.
Before you start
- A document model and concurrent updates.
- A client application and transport provider.
Steps
- Describe the document model and data-changing operations.
- Make concurrent edits to two copies and check the state merge.
- 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.
Choosing Automerge
Merge concurrent changes to a local document
Choose this when
- Merge concurrent changes to a local document
- Make concurrent edits to two copies and check the state merge
Consider alternatives when
- When choosing for this topic, compare Automerge 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.
- When choosing for this topic, compare Automerge with 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.
Requirements
- Choose bindings for the required tech stack; design document storage and transport in your own application.
Things to consider
- 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.
Frequently asked questions
What can you use for free in Automerge?
Code and local use under MIT.
What additional costs might arise with Automerge?
Computing resources, self-hosting, and external services are paid for separately if used.
What terms of use matter for Automerge?
MIT for the code; dependencies have separate licenses.
How do you get started with Automerge?
Describe the document model and data-changing operations. Make concurrent edits to two copies and check the state merge. Test offline edits, merging, and reconnecting.
Does Automerge provide a collaboration server with accounts out of the box?
The README describes a CRDT library, storage format, and sync protocol rather than a ready-made account service. When designing the application, define storage, transport, and user access separately. This is a conclusion about the library's boundaries, not the result of testing a specific network integration.
Related tasks and approaches
- 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.
- Yjs
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.
License
MIT for the code; dependencies have separate licenses.
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 termsTechnologies and topics
- Automerge
- collab
- Development