Social networking that's not for sale
open sourceAGPL-3.0-or-laterself-hostablefree
Mastodon is free, open source social network server software for microblogging, based on the ActivityPub protocol: every server is independent with its own rules and moderation, and people on any server can follow and reply to each other, and to other ActivityPub software such as PeerTube. Posts can carry pictures, video, audio, polls and content warnings, timelines are chronological, and there are no ads. It is a Ruby on Rails app with PostgreSQL, Redis and Sidekiq, a Node.js streaming API and a React web interface, licensed AGPL-3.0, with official iOS and Android apps, a REST and streaming API and OAuth2 for third-party apps. It is developed by a non-profit started by Eugen Rochko in 2016, which also offers managed hosting to institutions.
Ways to install
On your own server
Hosted for you
Problems it solves
- run our own Twitter-like social network for our community on our own server
- a self-hosted Twitter alternative that can still follow people on other servers
- our organisation wants an official social media presence we control instead of posting on X
- a microblogging platform with no ads and no algorithm deciding what people see
- leave Twitter but keep a chronological timeline of the people I follow
- our government agency needs its own verified social media server for public communication
- join the fediverse with accounts under our own domain name
- set our own moderation rules and block abusive servers on our community's social network
- a university wants a social network for staff and students that it hosts itself
- let members sign in to our social server with our SAML, CAS or OpenID Connect login
- connect members' accounts to our LDAP directory on a self-hosted social network
- build an app or bot that posts and reads timelines through a REST and streaming API
- get a webhook when a new account signs up or a report is filed on our social server
- manage users, media and domains of my social server from the command line
- translate posts in other languages with DeepL or LibreTranslate on our own server
- we want someone to host and moderate a branded social server for our institution
- store our social network's uploaded media in S3-compatible object storage
- run a decentralised social network on Kubernetes with a Helm chart
- post polls, images and videos with alt text and content warnings to my followers
Features
- federation over ActivityPub with other Mastodon servers and the wider fediverse
- real-time, chronological home timeline
- text, image, video and audio posts, alt text, polls and content warnings
- per-server rules and moderation, reports, account and domain blocks, phrase filtering, muting and locked accounts
- official iOS and Android apps and a web app usable on desktop and phone
- OAuth2 provider with REST and streaming APIs for third-party apps
- webhooks for account and report events, signed with an X-Hub-Signature header
- tootctl command-line administration
- external authentication through CAS, SAML, OpenID Connect, LDAP and PAM
- optional Elasticsearch full-text search
View 3 more
- S3-compatible and OpenStack Swift object storage for media
- post translation through DeepL or LibreTranslate
- Docker and docker-compose configurations, a Helm chart and a guide to installing from source
Limitations
- Doesn't end-to-end encrypt private messages: administrators of the sender's and recipient's servers may be able to read private mentions5
Ways to run it
Mastodon (self-hosted)
You arrange
- a server running Ubuntu 24.04 or Debian 13 with root access (or Docker, docker-compose or the Helm chart)
- PostgreSQL 14+, Redis 7.2+, Node.js 24+ and FFmpeg 5.1+
- a domain name or subdomain, and a TLS certificate (the guide uses Let's Encrypt)
- an email delivery service or SMTP server
- optionally Elasticsearch for full-text search and S3-compatible or Swift object storage for media
- moderating your server and writing its rules
Mastodon managed hosting
talk to sales9
Only in this edition
- your own Mastodon server hosted by the team that builds Mastodon
- All-in-One Managed Service: infrastructure, security, backups, updates and moderation
- or single services: hosting, moderation or support
Capabilities
| Has an API | plan not known |
|---|---|
| Has a command line tool | plan not known |
| Has single sign-on | Mastodon (self-hosted)8 |
| Sends webhooks | plan not known |
Alternatives
The same job
These do what Mastodon does.
