Skip to content

JamboChen/endfield-calc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

187 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Endfield Calc — Production Chain Calculator for "Arknights: Endfield"

中文

Live Demo Discord License

Overview

Endfield Calc is a production chain calculator for Arknights: Endfield that helps players plan resource requirements, production ratios, and facility needs—including circular production loops.

Key Features

🎯 Core Functionality

  • Multi-target planning with automatic dependency resolution
  • Smart recipe selection with circular dependency handling
  • Real-time calculation of facility counts and power consumption
  • Manual raw material marking for flexible supply chain control

📊 Dual View Modes

Table View

  • Comprehensive production breakdown with all metrics
  • Interactive hover: Highlight upstream dependencies on mouse hover

Table View Interaction

Dependency Tree View

Two visualization modes for different planning needs:

Recipe View: Aggregates facilities by recipe type, shows total requirements

  • Best for overall recipe optimization and material flow overview

Facility View: Shows each individual facility as a separate node

  • Best for detailed capacity planning and load balancing
  • Displays capacity utilization and precise material allocation

Tree Views

Both modes feature interactive flow diagrams, cycle visualization, and flow rate labels.

Technology Stack

  • Framework: React 18 + TypeScript + Vite
  • Visualization: React Flow with Dagre layout
  • UI: Radix UI + Tailwind CSS
  • i18n: react-i18next

Getting Started

Try Online

Visit https://JamboChen.github.io/endfield-calc

Local Development

git clone https://github.com/JamboChen/endfield-calc.git
cd endfield-calc
pnpm install
pnpm run dev

Docker

Step 1: Build the image via GitHub Actions

The image is hosted on GitHub Container Registry and must be built first. Go to your repository on GitHub:

ActionsDocker Build and PushRun workflow

This pushes the image to ghcr.io/your_username/endfield-calc:latest.

Step 2: Run with Docker Compose

Edit compose.yaml and replace the placeholder values:

services:
  endfield-calc:
    image: ghcr.io/your_username/endfield-calc:latest
    ports:
      - "your_port:80"
    restart: unless-stopped

Then run:

docker compose up -d

Build locally

If you prefer to build the image on your own machine instead of using GitHub Actions:

git clone https://github.com/JamboChen/endfield-calc.git
cd endfield-calc
docker compose -f - up -d <<EOF
services:
  endfield-calc:
    build: .
    ports:
      - "your_port:80"
    restart: unless-stopped
EOF

Or edit compose.yaml to replace image: with build: . and run docker compose up -d --build.

Contributions welcome! See CONTRIBUTING.md for guidelines.

License

MIT License - see LICENSE


Note: Fan-made tool, not officially affiliated with Arknights: Endfield.

About

Production chain calculator for Arknights: Endfield | 明日方舟:终末地 工厂数值计算器

Resources

License

Contributing

Stars

Watchers

Forks

Contributors

Languages