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.

fosscord logo

Self-host fosscord

Discord-compatible self-hosted chat, voice & video platform

BetaOpen SourceAGPL-3.0
Updated3 weeks ago
Setup difficultyAdvanced
Stars
6 726
Ports
3001 (WebSocket gateway (external)), 3004 (Voice gateway (WebRTC signaling))
Requires
PostgreSQL, RabbitMQ
Docker
ghcr.io/spacebarchat/server-cdn
Install with Docker

What is fosscord?

Spacebar is a free and open-source reimplementation of Discord that you can host yourself. It provides a communication platform for chat, voice, and video that works with existing Discord clients and bots. The platform runs as separate services for the API, WebSocket gateway, CDN, and WebRTC voice/video, all communicating via a message queue. It supports a plugin system, theming, and configurable permissions. Installation options include Docker Compose, Docker, baremetal via npm, and NixOS. The project is in active development with core features implemented but some Discord features like voice activities, message threads, and full OAuth2 scopes still missing. A third-party web client (Fermi) is recommended for connecting to instances.

fosscord alternatives

All self-hosted alternatives to Discord →

Should you self-host fosscord?

fosscord scores 63/100 on selfhost.directory (how scoring works) and ranks #15 of 110 in Chat. It has 6 726 GitHub stars, +17 in the last 30 days.

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. An official Docker image is available. It is AGPL-3.0-licensed.

Its closest alternative on selfhost.directory is Discourse (83/100, 48 058 stars). It scores higher overall, so compare the two before you pick. See fosscord vs Discourse side by side.

Features

  • Admin API (experimental)Experimental, optional component.
  • Configurable permissions
  • Decentralized
  • Discord API compatibilityCore features implemented; some features like voice activities, message threads, OAuth2 scopes still missing.
  • GIF integrationRequires API key.
  • Plugin System
  • Self-Hosted
  • Theme System
  • Voice and video callsWebRTC protocol implemented; UDP transport not yet supported. Optional dependency.

fosscord README

Spacebar

Spacebar is a free, opensource selfhostable discord-compatible chat, voice and video platform.

How to install fosscord

Install fosscord with Docker

Docker, PostgreSQL, RabbitMQ, domain with reverse proxy
Environment variables
DATABASE, CONFIG_PATH

docker run
--name spacebar-server
--network spacebar-network
-e DATABASE=postgres://postgres:postgres@spacebar-db/postgres
-e CONFIG_PATH=config.json
-v ./data:/data
-p 3001:3001
ghcr.io/spacebarchat/server

Single container running all components (bundle mode). Requires PostgreSQL and RabbitMQ separately.

How to configure fosscord

  • PORTPort to listen on. Used by all components, including bundle.

    values: number

  • DATABASEDatabase connection string.

    values: string

  • DB_SYNCUnsafely synchronise database model on startup. Not recommended for production.

    values: bool

  • CONFIG_PATHFile path for JSON config, if not using config db table.

    values: string

  • WS_LOGEVENTSIf set, log websocket events except messages from gateway.

    values: boolean

FAQ

Is there a graphical admin interface?

Currently no graphical admin interface exists; an admin dashboard is planned but not a priority.

Is Spacebar legal?

The maintainers believe it is legal, citing Oracle v. Google precedent for API reimplementation.

Does Spacebar use Discord's servers or code?

No, Spacebar is a complete reimplementation and does not use Discord's infrastructure or code.

Can I log in with my Discord account?

No, Spacebar and Discord are entirely separate services with separate databases and authentication.

Can I get Free Nitro / premium features?

Spacebar does not have premium tiers; all users have access to all features server-side. You cannot get Discord Nitro features through Spacebar.

When will Voice/Video be available?

Experimental WebRTC voice/video support exists but UDP connections are not supported. It's a difficult feature to implement for Discord compatibility.

Is Spacebar still in development? Production Ready?

Yes, Spacebar is still in development by a small volunteer team. The server has most core features implemented with reasonable API compatibility, though some Discord features like voice/video, message threads, and OAuth2 scopes are incomplete.

More in Chat

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…