This repository holds the servers of FreeSpeech, an end-to-end encrypted messenger: ASP.NET Core 10, for you to host.
flowchart LR
A["App A"] <-- WebSocket --> R1["Relay 1"]
B["App B"] <-- WebSocket --> R2["Relay 2"]
R1 <-- "S2S" --> R2
R2 --> P["Push gateway"] --> F["FCM"]
R1 -.-> D["Directory"]
A -.-> D
| Server | Project | Role |
|---|---|---|
| Relay | freespeech.relay |
Passes messages between connected devices without keeping them; public or limited to allowed identities |
| Push gateway | freespeech.push |
Wakes phones with a content-free message; sole holder of the FCM credentials |
| Directory | freespeech.directory |
Points a new app to relays that accept accounts |
Two servers talk to each other only once both administrators have accepted; each is identified by its own key, with no shared secret.
On Ubuntu with nginx and systemd: install a relay, the gateway, a directory, or several servers on one machine.
Each server is configured while running through its admin command, usable from the machine only, and reports a missing or weak secret with check. See the administration guide.
dotnet build FreeSpeech.Server.slnxThe freespeech-common repository must sit next to this one. Details.
| Subject | French | English |
|---|---|---|
| Installing a relay | INSTALL_RELAY.fr.md | INSTALL_RELAY.en.md |
| Installing the push gateway | INSTALL_PUSH.fr.md | INSTALL_PUSH.en.md |
| Installing a directory | INSTALL_DIRECTORY.fr.md | INSTALL_DIRECTORY.en.md |
| Several servers on one machine | INSTALL_HOST.fr.md | INSTALL_HOST.en.md |
| Administration | ADMINISTRATION.fr.md | ADMINISTRATION.en.md |
| Relay command line | cli-relay.fr.md | cli-relay.en.md |
| Push gateway command line | cli-push.fr.md | cli-push.en.md |
| Directory command line | cli-directory.fr.md | cli-directory.en.md |
| Class diagrams | doc/diagrams/ | doc/diagrams/ |
| Building the servers | BUILD.fr.md | BUILD.en.md |
| Repository | Content |
|---|---|
| freespeech | Project overview |
| freespeech-common | Protocol and shared library |
| freespeech-client | Android, Windows and Linux apps |
Bug reports, reviews, tests and fixes are welcome. To report a security vulnerability, write to contact@rebisway.com.
GNU AGPL v3.0 or later · © 2024-2026 Thomas Gourgnier