Self-host Mostr
1.0.0Bridge between Nostr relays and the Fediverse
- Requires
- PostgreSQL
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.
Mostr alternatives
MastodonOpen-source self-hosted microblogging server that federates over ActivityPub, with chronological timelines, media posts, moderation tools and an OAuth2 REST API.CompareMastodon with Mostr
MitraOpen-source, self-hosted ActivityPub micro-blogging server written in Rust, Mastodon-API compatible, with groups, polls and Monero-paid subscriptions.CompareMitra with Mostr
nostreamOwn a relay for social network nobody can switch offComparenostream with Mostr
Glitch-SocMastodon Glitch Edition is a self-hosted, open-source ActivityPub microblogging server adding experimental features like Markdown posts and advanced theming to Mastodon.CompareGlitch-Soc with Mostr
servusSelf-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.Compareservus with Mostr
MisskeyOpen-source ActivityPub software for running your own social network: self-hosted servers with notes, reactions, custom emojis, and roles.CompareMisskey with Mostr
hatsuHatsu is a self-hosted, open-source ActivityPub bridge connecting static sites to the Fediverse, automating follows and content push without microformats2.Comparehatsu with Mostr
rss-to-activitypubSelf-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.Comparerss-to-activitypub with Mostr
Should you self-host Mostr?
Mostr scores 54/100 on selfhost.directory (how scoring works) and ranks #2 of 2 in 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 (59/100, 2 220 stars). It scores higher overall, so compare the two before you pick. See Mostr vs Plume side by side.
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
bun install
bun run dev
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/.
More in Federation
openamSelf-hosted open-source access management: SSO, SAML, OAuth 2.0 and OIDC federation, adaptive authentication, centralized policy; ships as a Docker image or WAR.
pdsBluesky 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.
PlumeSelf-hosted federated blogging engine written in Rust. Replaces WordPress + ActivityPub plugin. Interoperates with Mastodon, Pleroma, and WriteFreely.
Rocket.ChatSelf-hosted, open-source chat platform for teams and citizens: channels, threads, voice and video, end-to-end encryption, LDAP/SSO, and Matrix federation.
SnikketAn 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.
TuwunelOpen-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.
BackspaceSelf-hosted Discord alternative with spaces, roles, voice/video, 4K screen sharing, and server federation. Deploys via interactive Docker installer.
cinnyOpen-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.
ConduitA 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*Self-hosted, open-source federated social network: run your own pod or join one, and share with aspects, hashtags, mentions and reshares.
ElementOpen-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.
flohmarktA self-hosted, open-source classified-ads web app that shares listings across the fediverse via ActivityPub, linking local communities instead of one big marketplace.
0 comments