spacebarchat

server: Run a Discord-Compatible Messaging Backend

Spacebar Server reimplements and extends Discord’s backend for people building or self-hosting compatible chat services. It provides HTTP APIs, a WebSocket gateway, and supporting services, while aiming to work with existing Discord clients and bots.

TypeScriptAGPL-3.0APIReal TimeSelf Hosted
View on GitHub Compare
Stars
2.2k
Forks
326
Stars, last 30 days
+9

Our take

Health score

55/100

How it is scored
Activity
52
Community
81
Issues
42
Pull requests
45

+9 stars in the last 30 days

  • More contributors than 76% of the projects we track
  • Slower to close issues than 93% of the projects we track

Project history

Daily GitHub snapshots since Oct 7, 2026. History covers stars and forks; health signals are not tracked historically.

Selected snapshot

Stars

2,217

Forks

329

Change since Nov 17, 2026: +1 stars·0 forks

Overview

Spacebar Server is a TypeScript backend reimplementation of Discord.com, intended to let people operate their own compatible messaging service. It aims to support existing Discord clients, bots, and applications while also allowing backend extensions.

The repository brings together the HTTP API, WebSocket gateway, CDN, WebRTC service, schemas, and database utilities. It is suited to teams and self-hosters who want to run or develop a Discord-style platform, rather than people looking for a ready-made chat client.

Key Features

  • Implements a Spacebar HTTP API and API request/response schemas.
  • Includes a WebSocket Gateway for real-time client communication.
  • Provides HTTP CDN and WebRTC services alongside the API server.
  • Includes utility code and database models.
  • Aims for backwards compatibility with Discord clients, bots, and applications.
  • Provides a separate admin API and CDN utilities written in C#.

Use Cases

  • Self-hosters can run a Discord-style messaging service under their own control.
  • Developers can build or test bots and applications against a compatible backend.
  • Client developers can explore connecting Discord-oriented clients to an independently operated instance.
  • Contributors can work on an open reimplementation of Discord backend behavior or add extensions.

Getting Started

Use the server setup documentation to install and configure an instance. See the README for project details, and the documentation for setup guidance for clients and bots.

Considerations

The project describes itself as under development, and compatibility with Discord clients is not universal. The README notes that incompatibilities remain, so verify that the clients, bots, and applications you depend on work with Spacebar before choosing it. The AGPL-3.0 license should also be considered when deploying or modifying the server.

Found this useful?

Share it with someone who would like server.