How bitsnbytes25/warlock works
Warlock is a web-based manager for game servers distributed across Linux hosts. An administrator signs in, registers SSH-reachable hosts, selects a game to install, then manages its services, configuration, files, firewall, backups, and scheduled work through the interface. The server resolves application and host state, runs commands locally or over SSH, and stores account and historical metric data. The README documents several product capabilities whose route implementations were not excerpted; those branches are included as documented features, while detailed internal links are limited to relationships visible in the supplied source evidence.
Main entry points: app.js Web application · cmd_runner.mjs Command execution · application_install.js Game installation · service_configure.js Service management
Components 31
Web access
- Web application
app.js - Session validation
libs/validate_session.mjs - Game installation
routes/application_install.js - Host management
routes/host_add.js - Service management
routes/service_configure.js - File management
routes/api/file.js - Firewall and ports
routes/api/firewall.js - Backups and restore
routes/application_backups.js
Applications and hosts
- Application catalog
libs/get_all_applications.mjs - Host state
libs/host_data.mjs - Host application validation
libs/validate_host_application.mjs - Host service validation
libs/validate_host_service.mjs
Remote operations
- Command execution
libs/cmd_runner.mjs - Command streaming
libs/cmd_streamer.mjs - Command cache
libs/cache.mjs - Scheduled jobs
libs/cron.mjs
Metrics and persistence
- Service metrics polling
tasks/metrics_poll.mjs - Host metrics polling
tasks/host_metrics_poll.mjs - Metric aggregation
tasks/metrics_merge.mjs - Service metrics
libs/get_application_metrics.mjs - Metric change detection
libs/diff_objects.mjs - SQLite data store
db.js - Command profiler
libs/cmd_profiler.mjs - Logging
libs/logger.mjs - Usage analytics
libs/push_analytics.mjs
Game runtime
- Game service runtime
scriptlets/warlock/base_service.py - Game application base
scriptlets/warlock/base_app.py - Game configuration
scriptlets/warlock/base_config.py - Service templates
scriptlets/warlock/http_service.py
Other components
- Administrator
- Managed Linux host
Connections 38
- Administrator → Web application: uses
README.md - Web application → Session validation: protects routes
app.js - Web application → Game installation: routes requests
app.js - Web application → Host management: routes requests
app.js - Web application → Service management: routes requests
app.js - Game installation → Application catalog: installs games
README.md - Host management → Host state: manages hosts
README.md - Service management → Host service validation: validates service
routes/service_configure.js - Host service validation → Application catalog: looks up apps
libs/validate_host_service.mjs - Host service validation → Host state: loads host
libs/validate_host_service.mjs - Game installation → Host application validation: validates install
- Host application validation → Application catalog: looks up apps
libs/validate_host_application.mjs - Game installation → Command streaming: streams install
- Game installation → Command execution: runs commands
- Service management → Command execution: runs commands
- File management → Managed Linux host: manages files
README.md - Firewall and ports → Managed Linux host: manages firewall
README.md - Backups and restore → Managed Linux host: stores backups
README.md - Command execution → Managed Linux host: executes remotely
libs/cmd_runner.mjs - Command execution → SQLite data store: checks host
libs/cmd_runner.mjs - Command execution → Command cache: caches results
libs/cmd_runner.mjs - Command execution → Command profiler: records timings
libs/cmd_runner.mjs - Web application → Service metrics polling: starts polling
app.js - Web application → Metric aggregation: starts aggregation
app.js - Service metrics polling → Application catalog: loads applications
tasks/metrics_poll.mjs - Service metrics polling → Service metrics: collects metrics
tasks/metrics_poll.mjs - Metric aggregation → SQLite data store: writes metrics
tasks/metrics_merge.mjs - Service metrics → Command execution: collects remotely
libs/get_application_metrics.mjs - Service metrics → SQLite data store: reads metrics
libs/get_application_metrics.mjs - Service management → Metric change detection: checks changes
- Metric change detection → Service metrics: compares metrics
- Web application → SQLite data store: initializes schema
app.js - Web application → Usage analytics: records usage
app.js - Service management → Scheduled jobs: clears schedules
- Game service runtime → Game application base: uses base
scriptlets/warlock/base_service.py - Game service runtime → Managed Linux host: controls systemd
scriptlets/warlock/base_service.py - Game service runtime → Game configuration: applies config
- Service templates → Game service runtime: extends runtime
scriptlets/warlock/http_service.py