How quanq026/akaine works
Akaine is a self-hostable Arcaea private-server platform paired with version-specific Android patches and an ADB semantic CLI. The player workflow is client authentication, game/API requests, account and gameplay processing, then persistence or content delivery; administrators manage accounts and content through the web interface, while Link Play has a separate realtime service. The repository also includes Android package verification. Unsampled server feature modules are retained at their exact directories based on the README, but their internal call paths are not inferred.
Main entry points: main.py HTTP application · transport.py CLI transport · sql.py SQLite access · cli_runtime73.cpp CLI runtime
Components 23
Game server
- HTTP application
server/main.py - Game API
server/api - Game routes
server/server - Session auth
server/server/auth.py - Accounts and gameplay
server/core/user.py - Scores and potential
server/core/score.py - Bundles and downloads
server/core/bundle.py - Client compatibility
server/core/client_compat.py - Dynamic pack catalogue
server/core/client_packs.py - SQLite access
server/core/sql.py - Admin web
server/web/index.py
Server services
- Link Play transport
server/linkplay_server/main.py - Discord bot
server/tools/discord_bot.py - Protected assets
cloudflare/protected-assets/worker.mjs
Client tools
- APK verification
akaine_build/android.py - CLI transport
akaine_cli/transport.py - CLI protocol
akaine_cli/protocol.py
Android patches
- Native CLI bridge
patches/shared/runtime/semantic/native/cli_bridge.h - CLI runtime
patches/arcaea-7.3.1-arm64/cli/cli_runtime73.cpp - Native chart support
patches/shared/native/akfc_loader.cpp - Client feature patches
patches/arcaea-7.3.1-arm64/native
Other components
- Player client
- Administrator
Connections 22
- Player client → HTTP application: sends requests
- HTTP application → Game API: registers routes
server/main.py - HTTP application → Game routes: registers routes
server/main.py - Player client → Session auth: authenticates
- Session auth → Accounts and gameplay: authenticates user
server/server/auth.py - Accounts and gameplay → SQLite access: reads and writes
server/core/user.py - Scores and potential → SQLite access: persists scores
- HTTP application → Bundles and downloads: serves downloads
server/main.py - Bundles and downloads → Client compatibility: checks compatibility
- Dynamic pack catalogue → Client compatibility: checks version
server/core/client_packs.py - Administrator → Admin web: manages server
- Admin web → SQLite access: queries records
server/web/index.py - Player client → Link Play transport: joins sessions
- Player client → Discord bot: uses bot features
- Player client → Protected assets: requests protected assets
- Player client → CLI transport: issues ADB commands
- CLI transport → CLI protocol: validates messages
akaine_cli/transport.py - CLI transport → Native CLI bridge: communicates with
- CLI runtime → Native CLI bridge: uses bridge
patches/arcaea-7.3.1-arm64/cli/cli_runtime73.cpp - CLI runtime → Client feature patches: implements features
- Player client → Native chart support: plays fan charts
- APK verification → Client feature patches: prepares client input