Skip to content

Protocol describing data structures used in Anytype software

License

Notifications You must be signed in to change notification settings

anyproto/any-block

Repository files navigation

Any-Block

Protocol describing data structures used in Anytype software.

Description

We use Protocol Buffers to efficiently describe structured data in a binary format for network communication and storage. It offers smaller message sizes and faster serialization/deserialization than JSON or XML.

Protobuf facilitates data exchange between different systems written in different languages, while also providing automatic code generation for various programming languages.

  • models.proto describes the base data structures used to represent objects and their components.
  • changes.proto outlines CRDT-changes of objects and their blocks. Changes related to block updates are linked to events from events.proto.
  • events.proto describes the events about the changes of objects and blocks. These events are used to notify clients and also serve as CDRT changes to be stored in an object's tree.

JSON Schemas are generated automatically using protoc-gen-jsonschema.

Contribution

Thank you for your desire to develop Anytype together!

❤️ This project and everyone involved in it is governed by the Code of Conduct.

🧑‍💻 Check out our contributing guide to learn about asking questions, creating issues, or submitting pull requests.

🫢 For security findings, please email security@anytype.io and refer to our security guide for more information.

🤝 Follow us on Github and join the Contributors Community.


Made by Any — a Swiss association 🇨🇭

Licensed under MIT.