Community & Social · Social Networking
Mastodon
A self-hosted, globally interconnected microblogging community.
Mastodon is a free, open-source social network server based on ActivityPub. People publish text, links, pictures, and video, while accounts on different servers communicate across the federated Fediverse. Administrators control their own community, moderation, and infrastructure. The project supports self-hosting through documented deployment options and offers paid organisational hosting, moderation, and support by quotation.
Key facts
- License
- AGPL-3.0
- Main language
- Ruby, TypeScript, JavaScript
- Maintainer
- Mastodon
- First released
- 2016
- Latest release
- v4.7.3, October 1, 2026
- GitHub stars
- 50,427, October 2026
- Hosted option
- Official paid organisational hosting, moderation, and support available by quotation
What Mastodon is
Mastodon is a free, open-source social network server built around ActivityPub, an open standard for federated communication. Rather than placing every account inside one centrally controlled service, Mastodon lets independent servers host communities that can still communicate with one another. Users can follow people on other servers, exchange messages, and interact with compatible ActivityPub software. This makes Mastodon a network of connected communities rather than a single website. Its focus is microblogging, with support for text, links, pictures, and video. The project began as an open-source response to dissatisfaction with the direction of Twitter, and its first public launch occurred in October 2016. Mastodon is licensed under the GNU Affero General Public License version 3.0, allowing the software to remain freely available and modifiable.
How it works
Mastodon provides a familiar timeline-oriented social experience while giving server operators meaningful control over community rules and administration. Updates from followed accounts appear in real time and chronological order in the user interface. Posts can include media attachments, with images and videos supported directly. Videos without audio are treated like animated GIFs, while ordinary videos loop continuously. Users receive tools for private posts, locked accounts, phrase filtering, muting, blocking, and reporting. These controls operate alongside server moderation, which matters because each server has its own administrators and policies. The result is a social product that combines everyday posting features with a distributed operating model, unlike centrally managed services such as X or Threads.
Architecture and recent releases
For developers and integrators, Mastodon exposes OAuth2 authentication plus REST and Streaming APIs, supporting third-party applications and a broad client collection of applications. The published technology stack includes Ruby on Rails for the REST API and web pages, PostgreSQL as the main database, Redis and Sidekiq for caching and queueing, Node.js for the streaming API, and React with Redux for dynamic interface elements. Deployment configurations cover Docker and docker-compose, with documentation also describing standalone installation. The repository identifies Ruby, JavaScript, TypeScript, HTML, CSS, Haml, SCSS, Shell, Dockerfile, and Procfile among its languages. This combination makes Mastodon extensible for developers, but production operation involves more than deploying a single uncomplicated web application.
License and pricing
The ActivityPub foundation is Mastodon's most important architectural distinction. A Mastodon account can follow and communicate with accounts on another Mastodon server, and can also interact with compatible non-Mastodon software. That interoperability places Mastodon inside the wider Fediverse rather than limiting it to one vendor's application. Server choice therefore affects community culture, moderation, and local administration without necessarily restricting whom users can reach. The model differs from Reddit's collection of communities, because Mastodon servers participate in a shared social graph, and from Discord's primarily server-bound conversations, because federation allows cross-server following and messaging. Open standards reduce dependence on one provider, although practical experiences still depend on the policies, capacity, and moderation decisions of individual servers.
Limitations and how it compares
Mastodon can serve a personal account, an invite-only group, or a public community, depending on how its administrator configures registration and moderation. Self-hosting provides control over the domain, rules, data, scaling, and customization, while federation preserves access to the wider network. Running a public service also creates responsibilities: administrators must maintain infrastructure, handle email and storage, apply updates, and manage moderation as the community grows. The official documentation lists a domain, an always-connected VPS, and an email provider as core requirements, with object storage optional. For organisations that prefer assistance, Mastodon offers paid hosting, moderation, and support arrangements by quotation, while continuing to develop the software and support a diverse network.
Main features
- ActivityPub federation. Connects Mastodon servers and compatible ActivityPub software so users can follow and communicate across independent services.
- Chronological timelines. Displays updates from followed accounts in real time and chronological order through the user interface.
- Media attachments. Supports image and video attachments, including looping videos and silent videos treated like animated GIFs.
- Moderation and safety. The platform includes private posts, locked accounts, phrase filtering, muting, blocking, reporting, and server moderation tools for user control.
- Developer APIs. The platform provides OAuth2 authentication, REST APIs, and Streaming APIs for third-party applications and clients.
Self-hosting Mastodon
Self-hosting Mastodon requires a domain name, an always-connected VPS, and an email provider for confirmations and notifications. Object storage is optional, but useful because local disk capacity is limited and harder to expand later. Administrators choose registration settings, maintain infrastructure, apply upgrades, manage backups, and handle moderation. The project provides Docker and docker-compose deployment configurations and a standalone installation guide. Mastodon can scale horizontally across application servers, background workers, Redis backends, and PostgreSQL replicas, although a simple one-click deployment is not sufficient for larger installations. Dedicated providers can handle much of the technical work. Official organisational hosting, moderation, and support are also available by quotation.
Strengths
- Open federation connects users across independent servers.
- AGPLv3 licensing supports software freedom and modification.
- Strong moderation and privacy controls are built in.
- REST and Streaming APIs support third-party clients.
Drawbacks
- Public servers require ongoing moderation and community management.
- Self-hosting involves multiple infrastructure dependencies.
- Experience varies by server policies and capacity.
What teams replace with it
Teams usually evaluate Mastodon when they want to move off Twitter, X.
For side-by-side commercial comparisons, browse our alternatives hub.
Open-source alternatives to Mastodon
- Threads
- Bluesky
- Diaspora
- Pleroma
Frequently asked questions
What is Mastodon?
Mastodon is a free, open-source social network server based on ActivityPub. It provides microblogging features for publishing text, links, pictures, and video. Unlike a single centrally managed service, Mastodon is deployed across independent servers that can communicate with one another. Users select a server community while retaining the ability to follow and interact with accounts elsewhere in the Fediverse.
How does Mastodon differ from X or Threads?
Mastodon is not one centrally managed social network. Independent servers host communities, set local rules, and communicate through ActivityPub, while compatible software can participate too. X and Threads present users with centrally operated services, whereas Mastodon distributes administration across server operators. This gives users more choice over community governance and gives operators control over moderation, infrastructure, and local policies.
Can Mastodon be self-hosted?
Yes. The official documentation describes self-hosting with a domain name, an always-connected VPS, and an email provider. Object storage is optional for uploaded files. Mastodon supplies Docker and docker-compose deployment configurations as well as a standalone installation guide. Operators must maintain the software, infrastructure, backups, email delivery, storage, and moderation. Larger installations can scale across application servers, workers, Redis backends, and PostgreSQL replicas.
Can a Mastodon server communicate with other platforms?
Yes, when the other platform implements ActivityPub. Mastodon users can follow accounts on other Mastodon servers and interact with compatible non-Mastodon software. This interoperability is the basis of the wider Fediverse. Cross-service behavior can depend on implementation details, local moderation decisions, and server availability, but the protocol allows communication beyond the boundaries of one Mastodon installation.
Is hosted Mastodon available for organisations?
Yes. Mastodon describes paid organisational offerings that can include a fully operated server under an organisation's own domain, moderation on request, or support for an internal operations team. These services are available by quotation rather than a published universal price. Organisations can also use independent hosting providers, while individuals and communities may operate their own infrastructure when they want more control over scaling, performance, and customization.
Similar projects to compare
- BlueskyMIT for social-app source code, SPDX: MIT; certain artwork, icons, fonts, logos, trademarks, and third-party assets are excluded or separately licensed. The hosted service is operated commercially by Bluesky Social, PBC.Bluesky is a free social application whose client source is licensed under MIT, while some artwork, icons, fonts, and brand assets have separate licensing. It runs on the AT Protocol, with Bluesky Social, PBC operating the hosted application and network services. Users can access it on the web, iOS, and Android, while developers can operate protocol components independently.
- HeyGPL-3.0 (public code frozen at May 15, 2026)Hey is a decentralized social application built on Lens, where users publish, follow, react, repost, quote, join communities, and use Social Payments. The public code is licensed under GPL-3.0, while hey.xyz provides the hosted service and wallet-based onchain interactions can incur gas or GHO fees. Its repository is a historical codebase rather than a statement of current production implementation.
- LemmyAGPL-3.0Lemmy is AGPL-3.0 software for running federated discussion and link-aggregation communities. It targets operators, moderators, and users who want Reddit-style forums connected through ActivityPub. The software is free to download and self-host, while many independent instances provide hosted access funded by donations. Server operators control their own deployment and operating policies.
- LoopsAGPL-3.0Loops is AGPL-3.0 software for federated short-video publishing, discovery, and social interaction. It is aimed at creators, communities, and operators seeking a TikTok-style service connected through ActivityPub. The server is free to self-host, while the Loops team operates loops.video and related platform services without publishing a standard paid hosting price.
- PeerTubeAGPL-3.0PeerTube is free, AGPL-3.0 software for running federated video-hosting instances. Built with TypeScript and Node.js, it combines ActivityPub federation, WebTorrent peer-to-peer delivery, transcoding, live streaming, plugins, and administrator-controlled governance. It offers an open alternative to centralized services such as YouTube, Dailymotion, and Vimeo. Server operators control their own deployment and operating policies.
- PixelfedAGPL-3.0Pixelfed is an AGPL-3.0 photo and video sharing platform for people who want a federated alternative to Instagram. It is maintained by the Pixelfed community around creator Daniel Supernault, and users can join an existing server or run their own. The software is free; hosted servers are operated independently rather than sold as one central subscription.
Sources
- Mastodon repository
- Mastodon releases
- Mastodon self-hosting documentation
- About Mastodon
- Mastodon service offerings
Last updated 2026-10-22.