Your self-hosted, globally interconnected microblogging community
Go to file
Matt Jankowski 20a71a5479
Some checks are pending
Bundler Audit / security (push) Waiting to run
Check i18n / check-i18n (push) Waiting to run
Chromatic / Run Chromatic (push) Waiting to run
CodeQL / Analyze (javascript) (push) Waiting to run
CodeQL / Analyze (ruby) (push) Waiting to run
Check formatting / lint (push) Waiting to run
CSS Linting / lint (push) Waiting to run
Haml Linting / lint (push) Waiting to run
Ruby Linting / lint (push) Waiting to run
Historical data migration test / test (14-alpine) (push) Waiting to run
Historical data migration test / test (15-alpine) (push) Waiting to run
Historical data migration test / test (16-alpine) (push) Waiting to run
Historical data migration test / test (17-alpine) (push) Waiting to run
Ruby Testing / build (production) (push) Waiting to run
Ruby Testing / build (test) (push) Waiting to run
Ruby Testing / test (.ruby-version) (push) Blocked by required conditions
Ruby Testing / test (3.2) (push) Blocked by required conditions
Ruby Testing / test (3.3) (push) Blocked by required conditions
Ruby Testing / ImageMagick tests (.ruby-version) (push) Blocked by required conditions
Ruby Testing / ImageMagick tests (3.2) (push) Blocked by required conditions
Ruby Testing / ImageMagick tests (3.3) (push) Blocked by required conditions
Ruby Testing / End to End testing (.ruby-version) (push) Blocked by required conditions
Ruby Testing / End to End testing (3.2) (push) Blocked by required conditions
Ruby Testing / End to End testing (3.3) (push) Blocked by required conditions
Ruby Testing / Elastic Search integration testing (.ruby-version, docker.elastic.co/elasticsearch/elasticsearch:7.17.13) (push) Blocked by required conditions
Ruby Testing / Elastic Search integration testing (.ruby-version, docker.elastic.co/elasticsearch/elasticsearch:8.10.2) (push) Blocked by required conditions
Ruby Testing / Elastic Search integration testing (.ruby-version, opensearchproject/opensearch:2) (push) Blocked by required conditions
Ruby Testing / Elastic Search integration testing (3.2, docker.elastic.co/elasticsearch/elasticsearch:7.17.13) (push) Blocked by required conditions
Ruby Testing / Elastic Search integration testing (3.3, docker.elastic.co/elasticsearch/elasticsearch:7.17.13) (push) Blocked by required conditions
Disable Metrics/* cops (#35000)
2025-08-20 17:04:36 +00:00
.devcontainer
.github Remove unnecessary limitation on manual build-security workflow (#35752) 2025-08-13 07:12:11 +00:00
.husky
.rubocop Disable Metrics/* cops (#35000) 2025-08-20 17:04:36 +00:00
.storybook Update devDependencies (non-major) (#35660) 2025-08-14 08:36:38 +00:00
.yarn
app Disable Metrics/* cops (#35000) 2025-08-20 17:04:36 +00:00
bin
chart
config Use debug? query method on httplog initializer check (#35833) 2025-08-20 12:06:35 +00:00
db Change indexes on quotes to efficiently list quotes of a given account or quoted status (#35819) 2025-08-19 12:50:30 +00:00
dist
docs Mention admin@localhost in DEVELOPMENT.md for non-Vagrant setups (#35704) 2025-08-18 14:13:44 +00:00
lib Update stoplight to version 5.3.1 (#35129) 2025-08-12 08:15:22 +00:00
log
public
spec Avoid method that makes tokens while checking for tokens (#35815) 2025-08-19 06:49:34 +00:00
streaming Update Dockerfile to use Debian 'trixie' (#35768) 2025-08-18 16:45:31 +00:00
vendor
.annotaterb.yml
.browserslistrc
.buildpacks
.dockerignore Performance regression fixes (#35664) 2025-08-04 17:16:12 +00:00
.editorconfig
.env.development
.env.production.sample Remove OTP_SECRET env configuration from setup (#34757) 2025-05-21 15:08:46 +00:00
.env.test
.env.vagrant
.foreman
.gitattributes
.gitignore feat: Add Storybook for component documentation, testing, and development (#34907) 2025-06-06 09:27:29 +00:00
.haml-lint.yml
.nvmrc Update Node.js to 22.18 (#35621) 2025-08-04 06:46:38 +00:00
.prettierignore Move email env var reading to yml files (#35191) 2025-06-26 12:18:30 +00:00
.prettierrc.js
.rspec
.rubocop_todo.yml Disable Metrics/* cops (#35000) 2025-08-20 17:04:36 +00:00
.rubocop.yml
.ruby-gemset
.ruby-version chore(deps): update dependency ruby to v3.4.5 (#35395) 2025-07-17 08:47:39 +00:00
.slugignore
.watchmanconfig
.yarnrc.yml
app.json Remove OTP_SECRET env configuration from setup (#34757) 2025-05-21 15:08:46 +00:00
Aptfile
AUTHORS.md
CHANGELOG.md Update devDependencies (non-major) (#35660) 2025-08-14 08:36:38 +00:00
CODE_OF_CONDUCT.md
config.ru
CONTRIBUTING.md Add security policy in CONTRIBUTING, update year refs. (#34761) 2025-05-22 10:03:26 +00:00
crowdin.yml
docker-compose.yml Bump version to v4.4.3 (#35687) 2025-08-05 13:32:20 +00:00
Dockerfile Update Dockerfile to use Debian 'trixie' (#35768) 2025-08-18 16:45:31 +00:00
eslint.config.mjs Emoji Rendering Efficiency (#35568) 2025-07-31 17:30:14 +00:00
FEDERATION.md
Gemfile Update opentelemetry-ruby (non-major) (#35784) 2025-08-19 07:07:46 +00:00
Gemfile.lock Update dependency ruby-vips to v2.2.5 (#35836) 2025-08-20 15:31:58 +00:00
ide-helper.js
jsconfig.json
LICENSE
lint-staged.config.js
package.json Update dependency @rails/ujs to v7.1.502 (#35772) 2025-08-14 07:34:30 +00:00
priv-config
Procfile
Procfile.dev
Rakefile
README.md Update sidekiq to version 8.0.7 (#34824) 2025-08-14 15:25:31 +00:00
scalingo.json Remove OTP_SECRET env configuration from setup (#34757) 2025-05-21 15:08:46 +00:00
SECURITY.md Bump version to v4.4.0 (#35291) 2025-07-08 14:26:43 +00:00
stylelint.config.js Enable Stylelint color-hex-length (#34310) 2025-05-21 08:05:45 +00:00
tsconfig.json Storybook Helpers (#35158) 2025-06-25 11:20:11 +00:00
Vagrantfile Update Vagrantfile (#35765) 2025-08-13 20:45:10 +00:00
vite.config.mts Update to Vite 7 (#35598) 2025-08-11 12:35:36 +00:00
vitest.config.mts Emoji Rendering Efficiency (#35568) 2025-07-31 17:30:14 +00:00
vitest.shims.d.ts feat: Add Storybook for component documentation, testing, and development (#34907) 2025-06-06 09:27:29 +00:00
yarn.lock Update dependency vite-plugin-pwa to v1.0.3 (#35830) 2025-08-20 08:09:02 +00:00

Note

Want to learn more about Mastodon? Click below to find out more in a video.

Mastodon hero image

Release Ruby Testing Crowdin

Mastodon is a free, open-source social network server based on ActivityPub where users can follow friends and discover new ones. On Mastodon, users can publish anything they want: links, pictures, text, and video. All Mastodon servers are interoperable as a federated network (users on one server can seamlessly communicate with users from another one, including non-Mastodon software that implements ActivityPub!)

Navigation

Features

Part of the Fediverse. Based on open standards, with no vendor lock-in. - the network goes beyond just Mastodon; anything that implements ActivityPub is part of a broader social network known as the Fediverse. You can follow and interact with users on other servers (including those running different software), and they can follow you back.

Real-time, chronological timeline updates - updates of people you're following appear in real-time in the UI.

Media attachments - upload and view images and videos attached to the updates. Videos with no audio track are treated like animated GIFs; normal videos loop continuously.

Safety and moderation tools - Mastodon includes private posts, locked accounts, phrase filtering, muting, blocking, and many other features, along with a reporting and moderation system.

OAuth2 and a straightforward REST API - Mastodon acts as an OAuth2 provider, and third party apps can use the REST and Streaming APIs. This results in a rich app ecosystem with a variety of choices!

Deployment

Tech stack

  • Ruby on Rails powers the REST API and other web pages.
  • PostgreSQL is the main database.
  • Redis and Sidekiq are used for caching and queueing.
  • Node.js powers the streaming API.
  • React.js and Redux are used for the dynamic parts of the interface.
  • BrowserStack supports testing on real devices and browsers. (This project is tested with BrowserStack)
  • Chromatic provides visual regression testing. (This project is tested with Chromatic)

Requirements

  • Ruby 3.2+
  • PostgreSQL 13+
  • Redis 7.0+
  • Node.js 20+

This repository includes deployment configurations for Docker and docker-compose, as well as for other environments like Heroku and Scalingo. For Helm charts, reference the mastodon/chart repository. A standalone installation guide is available in the main documentation.

Contributing

Mastodon is free, open-source software licensed under AGPLv3. We welcome contributions and help from anyone who wants to improve the project.

You should read the overall CONTRIBUTING guide, which covers our development processes.

You should also read and understand the CODE OF CONDUCT that enables us to maintain a welcoming and inclusive community. Collaboration begins with mutual respect and understanding.

You can learn about setting up a development environment in the DEVELOPMENT documentation.

If you would like to help with translations 🌐 you can do so on Crowdin.

LICENSE

Copyright (c) 2016-2025 Eugen Rochko (+ mastodon authors)

Licensed under GNU Affero General Public License as stated in the LICENSE:

Copyright (c) 2016-2025 Eugen Rochko & other Mastodon contributors

This program is free software: you can redistribute it and/or modify it under
the terms of the GNU Affero General Public License as published by the Free
Software Foundation, either version 3 of the License, or (at your option) any
later version.

This program is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
details.

You should have received a copy of the GNU Affero General Public License along
with this program. If not, see https://www.gnu.org/licenses/