Conversation
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.
Two editors can share three plain-text notes, make concurrent insertions/deletions and reconnect after offline edits. Hocuspocus/Yjs synchronize the original CRDT state; a row-locked PostgreSQL binary merge preserves history when snapshots arrive late or repeat. The UI distinguishes peer synchronization from an actual post-commit snapshot receipt and reports storage failure honestly.
Includes a React/CodeMirror client, restricted owner/runtime grants, explicit CA/name verification, Origin/token/document controls, bounded protocol/state/SQL work, reproducible setup and a scoped build/unit workflow. Single trusted local workspace and one server process; no per-user accounts or horizontal live coordination.
Validation: native Linux ARM64 clean locked install, production build, three unit tests and formatting pass; six real Cloud storage/role/TLS controls pass, including competing row locks and deferred COMMIT rollback. Two separate Chromium processes converge through concurrent edits, deletion and offline/reconnect. Actual delayed/failed storage preserves prior committed data and reports its status; a later successful edit recovers. The original process exits before replacement, which loads exact committed binary/revision/time and fresh-browser text. WebSocket origin, token, document and payload negatives pass. Reviewed disposable Cloud fixture deleted; VM preserved. Companion article remains local for publication review.