Main Sequence Calculator is a fast, mobile-first production calculator and research planner built for the Steam automation game Main Sequence. Available live at mscalc.elvenide.com and open-sourced on GitHub, it helps players plan multi-target factories, calculate exact building and power requirements, and trace the research technologies needed for any production chain.
Screenshots
Multi-Target Production Breakdown (Desktop)

Factory Summary & Interactive Required Research Tree

Mobile-First Responsive Layout

Key Features
- Recursive Multi-Target Production Breakdown: Add one or more target items to compute every intermediate ingredient, producing building, logistic belt, and raw resource all the way down the production chain.
- Items/Min vs Buildings Mode: Switch any target item between desired
Items / Minand desiredBuildings. Entering a value in either field automatically calculates the other. - Factory Summary & Power Generation: Aggregates total buildings by type, raw resource rates per minute, total belts, peak and average power draw (MW), byproducts, and the required number of Solar Panels (Mk. 1–3) or Reactors.
- Interactive Filtered Research Tree: Displays only the researches required for your active production plan, supporting pan, mouse-wheel zoom, mobile pinch-to-zoom, and tap-to-mark-completed tracking.
- Deep Production Settings: Configure conveyor belt tiers (Mk. 1–3), ore mining buildings and rates, gas extractor rates, crafting speed multipliers, power sources and solar efficiency, enriched ore refining, and per-item alternate or synthesis recipes.
- Shareable Compact URLs: Syncs all target items and non-default production settings live into clean, URL-safe query parameters with a one-click Share button.
- Authentic Extracted Game Data & Icons: Extracts items, recipes, buildings, belt speeds, power stats, research trees, and sRGB-calibrated icons directly from Main Sequence game files via a reusable offline extraction pipeline.
- Dark & Light Themes: Ships with a near-black dark theme accented in Main Sequence amber-orange by default, alongside a light theme toggle.
Technology Stack
- Frontend: React 19, TypeScript, Vite, Tailwind CSS v4, and shadcn/ui (Radix UI + Lucide icons)
- Hosting: 100% static frontend SPA deployed via GitHub Actions to Cloudflare Pages (Direct Upload)
- Asset Extraction: Node.js offline UE 5.7
.usmapreflection generator and .NET 10 /CUE4Parseextractor
Local Setup
To run the calculator locally for development:
-
Clone the Repository:
git clone https://github.com/Elvenide/MainSequenceCalculator.git cd MainSequenceCalculator -
Install Dependencies:
npm install -
Start Development Server:
npm run dev
To build the static production bundle (dist/), run npm run build. On Windows with Node.js, the .NET 10 SDK, and a local Steam installation of Main Sequence, you can also refresh game data and icons after game updates using npm run extract.