Docs

Where things are

Developer documentation in the repository, how the code and this site are laid out.

This site is for people who use Comon, run their own server and write bots (Bot API). Documentation for those who change Comon itself lives next to the code in the repository.

Documentation in the repository

WhatWhere
Where to start: processes, code map, general rulesdocs/ARCHITECTURE.md
Glossarydocs/glossary.md
How subsystems workdocs/architecture/
Protocol and compatibility rulesdocs/contracts/, sources in protocol/
Architecture decisionsdocs/decisions/
Securitydocs/security/
Runbooks: building, releasing, device checks, operationsdocs/runbooks/
Rules for working in the repositoryAGENTS.md
Review rulesREVIEW.md

Every package has its own README: purpose, layer, entry points and the test command.

How the code is laid out

Everything is written in Dart and Flutter and lives in one repository:

  • frontend/comon_client: the app;
  • frontend/packages/cdlib_*: CDLib, the client library that stores data and syncs it with the server (like Telegram's TDLib);
  • backend/comon_federation_server: the federation server, with comon_push_relay and comon_bridge next to it;
  • packages/comon_*: code shared by client and server: protocol, encrypted transport, models;
  • protocol/: the protocol in Protobuf;
  • deploy/: the Docker Compose stacks the self-hosting section describes.

How this site is built

Fumadocs builds the site from MDX files in site/: Russian pages in content/docs/ru, English in content/docs/en. How to run it locally and where to add pages is in site/README.md.

On this page