Skip to content

Mastodon

Self-hosted, federated microblogging server for communities that want to run their own

Copyleft (OSI) · AGPL-3.0 EU-based
  • Self-hosted

Listed by , founder & editor

80

Health

Thriving

Overview

Stars

50,606

Last commit

today

Nov 2026

Repository age

10 years

since Feb 2016

Latest version

v4.7.6

Nov 2026

Contributors

–

12 active in 90 days

Releases

23

last 12 months

Language

Ruby

Mastodon is a social network server built on ActivityPub. You publish text, links, images and video, follow people, and read a real-time, chronological timeline. Servers talk to each other, so you can follow and interact with users on other Mastodon servers and on other software that speaks ActivityPub.

It runs on Ruby on Rails with PostgreSQL as the main database, Redis and Sidekiq for caching and queues, and Node.js for the streaming API. The interface uses React and Redux. It needs Ruby 4.0, PostgreSQL 14+, Redis 7.2+, Node.js 24+ and FFmpeg 5.1+. The repository ships Docker and docker-compose configs, plus Heroku and Scalingo setups. A Helm chart lives in a separate repository.

Mastodon includes private posts, locked accounts, phrase filtering, muting, blocking, and a reporting and moderation system. It is an OAuth2 provider with REST and Streaming APIs, so third-party apps can connect. It is licensed under AGPL-3.0. It is an alternative to X (Twitter) for people who want a network they can host and moderate themselves.

Who it's for

Communities and organizations running their own social space

You control the server, the rules and the moderation while still reaching users on other servers.

Skip if: You have no one to handle server upkeep and moderation; a hosted account on an existing server is simpler.

Developers building social apps or bots

OAuth2 plus REST and Streaming APIs give you a documented way to build clients.

Skip if: You need the large audience and ad tools of X.

Users who prefer chronological timelines

Timelines update in real time in posting order.

Skip if: You want algorithmic recommendations or native live streaming.

The problem it solves

Centralized social networks control your feed, your audience and the rules. Mastodon lets you join or run a server and still talk to people on other servers through open standards.

Strengths

  • Federates over ActivityPub with other Mastodon servers and non-Mastodon software
  • Real-time chronological timeline
  • Moderation tools: filters, blocks, mutes, reports, locked accounts
  • OAuth2 provider with REST and Streaming APIs for third-party apps
  • Official Docker and docker-compose configs, 23 releases in the last year

Trade-offs

  • Stack needs PostgreSQL, Redis, Sidekiq, Node.js and FFmpeg
  • No native live streaming or groups
  • Discovery is tied to servers, so reach is smaller than X
  • AGPL-3.0 requires sharing source of modified network-served versions

Mastodon replaces

Self-host Mastodon

Self-hostable
Yes
Docker Compose
The repository ships a Compose file

In the community

Frequently asked questions

Is Mastodon free?

Yes. It is free software under AGPL-3.0.

Can I self-host it?

Yes. Docker and docker-compose configs are included, and there is a standalone installation guide.

Can I talk to people on other servers?

Yes. Servers federate over ActivityPub, including with non-Mastodon software that supports it.

What does it require?

Ruby 4.0, PostgreSQL 14+, Redis 7.2+, Node.js 24+ and FFmpeg 5.1+.

Similar tools in Social networks

Misskey

Social networks

Self-hosted federated microblogging platform for communities on the Fediverse

11k 1.6k today Thriving AGPL-3.0

PixelFed

Social networks

Federated photo-sharing network you can self-host, for people leaving Instagram

7.2k 894 today Thriving AGPL-3.0

Replaces Instagram

ZeroNet

Social networks

Peer-to-peer network for hosting websites through visitors, using BitTorrent and Bitcoin

19k 2.3k 6 years ago Dormant GPL-3.0

social-app

Social networks

Open source React Native client for the Bluesky network on web, iOS and Android

18k 2.9k today Thriving MIT

Bluesky

Social networks

Hosted microblogging network on an open protocol for people leaving X

18k MIT

diaspora*

Social networks

Federated, privacy-focused social network you can join or host on your own server

14k 2.9k 5 days ago Active AGPL-3.0