Spacebar logo

Spacebar

Self-hosted Discord backend reimplementation with backward compatibility for existing bots, apps, and clients

Open Source Alternative to
Repository activity
  • Stars2.2k
  • Forks306
  • Open Issues202
License

AGPL-3.0

Languages
  • TypeScript
  • C#
  • HTML
Spacebar screenshot

About Spacebar

Spacebar is an open source reimplementation and extension of the Discord backend. It lets you run a Discord-compatible chat server on infrastructure you control, staying backwards compatible with existing bots, applications, and clients while adding features of its own.

A Spacebar instance bundles an HTTP API server, a WebSocket gateway, an HTTP CDN, a WebRTC voice server, and utility and database models. It also ships a Spacebar Admin API and additional utilities written in C#. Most clients built for Discord.com can connect to a Spacebar instance.

Because Spacebar reverse-engineers the Discord API rather than reusing it, some incompatibilities with Discord clients still exist, and not every client connects cleanly. Setup documentation covers standing up your own server and configuring clients and bots.

Key features

  • HTTP API server and WebSocket Gateway server
  • HTTP CDN server and WebRTC server
  • Backward compatible with existing bots, applications, and clients
  • Spacebar Admin API in C#
  • Works with Discord-designed clients where compatible

Details

First released
2020
Platforms
Web
Deployment
self-hostable
Compatibility
Discord bots, apps, and clients
Components
API, gateway, CDN, WebRTC
Language
TypeScript · C#