# Mostr

> This open-source, self-hosted bridge runs as an ActivityPub server and Nostr client so Mastodon-side and Nostr users can follow, reply and react across both networks.

- **Category:** [Federation](https://selfhost.directory/federation)
- **Licence:** agpl-3.0
- **Source model:** Open source
- **Latest version:** 1.0.0
- **Author:** Soapbox
- **Platforms:** Bun
- **Requires:** PostgreSQL
- **Tags:** Social Network, Mastodon, Activitypub, Cross Platform, Deno, Nostr, Bridge, Fediverse, Lightning, Relay

## What is Mostr?

Mostr connects two decentralized social networks: it behaves as an ActivityPub server on one side and a Nostr client on the other, so follows, notes, announcements, likes, emoji reactions and deletions are mapped across to matching Nostr event kinds and back. Bridged accounts get deterministically generated keypairs and appear on the Fediverse as long hex public-key actors (e.g. users at mostr.pub), while Nostr users find them via NIP-05 identifiers; the relay pool acts as the datastore, so the bridge keeps very little in its Postgres database. Documented protocol support includes NIP-05, NIP-09 deletions, NIP-18 reposts, NIP-25 reactions, NIP-36 sensitive content, NIP-57 Lightning zaps and NIP-71 video events (which federate as notes carrying a video attachment). The public bridge at mostr.pub also lets people look up cross-platform accounts (Fediverse, Threads, Bluesky), and its blog announces that Nostr users can follow Bluesky accounts through the bridge. To run your own, install Bun and a Postgres database, check out the source, and start the server; the repository includes sample nginx and systemd configuration, and no Docker image is published.

## Should you self-host Mostr?

Mostr scores **54/100** on selfhost.directory ([how scoring works](https://selfhost.directory/scoring)) and ranks **#2 of 2** in [Federation](https://selfhost.directory/federation).

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

Setup is advanced: plan for several services and some ongoing maintenance. It is agpl-3.0-licensed.

Its closest alternative on selfhost.directory is [Plume](https://selfhost.directory/project/plume) (59/100, 2 220 stars). It scores higher overall, so compare the two before you pick. [See Mostr vs Plume side by side.](https://selfhost.directory/compare/mostr-vs-plume)

## Features

- ActivityPub server / Nostr client
- Content deletion
- Cross-platform user search
- Deterministic bridged accounts
- Lightning Zaps
- Likes and emoji reactions
- NIP-05 identity mapping
- Nostr–Fediverse bridging
- Profile synchronization
- Relay pool subscription
- Reposts
- Sensitive content flags
- Video event federation

## How to install Mostr

### Install Mostr with Bun

Requirements: Bun; Postgres

```sh
bun install
bun run dev
```

Note: Start the server with `bun run start`; the scripts load environment from .env (`--env-file=.env`). Repository ships example nginx site config and a systemd unit under installation/.

## Mostr alternatives

- [Mastodon](https://selfhost.directory/project/mastodon): Open-source self-hosted microblogging server that federates over ActivityPub, with chronological timelines, media posts, moderation tools and an OAuth2 REST API. (compare: https://selfhost.directory/compare/mastodon-vs-mostr)
- [Mitra](https://selfhost.directory/project/mitra): Open-source, self-hosted ActivityPub micro-blogging server written in Rust, Mastodon-API compatible, with groups, polls and Monero-paid subscriptions. (compare: https://selfhost.directory/compare/mitra-vs-mostr)
- [nostream](https://selfhost.directory/project/nostream): Own a relay for social network nobody can switch off (compare: https://selfhost.directory/compare/mostr-vs-nostream)
- [Glitch-Soc](https://selfhost.directory/project/glitch-soc): Mastodon Glitch Edition is a self-hosted, open-source ActivityPub microblogging server adding experimental features like Markdown posts and advanced theming to Mastodon. (compare: https://selfhost.directory/compare/glitch-soc-vs-mostr)
- [servus](https://selfhost.directory/project/servus): Self-hosted, open-source social media server with flat-file CMS, Nostr relay, and Blossom storage in a single Rust binary — no database or Docker needed. (compare: https://selfhost.directory/compare/mostr-vs-servus)
- [Misskey](https://selfhost.directory/project/misskey): Open-source ActivityPub software for running your own social network: self-hosted servers with notes, reactions, custom emojis, and roles. (compare: https://selfhost.directory/compare/misskey-vs-mostr)
- [hatsu](https://selfhost.directory/project/hatsu): Hatsu is a self-hosted, open-source ActivityPub bridge connecting static sites to the Fediverse, automating follows and content push without microformats2. (compare: https://selfhost.directory/compare/hatsu-vs-mostr)
- [rss-to-activitypub](https://selfhost.directory/project/rss-to-activitypub): Self-hosted Node.js server that converts any RSS feed into an ActivityPub actor followable from Mastodon and other federated platforms, with OAuth-gated feed creation. (compare: https://selfhost.directory/compare/mostr-vs-rss-to-activitypub)

## More in Federation

- [openam](https://selfhost.directory/project/openam): Self-hosted open-source access management: SSO, SAML, OAuth 2.0 and OIDC federation, adaptive authentication, centralized policy; ships as a Docker image or WAR.
- [pds](https://selfhost.directory/project/pds): Bluesky PDS is an open-source, self-hosted Personal Data Server: run your own account host that federates with the AT Protocol network, installed via Docker Compose.
- [Plume](https://selfhost.directory/project/plume): Self-hosted federated blogging engine written in Rust. Replaces WordPress + ActivityPub plugin. Interoperates with Mastodon, Pleroma, and WriteFreely.
- [Rocket.Chat](https://selfhost.directory/project/rocketchat): Self-hosted, open-source chat platform for teams and citizens: channels, threads, voice and video, end-to-end encryption, LDAP/SSO, and Matrix federation.
- [Snikket](https://selfhost.directory/project/snikket): An open-source, self-hosted XMPP messaging server for family, friends or small groups, with invite-based accounts, group chat, file sharing and audio/video calling.
- [Tuwunel](https://selfhost.directory/project/tuwunel): Open-source, self-hosted Matrix homeserver in Rust with RocksDB storage, federation, a built-in OAuth 2.0/OIDC server, LDAP login, Element Call and admin APIs.
- [Backspace](https://selfhost.directory/project/backspace): Self-hosted Discord alternative with spaces, roles, voice/video, 4K screen sharing, and server federation. Deploys via interactive Docker installer.
- [cinny](https://selfhost.directory/project/cinny): Open-source Matrix client (AGPL-3.0) for self-hosted federated chat with end-to-end encryption, served as a static web app via Docker or tarball.
- [Conduit](https://selfhost.directory/project/conduit): A self-hosted, open-source Matrix homeserver written in Rust, shipped as Docker images, Debian packages and static Linux binaries; easy to set up and federation-capable.
- [diaspora*](https://selfhost.directory/project/diaspora): Self-hosted, open-source federated social network: run your own pod or join one, and share with aspects, hashtags, mentions and reshares.
- [Element](https://selfhost.directory/project/element): Open-source, self-hosted Matrix client for messaging, e2ee, voice/video calls and Spaces, installed via Docker, Debian package or tarball, with an Electron desktop build.
- [flohmarkt](https://selfhost.directory/project/flohmarkt): A self-hosted, open-source classified-ads web app that shares listings across the fediverse via ActivityPub, linking local communities instead of one big marketplace.

## Links

- [Homepage](https://gitlab.com/soapbox-pub/mostr)
- [Website](https://mostr.pub/)
- [Introducing Mostr (blog)](https://soapbox.pub/blog/mostr-fediverse-nostr-bridge/)
- [Mostr status page](https://uptime.mostr.pub/)

---
Source: https://selfhost.directory/project/mostr