Skip to content

Communities and hosts

When someone creates a community, their client makes a root key. The community’s id is derived from that key, so the community is its key: nobody can take the name, and nothing depends on a central registry. The owner signs a small descriptor (name, description, icon, rules) with it.

The owner also signs a delegation: “this host serves my community”. The host proves it holds that delegation every time a member connects, so a fake host can’t pretend to be the community.

A host:

  • stores the community’s state in SQLite: members, roles, channels, messages, bans, the audit log;
  • checks every command against the permission rules;
  • sends events (new messages, edits, role changes…) to every member who may see them;
  • keeps attachments, relays voice signalling and keys, and runs hosted bots.

One host can serve many communities. Anyone can run one: on a PC, a VPS or a Raspberry Pi 4/5.

A community isn’t tied to its host. The owner signs a new delegation for a new host, the old host’s operator exports the community (one encrypted, signed file), and the new host imports it. Members’ apps follow on their own and keep their identity, roles and history; bans stay in force. See Moving a community.

Who Can
Owner Everything in the community; signs the descriptor and delegation; installs bots.
Host operator Runs the program; sets limits for every community on the host (attachments, voice, a ceiling on bot grants); can read host-readable channels.
Members What their roles allow.