I'll build a Satisfactory-inspired production optimizer with automated bill-of-materials calculation, machine layout, and animated factory visualization. Let me start by exploring the project structure.
Tailwind v4 with Vite. Let me check the remaining files and install the icon library.
Now let me build the app. First, updating index.html with the proper title and industrial fonts.
Now the global stylesheet with the industrial theme, belt-flow animations, and custom scrollbars.
Now the core type definitions.
Now the item database with color-coded badges.
Now the recipe database with machine definitions and alternate recipes.
Now the preset factory templates.
Now the production calculator engine — the heart of the app.
Now the layout engine — this handles the auto-arrangement that minimizes belt clutter via layered columns, barycenter ordering, and lane-routed conveyor corridors.
Fixing the unused variable.
Now the persistence layer for saves and draft state.
Now shared UI primitives (item badges, machine icons, toggles).
Now the item catalog sidebar.
Now the control bar with the adjustable output rate slider.
Now the centerpiece — the interactive factory canvas with animated conveyor belts, machines, pan/zoom, and tooltips.
Let me fix a few rendering issues in the canvas (icon positioning, badge text color, opacity value).
Now the production report panel with Plan / Raw / Power tabs.
Now the modals for templates and save management.
Now the main App component that wires everything together.
Let me clean up the Hero's second button since it had no action.
Now let me build to verify everything compiles.
Build succeeds. Now let me refine the canvas: re-fit only when the target changes (not during rate slider drags), add a selected-machine highlight, and fix text overflow.
Now the selected-machine ring and safer text truncation in the canvas:
Let me improve the save logic to preserve multiple named factories, and fix the control bar label for raw targets.
Let me re-read the canvas file to verify correctness before the final build.
Let me add a zoom threshold for belt rate badges so the view stays clean when zoomed out, and add lane info isn't needed. Editing the edge badge render:
Two refinements: shorter stage titles to prevent overlap, and avoid window.confirm (which can be blocked in sandboxed frames).
Let me fix the belt animation to be seamless (dashoffset must be a multiple of the dash period) and add a usage hint to the canvas.
Let me do a final review of the layout engine to verify the lane routing logic.
The layout engine checks out. Let me run the final build.
The build is clean. Let me verify the final project structure.
The FICSIT Optimizer is complete and builds successfully. Here's what I built:
Core Engine
src/data/ — A faithful Satisfactory item tree (iron/copper/steel/oil chains) spanning 33 items from raw ores up to the Assembly Director System, including machine specs (power, base rates) and 3 alternate recipes (Cast Screw, Iron Wire, Solid Steel Ingot).
src/lib/calculator.ts — Recursively computes the full bill of materials for any target item & rate: exact machine counts, underclocked clock speeds (no overproduction), per-input rates at every stage, byproduct output, total power (with the realistic clock^1.3219 scaling), and raw resource extraction totals.
src/lib/layout.ts — The clutter-minimizing layout engine: production stages become columns (raw → final), barycenter ordering aligns machines to reduce belt crossings, and conveyor lanes are interval-partitioned within each column gap so belts never overlap each other. Parallel feeds are spread into splitter/manifold-style ports.
Experience
- Factory canvas — pan/zoom blueprint grid with animated, color-coded conveyor belts, per-belt flow-rate badges, stage bands, hover-highlighting of connected belts/machines, click-to-pin, tooltips with full I/O rates, and a building legend.
- Adjustable outputs — logarithmic rate slider, precise numeric input, and ×2/÷2 shortcuts; every change instantly recomputes the whole plan.
- Production Report — three tabs: Plan (staged machine breakdown with inline alt-recipe swapping and cross-highlighting to the canvas), Raw (miner counts, clock speeds, recommended belt tiers), and Power (total draw, per-building breakdown, suggested coal/fuel generators).
- Modular & savable — save/load/duplicate/rename factories, six deployable templates (including a full 1×ADS/min endgame build), draft autosave to localStorage.
- Industrial FICSIT aesthetic — dark factory theme, safety-orange accents, Rajdhani + JetBrains Mono typography, animated belts, and a polished catalog/search UI.
Files built: index.html, src/index.css, src/types.ts, src/data/items.ts, src/data/recipes.ts, src/data/templates.ts, src/lib/calculator.ts, src/lib/layout.ts, src/lib/storage.ts, src/components/ui.tsx, src/components/Catalog.tsx, src/components/ControlBar.tsx, src/components/FactoryCanvas.tsx, src/components/ReportPanel.tsx, src/components/Modals.tsx, src/App.tsx