Skip to content

Latest commit

 

History

48 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rigel Server

Rigel Core Server

An alternative implementation of the Discord API, written in Rust.

Release License Rust

Introduction

Rigel is a self-hostable, alternative server implementation compatible with the Discord API and client ecosystem. Developed as an independent project, it is designed to be compatible with both Spacebar or Fluxer.

This repository contains the core backend codebase, including the REST API, Gateway (WebSocket), and CDN.

Prerequisites

  • MySQL (>= 8.0) or MariaDB (>= 10.5)
  • (Optional) Rust toolchain (latest stable, only if building from source)

Installation & Setup

1. Database Initialization

Create a dedicated database for Rigel with utf8mb4 encoding:

CREATE DATABASE rigel CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;

Option A: Using Pre-built Binaries (Recommended)

  1. Download the archive matching your OS and architecture from the Latest Releases.
  2. Extract the archive into your desired directory.
  3. Copy .env.example to .env (or create one) and adjust your configuration.
    cp .env.example .env
  4. Run the executable (database migrations will run automatically on startup):
    # Linux / macOS
    chmod +x rigel-server
    ./rigel-server
    
    # Windows
    .\rigel-server.exe

Important

Most variables have built-in default values. At minimum, ensure your DATABASE_URL is configured.


Option B: Building from Source (Developers)

  1. Clone the repository:

    git clone https://github.com/rigelchat/server.git
    cd server
  2. Configure environment variables:

    cp .env.example .env
    # Edit .env with your database credentials and secret key
  3. Run in development mode (with auto-migrations):

    cargo run
  4. Or build an optimized release binary:

    cargo build --release
    ./target/release/rigel-server

Server Endpoints

Once started, the server listens by default on port 3000:

  • REST API: http://localhost:3000/api/v1 (alias: http://localhost:3000/api)
  • Gateway (WebSocket): ws://localhost:3000/gateway

Testing

Run the automated test suite:

cargo test

API Documentation

Rigel aims for 1:1 compatibility with the Discord API. Refer to the official Discord Developer Portal or check our Wiki for project-specific details.


Part of the Rigel Project.

About

The core backend and API for Rigel. A high-performance, self-hostable server designed with Discord-compatible endpoints for easy ecosystem migration.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages