Y-Octo
Y-Octo is a high-performance CRDT implementation compatible with yjs.
Introduction
Y-Octo is a tiny, ultra-fast CRDT collaboration library built for all major platforms. Developers can use Y-Octo as the Single source of truth for their application state, naturally turning the application into a local-first collaborative app.
Y-Octo also has interoperability and binary compatibility with yjs. Developers can use yjs to develop local-first web applications and collaborate with Y-Octo in native apps alongside web apps.
Who are using
AFFiNE is using y-octo in production. There are Electron app and Node.js server using y-octo in production.
Mysc is using y-octo in the Rust server, and the iOS/Android client via the Swift/Kotlin bindings (Official bindings coming soon).
Features
- โ
Collaborative Text
- โ Read and write styled Unicode compatible data.
- ๐ง Add, modify and delete text styles.
- ๐ง Embedded JS data types and collaborative types.
- โ Collaborative types of thread-safe.
- Collaborative Array
- โ Add, modify, and delete basic JS data types.
- โ Recursively add, modify, and delete collaborative types.
- โ Collaborative types of thread-safe.
- ๐ง Recursive event subscription
- Collaborative Map
- โ Add, modify, and delete basic JS data types.
- โ Recursively add, modify, and delete collaborative types.
- โ Collaborative types of thread-safe.
- ๐ง Recursive event subscription
- ๐ง Collaborative Xml (Fragment / Element)
- โ
Collaborative Doc Container
- โ YATA CRDT state apply/diff compatible with yjs
- โ State sync of thread-safe.
- โ Store all collaborative types and JS data types
- โ Update event subscription.
- ๐ง Sub Document.
- โ
Yjs binary encoding
- โ Awareness encoding.
- โ Primitive type encoding.
- โ Sync Protocol encoding.
- โ Yjs update v1 encoding.
- ๐ง Yjs update v2 encoding.
Testing & Linting
Put everything to the test! We've established various test suites, but we're continually striving to enhance our coverage๏ผ
- Rust Tests
- Unit tests
- Loom multi-threading tests
- Miri undefined behavior tests
- Address Sanitizer memory error detections
- Fuzzing fuzzing tests
- Node Tests
- Smoke Tests
- Eslint, Clippy
Related projects
- OctoBase: The open-source embedded database based on Y-Octo.
- yjs: Shared data types for building collaborative software in web.
Maintainers
Why not yrs
License
Y-Octo are MIT licensed.