Foxhole Manager
Game ToolsLogisticsWeb AppSvelteC#

Foxhole Manager

2026-11-17

What it is

Foxhole Manager is a regiment & logistics planning app for the game Foxhole: stockpiles, orders, production, transport, a tech-tree view, and the live war map, all in one place. It’s built for the logistics side of a regiment rather than the front line. The goal is to answer “what do we have, what’s short, and what’s being made right now” without digging through spreadsheets or Discord threads, and to stay fast enough to update between matches.

It ships two ways: as a web app and as a desktop app (via Tauri) for people who want it running alongside the game, plus a Discord bot so regiment members can check stock without opening a browser at all.

Tech stack

The project is a monorepo split into a frontend and a backend, each managing its own dependencies.

Frontend: Svelte 5 (runes) and TypeScript, built as an SPA. Data fetching runs through TanStack Query against a client generated by Orval straight from the backend’s Swagger spec, so the API contract stays in sync automatically. Real-time sync (stockpile updates, production state) comes over SignalR, and the war map is rendered with pixi.js and d3. The same codebase is packaged as a native desktop app with Tauri.

Backend: .NET 9 split into three projects: a REST API with SignalR hubs, a shared library (EF Core + Npgsql/PostgreSQL, entities, migrations, business logic) consumed identically by the API and the Discord bot so permissions stay consistent across both, and a separate Discord gateway worker so a bot crash or gateway stall can’t take the web API down with it. Background work and cross-service messaging run through MassTransit and RabbitMQ, object storage (attachments, map assets) goes to AWS S3/Cloudflare R2, and auth is cookie-based with Steam OpenID as the default sign-in and optional Discord OAuth.

Ops: deployed via Coolify as Docker containers (API, Discord worker, RabbitMQ), with the desktop build shipped separately through Tauri’s updater.

Features

Every regiment ends up juggling the same questions: what’s stocked, what’s short, and what’s being made right now. The stockpile manager answers the first two at a glance: every regiment stockpile in one view, broken down by item category, with critical and low thresholds surfaced automatically instead of buried in a spreadsheet.

Stockpile Manager: inventory across every base, sorted by shortage so the most urgent needs float to the top.

On the production side, each hex gets its own view of what’s running: MPF queues, facility slots, and refinery stock, so a logistics officer can see exactly what’s in the pipeline and what still needs a queue started.

Production Requests: MPF and facility queues per hex, plus refinery materials on hand.

To keep contributions visible, the materials ledger tracks who’s banking what into the regiment’s stockpiles and ranks it per resource, a small bit of gamification that keeps logistics players motivated when their work doesn’t show up on the front-line scoreboard.

Materials Ledger: a leaderboard of who's banked the most into regiment stockpiles, ranked per resource.

More features are landing as the project moves through beta.