How lovelyzy7/lunar-server works
Lunar Server combines the lunar-tear game server, a FastAPI administration panel, and patch/master-data utilities. The main operator workflow is to enter the panel, select a player, perform an editing or upgrade action, and persist changes to game data; backups protect mutating operations. The server also provides gameplay, account authentication, and a resource CDN, while patch tools handle client and game-data assets. Links for unsampled server and panel subsystems are limited to capabilities and relationships explicitly documented in the README.
Main entry points: lunar-tear Game Server · app.py Panel App · routes Player Editors · grant_service.py Grant Shim Client
Components 21
Admin Panel
- Panel App
panel/web/app.py - Panel Access
panel/web/services/auth_service.py - Player Editors
panel/web/routes - Player Profile
panel/web/routes/profile.py - Settings Admin
panel/web/routes/settings.py - Editing Services
panel/web/services - Grant Shim Client
panel/web/services/grant_service.py - Backup Service
panel/web/services/backup_service.py - Event Manager
panel/web/services/event_service.py - Panel Config
panel/web/config.py - Grant Shim
panel/tools/grant/src
Game Services
- Game Server
server/cmd/lunar-tear - Gameplay Services
server/internal/service - Quest Flow
server/internal/questflow - Gacha
server/internal/gacha - Master Data
server/internal/masterdata - Auth and CDN
server/cmd
Player Data
- Game Database
server/internal/store/sqlite - Game Assets
Patch Tools
- Client and Data Patches
panel/scripts
Other components
- Operator
Connections 22
- Operator → Panel App: uses
README.md - Panel App → Player Editors: routes requests
panel/web/app.py - Panel App → Settings Admin: routes requests
panel/web/app.py - Player Editors → Player Profile: includes profile
panel/web/app.py - Player Profile → Editing Services: uses
panel/web/routes/profile.py - Player Editors → Editing Services: uses
panel/web/routes/upgrade_manager.py - Panel App → Panel Access: checks access
panel/web/app.py - Settings Admin → Panel Access: manages credentials
panel/web/routes/settings.py - Grant Shim Client → Backup Service: backs up before writes
panel/web/services/grant_service.py - Grant Shim Client → Grant Shim: invokes
panel/web/services/grant_service.py - Operator → Client and Data Patches: runs patch tasks
README.md - Operator → Game Server: starts server
README.md - Game Server → Auth and CDN: starts services
README.md - Game Server → Gameplay Services: serves gameplay
- Game Server → Quest Flow: handles quests
- Game Server → Gacha: handles draws
- Gameplay Services → Master Data: uses game data
- Game Server → Game Database: persists player data
- Grant Shim → Game Database: updates player data
- Event Manager → Master Data: reads event data
panel/web/services/event_service.py - Client and Data Patches → Game Assets: patches assets
README.md - Panel App → Panel Config: configures paths
panel/web/app.py