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
| What | Where |
|---|---|
| Where to start: processes, code map, general rules | docs/ARCHITECTURE.md |
| Glossary | docs/glossary.md |
| How subsystems work | docs/architecture/ |
| Protocol and compatibility rules | docs/contracts/, sources in protocol/ |
| Architecture decisions | docs/decisions/ |
| Security | docs/security/ |
| Runbooks: building, releasing, device checks, operations | docs/runbooks/ |
| Rules for working in the repository | AGENTS.md |
| Review rules | REVIEW.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, withcomon_push_relayandcomon_bridgenext 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.