CRDT for documents (2/2): wire Automerge into the document editor - #1758
Draft
gearnode wants to merge 2 commits into
Draft
CRDT for documents (2/2): wire Automerge into the document editor#1758gearnode wants to merge 2 commits into
gearnode wants to merge 2 commits into
Conversation
Introduces pkg/automerge: a pure-Go implementation of the Automerge CRDT achieving full V2 wire and state interoperability with the upstream Rust and JS implementations, verified by a differential parity and fuzzing suite run against both. Includes the automerge-repo wire protocol client/session/gateway codec (pkg/automerge/collaboration), a ProseMirror rich-text bridge (pkg/automerge/prosemirror), an embedded Rust/WASM reference backend used only in tests, and the supporting JS conformance oracle and benchmark tooling (packages/automerge-conformance, packages/automerge-benchmark). Nothing in the application imports this package yet. Signed-off-by: Bryan Frimin <bryan@probo.com>
Wires pkg/automerge into the app to give documents real-time collaborative editing. Adds the automerge-repo gateway server (pkg/server/api/console/v1/document_collaboration_*), the document collaboration service and DB-backed change/state persistence (pkg/probo, pkg/coredata), cross-instance ephemeral fan-out over Postgres LISTEN/NOTIFY (pkg/pgnotify, pkg/realtime), and moves the console editor onto the official @automerge/automerge-repo client with cursor-based selection presence (packages/ui/src/RichEditor). Signed-off-by: Bryan Frimin <bryan@probo.com>
This was referenced Aug 21, 2026
Closed
gearnode
force-pushed
the
automerge/lib-clean
branch
from
August 26, 2026 21:52
4fe6714 to
9a8ef28
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part 2/2 of the clean split of #1657 ("CRDT for documents"), stacked on #1757.
What this PR does
Wires
pkg/automergeinto the app to give documents real-time collaborative editing:pkg/server/api/console/v1/document_collaboration_*)pkg/probo,pkg/coredata)pkg/pgnotify,pkg/realtime)@automerge/automerge-repoclient with cursor-based selection presence (packages/ui/src/RichEditor)Verification
Full-repo
go build ./...andgo vetpass after generating GraphQL/MCP codegen;packages/uitypechecks clean.Stack
automerge/lib-clean(CRDT for documents (1/2): Automerge CRDT engine for Go #1757): Automerge CRDT engine for Go