6 self-hosted options
Open-source alternatives to Twitter / X
The best open-source alternative to Twitter / X is Mastodon (AGPL-3.0, 50,603 GitHub stars, Docker image). Lemmy stands out for its Rust codebase, and diaspora* stands out for the longest track record (since 2010).
About Twitter / X: A microblogging social network for short public posts.
Updated · data from GitHub, refreshed daily
Top picks
- Rank 1:
Mastodon
mastodon/mastodon
Federated microblogging server.
Active · last commit Nov 16, 2026
Social & ForumsRubyDockerStands out for the most GitHub stars.
- Rank 2:
Lemmy
LemmyNet/lemmy
Link aggregator for the fediverse (alternative to Reddit).
Active · last commit Nov 16, 2026
Social & ForumsRustDockerStands out for its Rust codebase.
- Rank 3:
diaspora*
diaspora/diaspora
Distributed social networking server.
Maintained · last commit Jul 28, 2026
Social & ForumsRubyStands out for the longest track record (since 2010).
At a glance
Twitter / X alternatives compared
Open-source apps come first, then source-available ones and apps whose license appsgit could not verify; within each group, projects with at least 12 commits in the last 12 months come before less active or archived ones, then by GitHub stars.
| App | Stands out for | License | GitHub stars | Commits (12 mo) | Last commit | Docker image |
|---|---|---|---|---|---|---|
| Mastodon | the most GitHub stars | AGPL-3.0 | 50,603 | 3,151 | Nov 16, 2026 | Yes |
| Lemmy | its Rust codebase | AGPL-3.0 | 14,681 | 316 | Nov 16, 2026 | Yes |
| diaspora* | the longest track record (since 2010) | AGPL-3.0 | 13,652 | 119 | Jul 28, 2026 | No |
| Misskey | its TypeScript codebase | AGPL-3.0 | 11,392 | 1,072 | Nov 15, 2026 | Yes |
| PixelFed | the most commits in the last 12 months (4,290) | AGPL-3.0 | 7,145 | 4,290 | Nov 15, 2026 | No |
| Friendica | – | AGPL-3.0 | 1,701 | 2,645 | Nov 16, 2026 | No |
Full list
All 6 Twitter / X alternatives
Open any app for live stats, license details and a deploy option.
- 1
Mastodon
Federated microblogging server.
Social & ForumsDockerStands out for the most GitHub stars. Mastodon has 50,603 GitHub stars, uses the AGPL-3.0 license, ships a Docker image and had 3,151 commits in the last year.
- 2
Lemmy
Link aggregator for the fediverse (alternative to Reddit).
Social & ForumsDockerStands out for its Rust codebase. Lemmy has 14,681 GitHub stars, uses the AGPL-3.0 license, ships a Docker image and had 316 commits in the last year.
- 3
diaspora*
Distributed social networking server.
Social & ForumsStands out for the longest track record (since 2010). diaspora* has 13,652 GitHub stars, uses the AGPL-3.0 license and had 119 commits in the last year.
- 4
Misskey
Decentralized app-like microblogging server/SNS for the Fediverse, using the ActivityPub protocol like GNU social and Mastodon.
Social & ForumsDockerStands out for its TypeScript codebase. Misskey has 11,392 GitHub stars, uses the AGPL-3.0 license, ships a Docker image and had 1,072 commits in the last year.
- 5
PixelFed
Ethical photo sharing platform, powered by ActivityPub federation (alternative to Instagram).
Social & ForumsStands out for the most commits in the last 12 months (4,290). PixelFed has 7,145 GitHub stars, uses the AGPL-3.0 license and had 4,290 commits in the last year.
- 6
Friendica
Social Communication Server.
Social & ForumsFriendica has 1,701 GitHub stars, uses the AGPL-3.0 license and had 2,645 commits in the last year.
Is there a free alternative to Twitter / X?
Yes. All 6 apps on this page are open source and free to self-host, so you can replace Twitter / X without per-user fees. You pay only for the server.
Can I self-host an alternative to Twitter / X with Docker?
Yes. 3 of the 6 apps here publish a Docker image, including Mastodon, Lemmy and Misskey, so you can run them on a home server or VPS with Docker Compose.
Which Twitter / X alternative is the most actively developed?
PixelFed (AGPL-3.0), with 4,290 commits in the last 12 months. Activity is a good sign that bugs and security issues get fixed.
How is this list ranked?
Open-source apps come first, then source-available ones and apps whose license appsgit could not verify; within each group, projects with at least 12 commits in the last 12 months come before less active or archived ones, then by GitHub stars.