Mastodon: Running Your Own Node on the Federated Social Web
Mastodon is a federated microblogging platform for self-hosted communities that communicate over ActivityPub.
At a glance
- What is it?
- Mastodon is a Ruby on Rails server that implements ActivityPub, letting you run a self-hosted microblogging community that interoperates with other ActivityPub servers. This review covers its architecture, deployment requirements, and the operational trade-offs of running a node.
- Who is it for?
- Adopt Mastodon if you want a self-hosted microblogging community that interoperates with the wider Fediverse and you have the Rails, PostgreSQL, Redis, and Node.js expertise to run it. Avoid it if you lack the staffing for continuous updates and moderation, or if you need a single-tenant, closed network, since its value depends on federation and its AGPL license requires you to share your modifications.
- Can I use it commercially?
- Yes, with strict conditions. AGPL-3.0 is a network copyleft licence: if people use a modified version over a network, for example as a hosted service, you must offer them its source code under the same licence.
- Is it still maintained?
- Yes. The repository received new commits within the last day.
- What is it written in?
- Mainly Ruby, according to GitHub's language statistics.
Answers come from the project's GitHub data, last synced on November 25, 2026, and from our analysis. They are not legal advice.
Star history
- mastodon/mastodon50,639 ★ · +433
| Repository | 2026-08-13 | 2026-11-25 |
|---|---|---|
| mastodon/mastodon | 50.2k | 50.6k |
433 Stars in the last 104 days, measured from the daily GitHub snapshot. Compare with other projects
Editorial analysis
What Mastodon Solves: Federated Microblogging Without a Central Operator
Mastodon solves a specific problem: giving you control over your own microblogging service while keeping it connected to the rest of the social web. It is a server, not a client. You run it on your own hardware or cloud instance, and your users can follow and interact with users on any other ActivityPub-compliant server, including non-Mastodon software. The target audience is not an individual looking for a Twitter replacement; it is a community, an organization, or a technically inclined administrator who wants to own the infrastructure and the moderation policies. The README is explicit about the no-vendor-lock-in promise: the network goes beyond Mastodon, and anything that implements ActivityPub is part of the broader Fediverse. For an engineer evaluating whether to adopt it, the core question is whether you want to be a node in a distributed network, with all the operational responsibility that entails.
How It Works: Rails API, Streaming Node, and a Sidekiq Queue
The architecture is a mix of familiar web components. Ruby on Rails powers the REST API and the web pages. PostgreSQL is the main database, and Redis is used for caching and queueing. Sidekiq, together with Redis, handles queueing. The streaming API is a separate Node.js process, which handles real-time timeline updates. The frontend uses React.js and Redux for the dynamic parts of the interface. This split means you have several moving parts to deploy and monitor. The use of a separate streaming process is a design choice that allows the main Rails app to stay responsive, but it adds a deployment component that you must manage.
Getting It Running: Docker, Heroku, and a Standalone Guide
The repository includes deployment configurations for Docker and docker-compose, as well as for Heroku and Scalingo. For Helm charts, you need to reference the separate mastodon/chart repository. The README points to a standalone installation guide in the main documentation at docs.joinmastodon.org. The version requirements are strict: Ruby 4.0, PostgreSQL 14+, Redis 7.0+, Node.js 24+, and FFmpeg 5.1+. These are not optional; they are the minimum versions. If you are using Docker, the official container image is available on GitHub Packages. The README does not provide the exact commands to start the service, so you must rely on the official documentation for the full setup steps. That is a minor gap: the README is more of a pointer than a quick-start. For an engineer, the presence of a docker-compose file is a plus, but you should expect to read the installation guide before you can get a working instance.
Moderation and Safety: Built-In Tools, But the Real Cost Is Human
Mastodon includes a range of safety and moderation tools: private posts, locked accounts, phrase filtering, muting, blocking, and a reporting and moderation system. These are essential for running a public server, because federation means you are exposed to content from other servers. The README lists these features without detail, but the implication is that the software gives you the mechanisms to moderate, not the manpower to do it. Running a Mastodon instance is not just a technical deployment; it is an ongoing community management task. The reporting and moderation system is there, but it requires active administrators. For a small team, this could be a significant operational burden. The documentation does not quantify the effort, but any experienced admin knows that moderation is the hidden cost of running a social network.
The AGPL-3.0 License: A Real Constraint for Commercial Use
Mastodon is licensed under the GNU Affero General Public License v3.0. This is not a permissive license like MIT or Apache. If you modify the software and run it as a network service, the AGPL requires you to make your modified source code available to users who interact with it over the network. This is a critical consideration for a company that might want to fork the code and add proprietary features. The README states the license clearly and includes the copyright notice. For an engineer, this means you can use Mastodon freely, but if you change the code, you must share those changes. The license also has implications for how you distribute any custom deployments. This is not legal advice, but you should consult a lawyer if you plan to modify and host a version. For most users who run the stock version, the license is not a problem, but it is a boundary that you cannot ignore.
Maintenance and Upgrade Cost: Frequent Releases and a Moving Target
The release history shows a steady cadence: v4.4.27, v4.5.20 and v4.6.10 were all released on 2026-10-29, patching three release lines at once. This indicates an active project with regular updates. For an operator, this means you need a plan for applying updates. The README does not describe a migration path, but the simultaneous patch releases across several lines suggest that staying current is important. The tech stack is mature, but it is not simple: you have Rails, Sidekiq, Redis, PostgreSQL, and Node.js to update and keep in sync. The documentation mentions a standalone installation guide, but it does not cover upgrade procedures. You will need to rely on the project's blog and release notes for migration steps. The cost of maintenance is not trivial; it is a full-time job for a large instance. If you are a small team, you should budget for regular maintenance windows.
Alternatives: Other ActivityPub Servers and the Trade-Offs
Mastodon is one of many ActivityPub implementations. A notable alternative is Pleroma, which is written in Elixir and uses a lighter resource footprint. The difference in approach is significant: Pleroma is designed to run on low-end hardware, whereas Mastodon's Rails stack requires more memory and CPU. If you have a Raspberry Pi or a small VPS, Pleroma might be a better fit. For an engineer, the choice depends on your hardware constraints and your willingness to maintain a Ruby vs. Elixir codebase. The README does not compare to alternatives, but the existence of the Fediverse means you are not locked into Mastodon.
Editorial conclusion
Adopt Mastodon if you want a self-hosted microblogging community that interoperates with the wider Fediverse and you have the Rails, PostgreSQL, Redis, and Node.js expertise to run it. Avoid it if you lack the staffing for continuous updates and moderation, or if you need a single-tenant, closed network, since its value depends on federation and its AGPL license requires you to share your modifications. Before committing, verify your infrastructure can meet the version requirements (Ruby 4.0, PostgreSQL 14+, Redis 7.0+, Node.js 24+, FFmpeg 5.1+) and review the official installation guide for the standalone setup, as the README does not cover the full configuration steps.
Frequently asked questions
What is a Mastodon?
In this repository, Mastodon is a free, open-source social network server based on ActivityPub, described as a self-hosted, globally interconnected microblogging community. Servers are interoperable as a federated network, so a user on one server can communicate with users on another, including software that is not Mastodon.
What is Mastodon used for?
It publishes links, pictures, text, and video to a real-time chronological timeline, with media attachments, and it provides safety and moderation tools including private posts, locked accounts, phrase filtering, muting, blocking, and a reporting and moderation system. It also acts as an OAuth2 provider so third party apps can use the REST and Streaming APIs.
how to install mastodon on ubuntu
The page gives no distribution specific steps. It states requirements of Ruby 4.0, PostgreSQL 14+, Redis 7.0+, Node.js 24+, and FFmpeg 5.1+, includes deployment configurations for Docker and docker-compose plus Heroku and Scalingo, points Helm users at the mastodon/chart repository, and links a standalone installation guide in the main documentation.
how to use hashtags on mastodon
The README does not describe hashtag behaviour. What it describes is a real-time chronological timeline, media attachments where silent videos are treated as animated GIFs and other videos loop continuously, private posts, locked accounts, phrase filtering, muting, blocking, and a reporting and moderation system.
how many use mastodon
The repository publishes no user, instance, or post counts. It is self-hosted software under AGPLv3, and the surrounding links go to the project homepage, a blog, a documentation site, a sponsors page, a Crowdin project for translations, and an app directory.
Official sources
Where developers are discussing it
Posts on Hacker News, dev.to and Lobsters that link to this repository, found by our scan of those communities. 0 in the last 30 days; newest first.
- Translating Your SaaS into German: What Actually Changesdev.to · Oct 15, 2026 · 2 points · 0 comments
Add this badge to your README
If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.
[](https://hysenlabs.com/projects/mastodon-mastodon)Star history chart for your README
[](https://hysenlabs.com/projects/mastodon-mastodon)Was this useful?