How tmaartent/satisfactoryledger works
Satisfactory Ledger imports game catalog data and save-file snapshots, analyzes factory material flows, and presents findings and proposed factory layouts in a web app. Its main workflow runs from save import through queued analysis and back to the World API for map and factory views. Catalog browsing/import, 3D areas, arrangement planning, and AI explanations are distinct product branches. The README documents several cross-service relationships; sampled source confirms the analysis service’s World HTTP client and queue setup, but not the handlers’ solver calls.
Main entry points: SatisfactoryLedger.World World API · app.ts Web app shell · AnalysisService.cs Flow analysis · Imports Catalog imports
Components 24
Game catalog
- Catalog imports
src/Modules/Catalog/SatisfactoryLedger.Catalog/Imports - Catalog data
src/Modules/Catalog/SatisfactoryLedger.Catalog.Domain/GameObjects - Catalog store
src/Modules/Catalog/SatisfactoryLedger.Catalog/Persistence/CatalogDbContext.cs - Catalog queries
src/Modules/Catalog/SatisfactoryLedger.Catalog/Queries/CatalogQueries.cs - Catalog browsing
src/Modules/Catalog/SatisfactoryLedger.Catalog/Browsing
World ledger
- Save import
src/Modules/World/SatisfactoryLedger.World/Snapshots/ImportSaveHandler.cs - World model
src/Modules/World/SatisfactoryLedger.World.Domain - World snapshots
src/Modules/World/SatisfactoryLedger.World/Snapshots - Flow simulation
src/Modules/World/SatisfactoryLedger.World.Domain/Flow - Layout planning
src/Modules/World/SatisfactoryLedger.World.Domain/Arrangement - World API
src/Modules/World/SatisfactoryLedger.World
Analysis service
- Flow analysis
src/SatisfactoryLedger.AnalysisService/AnalysisService.cs
Web application
- Web app shell
web/src/app/app.ts - World map
web/src/app/world/map/map-page.ts - Factory view
web/src/app/world/factory-page.ts - 3D area
web/src/app/world/area/area-page.ts - Arrangement view
web/src/app/world/arrangement/arrangement-page.ts - Catalog page
web/src/app/catalog/catalog-page.ts
AI interfaces
- MCP tools
src/SatisfactoryLedger.Mcp - Finding assistant
src/SatisfactoryLedger.Assistant
Other components
- Player
- Game files
- RabbitMQ
- Local or Claude model
Connections 30
- Player → Catalog imports: imports data
- Game files → Catalog imports: provides game data
- Catalog imports → Catalog data: translates entries
- Catalog data → Catalog store: persists
- Catalog queries → Catalog store: reads
- Catalog browsing → Catalog queries: queries
- Player → Save import: imports save
- Game files → Save import: supplies save
- Save import → World model: builds snapshot
- World model → World snapshots: stores snapshot
- World snapshots → RabbitMQ: queues analysis
- RabbitMQ → Flow analysis: dispatches work
src/SatisfactoryLedger.AnalysisService/AnalysisService.cs - Flow analysis → World API: requests and stores results
- Flow analysis → Flow simulation: simulates flows
- Flow analysis → Layout planning: proposes layouts
- World API → World snapshots: serves snapshot data
- Player → Web app shell: uses
- Web app shell → World map: routes to
- Web app shell → Factory view: routes to
- Web app shell → 3D area: routes to
- Web app shell → Arrangement view: routes to
- Web app shell → Catalog page: routes to
- World map → World API: loads world
- Factory view → World API: loads factory
- 3D area → World API: loads area
- Arrangement view → World API: requests layout
- Catalog page → Catalog browsing: browses catalog
- MCP tools → World API: reads world facts
- Finding assistant → MCP tools: gets traced facts
- Finding assistant → Local or Claude model: requests explanation