This document outlines the technical implementation details for building a real-time, self-hosted Mastodon cross-posting system. It is designed for senior developers who want to replicate this architecture on their own Mastodon instances.
This guide assumes you are deploying alongside an existing Mastodon installation with the following layout:
- User: Scripts run under the
mastodonuser. - Directory: Scripts are located in
~/live/mods/(or similar directory accessible to the mastodon user). - Process Management: Systemd user services are available and lingering is enabled (
loginctl enable-linger mastodon).