selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

Codeberg
Mitra logo

Self-host Mitra

0.12.0

Lightweight ActivityPub micro-blogging server

ReleaseOpen SourceAGPL-3.0
apk add -vi mitra@testing
Updated2 years ago
Setup difficultyModerate
RAM
256 MB
Storage
10 GB
Port
8383 (HTTP server of the Mitra instance (behind a reverse proxy))
Requires
PostgreSQL

What is Mitra?

Mitra is an ActivityPub server for running your own micro-blogging instance inside the Fediverse. Written in Rust and deliberately small (the project claims a memory footprint under 50 MB), it handles posts with a 5000-character default limit, quote posts, polls, emoji reactions, custom emojis, markdown-style formatting and groups. Most REST endpoints mirror the Mastodon API with some Pleroma extensions, so ordinary Fediverse clients work against it. Creators can run subscription tiers with private posts and get paid in Monero, and accounts can be moved between servers because identity is not tied to one host. Federation can also run over Tor or I2P, and a firewall-like rule system lets admins block domains, accounts, media or keywords server-wide. Operators install a .deb package, an Alpine or Nix package, or a community Docker image, create a PostgreSQL database, edit the config file, add an admin account with the CLI and put nginx or Caddy in front of port 8383. The web interface is a separate project (mitra-web); IPFS support is experimental and not actively maintained.

Mitra alternatives

Should you self-host Mitra?

Mitra scores 60/100 on selfhost.directory (how scoring works) and ranks #1 of 4 in Microblogging.

There was no stable release in the past 12 months, so check the repository's recent activity before you rely on it.

Setup is moderate: expect some configuration beyond a single command. It is AGPL-3.0-licensed.

Its closest alternative on selfhost.directory is Ech0 (59/100, 2 097 stars). Mitra scores higher overall. See Mitra vs Ech0 side by side.

Features

  • Account Migration
  • Content subscriptions
  • Custom Emojis
  • Federation filtering
  • Federation over Tor and I2P
  • Groups
  • Invite-based Registration
  • IPFS integrationExperimental, not actively maintained and may be removed in the future.
  • Markdown post formatting
  • Mastodon-compatible REST API
  • Micro-blogging posts
  • Monero payments
  • Polls
  • Quote Posts
  • Reactions

How to install Mitra

Install Mitra with Linux

Install from testing repository:

echo '@testing https://dl-cdn.alpinelinux.org/alpine/edge/testing' >> /etc/apk/repositories
apk update
apk add -vi mitra@testing

Community-maintained package in the testing repository.

How to configure Mitra

  • database_urlPostgreSQL connection string; '@' in a password and '/' in a hostname must be percent-encoded.
  • storage_dir/var/lib/mitraDirectory where media attachments and temporary files are stored.
  • web_client_dir/usr/share/mitra/wwwDirectory holding the static files of the web client (frontend).
  • http_host127.0.0.1Host where the HTTP server accepts connections.
  • http_port8383Port where the HTTP server accepts connections.

More in Microblogging

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…