Skip to content

Architecture

Codex edited this page Jun 4, 2026 · 20 revisions

Architecture

Runtime Layout

  • /var/minecraft_mods: project control plane, scripts, SQLite DB, nginx config, cron files, systemd units, monitoring config, status-site source/output, and client log uploads.
  • /var/minecraft_26.1.2: active Minecraft server instance, server mods, datapacks, generated client package, ZIP, MRPack, and DMG symlinks.
  • http://91.99.176.243:7788/: nginx static status/install site.
  • 127.0.0.1:7791: localhost-only Client Doctor upload receiver, proxied by nginx at /client-logs/upload.

Data Flow

  1. Mod URLs are imported into SQLite.
  2. Metadata resolvers query CurseForge, Modrinth, NeoForge, or other configured sources.
  3. Candidate files are downloaded to the active server's codex-downloads folders.
  4. Server-side candidates are installed one at a time and boot-tested.
  5. Passing files are copied into the server and client package.
  6. Failing files are quarantined under mods.failed/<test-label>.
  7. Client ZIP, MRPack, client sync manifest, and status page are rebuilt.
  8. Mac clients pull changed files from the VPS with SHA256 validation.

Main Components

  • scripts/moddb.py: SQLite schema and import/export CLI.
  • scripts/import_url_batch.py: URL batch importer.
  • scripts/process_url_batch.py: manual batch resolver/tester.
  • scripts/daily_update.py: daily safe update pipeline and package rebuild.
  • scripts/server_ops.py: multi-version server metadata and profiling tools.
  • scripts/generate_status_site.py: static web page and client sync manifest.
  • scripts/live_stats_feed.py: 30-second live stats JSON writer.
  • scripts/client_log_receiver.py: token-protected client diagnostic uploader.
  • client-package/Install Mods.command: managed macOS installer payload.
  • client-package/tools/pummelchen-auto-update.sh: per-file client updater.
  • client-package/tools/pummelchen-client-doctor.sh: crash/log collector.

Core Invariants

  • SQLite is the source of truth.
  • Public updates are shown only after a successful tested change.
  • Client package and server files stay in sync.
  • The public web page must not expose secrets.
  • Runtime logs and live package binaries are generated artifacts, not source.

Clone this wiki locally