A learning project for building a collaborative note editor and understanding the distributed systems ideas behind collaboration, especially Conflict-free Replicated Data Types (CRDTs).
Project status: early planning / Flutter starter app. The current app is the default counter screen. It does not yet implement note editing, synchronization, persistence, or a CRDT. See the OKF documentation bundle for the build plan and technical notes.
The goal is to learn by building, create interview-ready explanations of the design, and develop a repository that clearly demonstrates both the working system and how it was tested. Project knowledge under docs/ follows Google's Open Knowledge Format (OKF) so the documentation is structured, linkable, and portable for both people and AI tools.
A CRDT is a replicated data type with rules that let independent copies accept updates and converge deterministically after they have received the same updates. It can make concurrent editing possible without a central conflict-resolution step for each keystroke. A CRDT does not itself provide networking, user identity, storage, access control, or an editor UI; those are separate system pieces.
For a shared note, the chosen CRDT must define how insertions and deletions are represented and how concurrent operations are ordered. The implementation plan will select a concrete approach after comparing suitable options for Flutter/Dart and the learning goals.
- Edit a note from multiple app instances.
- Exchange changes and converge after concurrent edits.
- Persist documents and recover after restart.
- Exercise offline edits and reconnect behavior.
- Explain the architecture and verify its guarantees with automated tests.
These are goals, not claims about the current application. OKF currently organizes the project's documentation; application notes may support OKF import/export in a later milestone.
Browse the OKF bundle index for the build plan, architecture, CRDT primer, and testing strategy.
Requires Flutter and Dart compatible with the SDK constraint in pubspec.yaml.
flutter pub get
flutter runAt this stage, running the app displays the Flutter starter counter. Implementation steps and acceptance criteria are tracked in the build plan.
- Shapiro et al., Conflict-free Replicated Data Types
- Yjs, documentation and collaborative editor guide (one established CRDT ecosystem; not yet selected for this project)
The current plan uses Go for the backend, Dart/Flutter for the first client, TypeScript/React Native for a later mobile client, Kotlin/Jetpack Compose for native Android, and TypeScript/React for web and administration. The specific CRDT implementation is pending a cross-client interoperability spike. These are planning decisions; none of these systems beyond the starter Flutter app is implemented yet. See the build plan for scope and sequencing.