Home / Wiki / Extending

Federation

Pairing servers so people can reach each other, what is shared, and the safety rules behind it.

Federation lets MeshCrowd servers trust each other so that their people can interact. You can pair with as many servers as you like: every pairing is set up and accepted separately, and trust is never passed on through a third server. It is off by default: a stand-alone server opens no federation route and runs no federation worker. Passport sign-in works either way.

Turning it on

Set "federation": { "enabled": true } in data/config.json and restart. A Federation page appears in the admin panel.

Pairing

  1. A site administrator sets the federation admin password the first time (signed in, or from the server machine). An anonymous visitor cannot claim it.
  2. Create an invite link on one server and redeem it on the other. Repeat for every further server you want to connect to.
  3. Each side must explicitly accept the other in Admin, Federation. A pending peer can do nothing except finish or cancel its own pairing.
  4. Revoke at any time. Revoking drops trust on both sides of that pairing and leaves your other pairings untouched.

What federation shares

  • Friend requests and DMs between people on paired servers.
  • Discovery: the public servers of every paired instance appear in the directory.
  • Joining: you can join a server on another instance with a code@domain invite. Remote servers appear in your server rail and open in a simplified view with text channels, history, posting, editing, deleting and reactions.

Remote servers are proxied live from the owning instance: nothing is copied. They grey out while that instance is offline.

What it does not do yet

  • Remote servers have text channels only: no attachments, threads, voice or member list.
  • Federated DMs are not encrypted in transit beyond TLS, and the peer server stores its copy as it sees fit.

Safety rules

  • Peers are trusted only for identity. Permissions are always decided by the instance that owns the server.
  • Calls between instances are signed and rate limited.
  • Outgoing calls refuse redirects and pin the validated address, so a paired peer cannot point your server at your internal network.