Skip to content

Architecture

André Borchert edited this page Jun 12, 2026 · 20 revisions

Architecture

The project is built around two compiled Swift applications and local DuckDB databases on both sides.

Internet
  |
  v
nginx public edge
  |-- HTTPS: pummelchen.91.99.176.243.nip.io
  |-- HTTP/IP redirect-only compatibility access
  |-- static website
  |-- release downloads
  |-- /api/v1/* proxy
  |-- /h3/v1/control proxy
  |
  v
PummelchenServer on 127.0.0.1:8787
  |-- authoritative DuckDB
  |-- release state
  |-- mod validation state
  |-- client status state
  |-- control events
  |-- world/reset/release jobs
macOS player machine
  |
  v
PummelchenClient.app
  |-- GUI status
  |-- manual sync
  |-- release history
  |-- local DuckDB inventory
  |-- background sync helper
  |
  v
Minecraft installation
  |-- mods
  |-- resource packs
  |-- shader packs
  |-- config files

Responsibilities

nginx

  • Serves static website pages.
  • Serves release downloads and large files.
  • Proxies API requests to the Swift server.
  • Provides access logs and cache headers.
  • Terminates the Let's Encrypt TLS certificate for the nip.io hostname.
  • Redirects the nip.io HTTP vhost to HTTPS.
  • Remains the public entrypoint.

PummelchenServer

  • Owns authoritative project state in DuckDB.
  • Exposes versioned APIs.
  • Receives client status and inventory reports.
  • Creates and validates release metadata.
  • Emits table-ready website data.
  • Coordinates Minecraft server operations through narrow, auditable jobs.

PummelchenClient

  • Shows sync health and current release status.
  • Runs background sync.
  • Validates checksums before replacing files.
  • Tracks local inventory in DuckDB.
  • Receives control messages from the server.
  • Gives players a manual repair/sync path through the GUI.

Live Network Shape

  • Public HTTPS: https://pummelchen.91.99.176.243.nip.io
  • Public HTTP compatibility redirects only; canonical access is HTTPS.
  • Public Minecraft: 91.99.176.243:25565
  • Internal Swift API: 127.0.0.1:8787
  • Internal RCON: local only

Design Rules

  • DuckDB is local project state; it is not exposed directly over TCP.
  • Clients communicate with the server through versioned APIs.
  • Large downloads are served by nginx, not by the Swift server process.
  • The server binds to localhost by default.
  • All release artifacts must be checksummed.
  • Client file writes must be atomic where practical.
  • Dangerous server operations must be explicit, logged, and reversible where practical.

Clone this wiki locally