Modern routing hub and spoke router for Solar Realms games: Barren Realms Elite (BRE) and Falcons Eye (FE)
- ๐ Hub-and-Spoke Routing: Centralized packet routing for multiple BBS nodes
- ๐ OAuth Authentication: Secure client credentials flow for API access
- ๐ Web Dashboard: Real-time monitoring and statistics
- ๐ Real-time Updates: WebSocket support for live notifications
โ ๏ธ Sequence Validation: Automatic detection of missing packets- ๐ฎ Multi-Game Support: Handles both BRE and FE leagues
- ๐ฆ Dosemu Integration: Processes packets via Dosemu
For detailed instructions, see docs/QUICKSTART.md
# Install dependencies (exactly the versions in uv.lock)
uv sync
# Create data directory
mkdir -p ./data
# Initialize database
.venv/bin/alembic upgrade head
# Create admin user
.venv/bin/python create_admin_sql.py
# Start server
.venv/bin/uvicorn main:app --reloadAccess the web interface at: http://localhost:8000
Log in as admin with the password create_admin_sql.py printed. There is no
default password.
Sysops sign in through an identity provider once [identity] is set in
config.toml; see Sysop accounts.
See the nova-client directory for the full client with daemon support.
cd ../nova-client
# Install dependencies
pip install -r requirements.txt
# Configure client
cp config.toml.example config.toml
# Edit with your client credentials from hub admin
# Test run
python client.py
# Or run as daemon for continuous operation
python daemon.pyโโโโโโโโโโโโโโโ
โ Clients โ (Multiple BBSs)
โโโโโโโโฌโโโโโโโ
โ HTTPS/OAuth
โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Nova Hub Server โ
โ โโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ Web UI (Dashboard) โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโ โ
โ โโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ Packet API โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโ โ
โ โโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ Dosemu Processing โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โ
SQLite DB
- Quick Start Guide - Get up and running in 5 minutes
- Setup Guide - Comprehensive installation and configuration
- Project Structure - Code organization and architecture
- Code Reference - Developer reference
- API Documentation - Once running:
- Service API (for clients): http://localhost:8000/service/docs
- Management API (for admin): http://localhost:8000/management/docs
Packets follow the naming convention: <league><game><source><dest>.<seq>
Example: 555B0201.001
- League:
555(BRE League 555) - Game:
B(BRE) orF(FE) - Source BBS:
02(hex) - Destination BBS:
01(hex) - Sequence:
001(000-999, wraps)
# Hub tests. They build their own config from config.toml.example, so no
# config.toml is needed; the live rig tree skips itself off novatest-hl.
.venv/bin/pytest tests/The clients are tested in nova-client against its mock hub,
python/tests/mock_server.py, which both the Python and PowerShell suites use.
A change to the Service API belongs in that mock too.
[server]
host = "0.0.0.0"
port = 8000
[hub]
bbs_name = "My Hub"
bbs_index = "01"
[database]
path = "./data/nova-hub.db"
[dosemu]
dosemu_path = "/usr/bin/dosemu"
# ... see config.toml.example for full options[hub]
url = "https://hub.example.com"
client_id = "your_client_id"
client_secret = "your_secret"
[bbs]
name = "My BBS"
[leagues.BRE.555]
enabled = true
bbs_index = 2 # Your BBS ID for this league (1-255)
outbound_dir = "/path/to/bre/outbound"
inbound_dir = "/path/to/bre/inbound"# Create new migration after model changes
alembic revision --autogenerate -m "Description"
# Apply migrations
alembic upgrade head
# Rollback
alembic downgrade -1# See deploy/ directory for Ansible playbook and service template
sudo cp deploy/nova-hub.service.j2 /etc/systemd/system/nova-hub.service # edit paths first
sudo systemctl enable nova-hub
sudo systemctl start nova-hubhub.example.com {
reverse_proxy localhost:8000
}
If you can't create admin user or login fails:
# Use the SQL-based admin creation script
.venv/bin/python create_admin_sql.py
# Or verify user exists
sqlite3 ./data/nova-hub.db "SELECT * FROM sysop_users;"- Ensure Dosemu 2.x is installed
- Check file permissions on dosemu directories
- Verify game executables are in correct paths
- Check logs in
data/logs/dosemu/
- Verify hub URL is correct
- Check client credentials
- Ensure firewall allows outbound HTTPS
- Check client logs for errors
Sequence gaps can occur due to:
- Network issues during upload
- Client crashes mid-transfer
- Hub processing errors
Check the Alerts page in the web UI for details.
MIT -- see LICENSE.
Created for the BBS community to facilitate Inter-BBS leagues for:
- Barren Realms Elite (BRE) by Mehul Patel
- Falcons Eye (FE) by Mehul Patel
For issues or questions, please open an issue on GitHub.