Backend service for a private ArcadeLauncher game library.
The primary backend is a Rust/Linux service:
axum/tokioHTTP API and admin UI.- MariaDB-backed users, bearer tokens, sessions, and game catalog.
- Username/password login for both admin and launcher clients.
- Per-game install manifests with SHA-256 hashes.
- HTTP byte-range file serving for resumable launcher downloads.
- Native Rust filesystem catalog scanner and MariaDB sync.
cargo run --release -- --host 127.0.0.1 --port 8721 --library-root /srv/arcade-libraryOpen:
http://127.0.0.1:8721/api/health
http://127.0.0.1:8721/api/catalog
http://127.0.0.1:8721/api/games/<game-id>/manifest
Game files live under the library root. The game catalog itself is stored in MariaDB and rebuilt from the filesystem through the admin panel.
D:\ArcadeLibrary\
games\
assassins-creed-ii-x360-god\
5553083B\
00007000\
C3698B02515E795C2B2F
C3698B02515E795C2B2F.data\
Data0000
Data0001
Catalog entries store paths relative to the library root. Do not put absolute NAS/server paths in the database. A content path may point to either a game directory, such as an Xbox 360 GOD folder, or a single ROM file. For mounted ROM libraries, use the admin panel's Rescan Filesystem and Sync DB action.
The native scanner catalogs known emulator ROM formats, Xbox 360 GOD directories, and PC archive installs.
Recommended shape:
- Proxmox unprivileged Debian/Ubuntu CT.
- Mount your game storage into the CT at
/srv/arcade-library. - Run this server as a systemd service on port
8721. - Windows clients connect to
http://<ct-ip>:8721.
Inside the CT:
apt-get update
apt-get install -y git
git clone https://github.com/TheStonedGamer/ArcadeLauncher-Server.git /opt/arcadelauncher-server
cd /opt/arcadelauncher-server
sudo deploy/install-linux.shIf the game library is mounted from the Proxmox host, make sure the CT can read it:
/srv/arcade-library/
games/
Service files:
deploy/arcadelauncher-server.servicedeploy/arcadelauncher-server.env.exampledeploy/install-linux.sh
Useful commands:
systemctl status arcadelauncher-server
journalctl -u arcadelauncher-server -f
curl http://127.0.0.1:8721/api/healthFor LAN-only use, plain HTTP is fine to start. For remote access, put it behind a VPN such as WireGuard/Tailscale or a reverse proxy with TLS and authentication.
Set ARCADE_AUTH_TOKEN in /etc/arcadelauncher-server.env to require clients to send:
Authorization: Bearer <token>
The web admin UI is available at:
http://<ct-ip>:8721/admin
On first boot, if no admin account exists, the server creates one from:
ARCADE_ADMIN_USERNAME
ARCADE_ADMIN_EMAIL
ARCADE_ADMIN_PASSWORD
The admin UI can:
- create, rotate, and delete named launcher/user bearer tokens
- show library root, catalog paths, and per-platform game counts
- trigger a catalog rescan (async, with live per-platform hashing status)
- sign in with username/email and password
- request password reset links by email
- require a user to change their password on next login (force-reset)
Launcher clients additionally get account self-service against this server:
GET/POST /api/account (profile), /api/account/password (change password),
and /api/account/totp/{setup,enable,disable} (enable/disable TOTP, returns an
otpauth:// URI the client renders as a QR code).
Passwordless QR sign-in uses /api/auth/qr/{start,inspect,decide,poll}. A
launcher or storefront creates a three-minute request and keeps a private poll
capability; the QR carries a different scan capability. Only an authenticated
mobile bearer session can approve, and polling consumes the completed login
exactly once. Challenges are stored in MariaDB so polling works across API
replicas.
Launcher clients may authenticate with either ARCADE_AUTH_TOKEN or a named token created in the admin UI. Keep admin access LAN/VPN-only unless you add TLS and stronger authentication.
Password reset emails use these optional SMTP settings:
ARCADE_SMTP_HOST=smtp.example.com
ARCADE_SMTP_PORT=587
ARCADE_SMTP_USERNAME=...
ARCADE_SMTP_PASSWORD=...
ARCADE_SMTP_FROM=arcadelauncher@example.com
ARCADE_SMTP_TLS=1
If SMTP is not configured, the reset page still creates a temporary reset URL and displays it after request. That fallback is for LAN/recovery use only.
The Game Requests board is part of this server. It lets logged-in launcher
users request game releases they'd like added to the catalog, search IGDB to pick
the exact release, and upvote each other's requests; admins triage the board
(approve / fulfill / decline) from the admin UI at /admin/requests.
It was once a separate ArcadeLauncher-Requests binary on its own port (8723);
it is now a namespaced module (mod requests_app, the one exception to the
include! layout — see CLAUDE.md) mounted via
nest_service("/requests", …) on the public app. The standalone repo is dormant
origin history and the :8723 systemd unit is retired.
- Reuses this server's MariaDB pool and launcher accounts. It authenticates
against
admin_users+launcher_tokens(so the unified client's Requests tab uses the launcher's own bearer token) and reads IGDB credentials fromserver_settings— no duplicated secrets. It owns only thegame_requests/request_votes/request_ratingstables and never modifies other tables. - No extra process, port, or env file — it ships in the single
arcadelauncher-serverbinary and shares its config and deploy path.
GET /api/health
Returns server status.
GET /api/catalog
Returns the catalog entries without per-file manifests.
GET /api/games/{id}/manifest
Returns the file list for one game:
- relative path
- byte size
- SHA-256 hash
- download URL
- launch target relative path
GET /files/{id}/{relative-path}
Downloads a game file. Supports Range: bytes=start-end.
This is a LAN/private prototype. Before exposing it outside your network, add real auth, TLS, signed URLs, audit logging, and per-user entitlements.