How mrhyree/moffy-launcher works
moffy is a self-hosted modded-Minecraft service: an administrator provisions and supervises servers through an embedded panel, while players connect with a desktop launcher that authenticates, synchronizes the server’s modpack, installs game prerequisites, and launches Minecraft. The graph includes those workflows, account and content-management capabilities, and the shared game-installation layer. Some admin and launcher subsystems are represented from README descriptions and the file tree rather than sampled implementations; those relationships cite the README or are marked unverified.
Main entry points: main.rs Daemon entry · App.vue Panel application · commands.rs Launcher commands · client.rs Minecraft client install
Components 26
Daemon and services
- Daemon entry
crates/admin-core/src/main.rs - HTTP API
crates/admin-core/src/api - Accounts and auth
crates/admin-core/src/users.rs - SQLite state
crates/admin-core/src/db.rs - Server instances
crates/admin-core/src/instances.rs - Process supervision
crates/admin-core/src/supervisor.rs - Modpack management
crates/admin-core/src/modpack.rs - Mod sources
crates/admin-core/src/sources.rs - Backups and files
crates/admin-core/src/backups.rs - Game authentication
crates/admin-core/src/api/yggdrasil.rs
Admin panel
- Panel application
web/src/App.vue - Panel sign-in
web/src/pages/Auth.vue - Management screens
web/src/pages - Panel state and API
web/src/lib/store.ts
Player launcher
- Launcher commands
crates/launcher-client/src/commands.rs - Launcher screens
web-launcher/src/App.vue - Pack synchronization
crates/launcher-client/src/backend/sync.rs - Daemon connection
crates/launcher-client/src/backend/api.rs - Game preparation
crates/launcher-client/src/backend/game.rs
Minecraft tooling
- Minecraft client install
crates/moffy-mc/src/client.rs - Forge installation
crates/moffy-mc/src/forge_client.rs - Java runtime install
crates/moffy-mc/src/java.rs - Server installation
crates/moffy-mc/src/server.rs - Verified downloads
crates/moffy-mc/src/http.rs
Other components
- Administrator
- Player
Connections 30
- Administrator → Panel application: uses panel
README.md - Panel application → Panel sign-in: shows auth
web/src/App.vue - Panel application → Panel state and API: checks session
web/src/App.vue - Panel application → Management screens: routes screens
web/src/App.vue - Panel sign-in → Panel state and API: submits credentials
web/src/pages/Auth.vue - Panel state and API → HTTP API: calls endpoints
- HTTP API → Accounts and auth: authenticates users
crates/admin-core/src/api/auth.rs - Accounts and auth → SQLite state: reads and writes
crates/admin-core/src/users.rs - Administrator → Daemon entry: configures daemon
README.md - Daemon entry → Server instances: manages servers
- Daemon entry → Process supervision: supervises servers
- Server instances → Modpack management: assigns modpacks
- Modpack management → Mod sources: imports catalog content
- Daemon entry → Backups and files: provides file and backup tools
- Player → Launcher screens: connects and signs in
README.md - Launcher screens → Launcher commands: invokes commands
web-launcher/src/App.vue - Launcher commands → Daemon connection: requests daemon data
crates/launcher-client/src/commands.rs - Launcher commands → Pack synchronization: synchronizes pack
crates/launcher-client/src/commands.rs - Launcher commands → Game preparation: starts game workflow
crates/launcher-client/src/commands.rs - Daemon connection → HTTP API: uses daemon API
README.md - Pack synchronization → Daemon connection: fetches manifest and files
crates/launcher-client/src/backend/sync.rs - Game preparation → Minecraft client install: prepares Minecraft
- Minecraft client install → Forge installation: installs Forge variants
crates/moffy-mc/src/client.rs - Minecraft client install → Java runtime install: ensures Java runtime
crates/moffy-mc/src/client.rs - Server installation → Java runtime install: ensures Java runtime
crates/moffy-mc/src/server.rs - Minecraft client install → Verified downloads: downloads game files
crates/moffy-mc/src/client.rs - Forge installation → Verified downloads: downloads installer files
crates/moffy-mc/src/forge_client.rs - Java runtime install → Verified downloads: downloads runtime
crates/moffy-mc/src/java.rs - Server installation → Verified downloads: downloads server files
crates/moffy-mc/src/server.rs - HTTP API → Game authentication: serves game authentication