Community-driven dataset for Star Resonance life skills, crafting materials, and currency costs (Focus, Luno, Homestead). Includes mining, crafting, and vendor prices from CN and EN sources. Star Resonance life skill & crafting data: materials, Focus cost, and currency prices.
Community-driven dataset for Star Resonance covering life skills, materials, stamina (Focus) usage, and currency costs.
Includes data from in-game observations and Chinese community sources.
A community-driven crafting database and cost optimizer for Star Resonance, designed to help players explore material recipes, calculate costs, and find the most efficient crafting paths.
This project combines a static HTML interface for browsing crafting data with Python automation scripts that dynamically generate indexes and optimize crafting costs using CSV data.
-
Displays all crafting, shop, and material data from CSV files automatically.
-
Click on any item name to open a modal popup showing:
- What itβs made from π¨
- Where itβs used π§©
- Shop prices πͺ
- Best purchase option π‘
- Automatically detects and loads all CSV files in the
/datafolder. - Builds
index.jsondynamically with GitHub Actions. - Parses recipes, calculates costs, and outputs best/worst value comparisons.
-
Reads and analyzes all crafting recipes.
-
Identifies lowest and highest-cost items across all currencies.
-
Outputs results to:
- Console log (for easy CI monitoring)
scripts/best_worst_recipes.csvfor records
π¦ Star-Resonance-Crafting-Guide
βββ index.html # Main web interface
βββ data/ # All CSV data lives here
β βββ artisanry.cvs
β βββ shop_prices.cvs
β βββ currencies.cvs
β βββ index.json # Auto-generated file list
βββ scripts/
β βββ craft_optimizer.py # Analyzes crafting costs
β βββ generate_index_json.py # Generates data/index.json
β βββ best_worst_recipes.csv # Summary file (generated)
βββ .github/workflows/
β βββ crafting.yml # GitHub Actions workflow
βββ README.md
action,cin,from,cout,to,cost
craft,28x,Pine Timber,10x,Charcoal,0F
craft,2x,Resin,15x,GemWax,20F
buy,,Exchange,1x,Charcoal,600Laction,from,to,cost
define,L,Luno Coin,Used to buy items from Exchange stores
define,F,Focus,Used as stamina to craft
define,H,Homestead Coin,Used in Homestead storeScans /data for .csv or .cvs files and writes:
{
"files": ["artisanry.cvs", "currencies.cvs", "shop_prices.cvs"]
}- Loads all CSVs dynamically (no manual imports needed).
- Detects delimiters automatically (
|or,). - Calculates per-item costs and identifies the most/least expensive recipes.
- Saves summary to
best_worst_recipes.csv.
Workflow file: .github/workflows/crafting.yml
- π§± Setup Python environment
- π Generate
index.jsonfrom CSVs - βοΈ Run crafting optimizer
- πΎ Upload and commit results
Artifacts include:
output/optimizer_output.txtscripts/best_worst_recipes.csv- Updated
data/index.json
- Python 3.11+
- pandas
pip install pandas
python scripts/generate_index_json.py
python scripts/craft_optimizer.pyThen, open index.html in a browser to view the live guide.
You can host this project on:
- GitHub Pages
- Netlify
- Vercel
Simply ensure that:
- The
/datafolder andindex.jsonare accessible. - CSV files are committed to the repo.
Adding new data is simple β just follow these steps:
Place your file in the /data folder.
You can name it however you want, for example:
data/materials.cvs
Supported formats: .csv or .cvs
Each file should have a header row and comma-separated values.
Example:
action,from,to,cost
craft,Iron Ore,Iron Ingot,15F
buy,Exchange,Iron Ore,250Lactionβ what type of operation (craft, buy, refine, etc.)fromβ input material(s)toβ output itemcostβ numeric value + currency symbol (e.g.,20F,300L,120H)
Additional optional columns like cin and cout show input/output quantities (e.g., 2x, 15x).
When you commit or push, GitHub Actions automatically:
- Scans the
/datafolder - Updates
index.json - Regenerates optimized crafting summaries
β No manual editing required! The new CSV appears automatically on the website.
π Star Resonance Crafting Database
-
Tables for all CSV files in the
datadirectory -
Searchable, interactive lists of materials and recipes
-
Clickable items that open a modal window showing:
- Crafting sources (
Made From) - Usage recipes (
Used In) - Shop pricing (
πͺ Shop Prices) - Smart recommendation for cheapest option (
π‘ Best Option)
- Crafting sources (
The page updates automatically whenever the repository data changes β thanks to the GitHub Actions workflow.
The index.html file dynamically loads all data from the /data folder using JavaScript:
-
Load index.json
const resp = await fetch("./data/index.json"); const { files } = await resp.json();
This tells the site which
.csvfiles exist. -
Fetch Each CSV File
const rows = await loadCSV(`${DATA_DIR}/${file}`);
Each CSV is read line-by-line, even if it contains commas inside quotes.
-
Parse CSV
- The script detects headers automatically.
- If a CSV contains duplicate column names, it adds suffixes like
_2,_3.
-
Generate Tables
createTableSection(file, Object.keys(rows[0]), rows);
Each CSV becomes a full HTML table with alternating row colors and styled headers.
-
Clickable Items
-
Any cell containing keywords like
"item","to", or"from"is turned into a clickable link:<span class="item-link" data-item="Charcoal">Charcoal</span>
-
Clicking triggers the modal window to appear.
-
-
Modal Item Details
-
Searches through all loaded CSVs to find:
- Where the item is crafted
- What other items use it
- Where itβs sold
-
Builds a full HTML summary inside the modal.
-
-
Automatic Refresh Since
index.jsonis rebuilt automatically by the workflow, new CSV files appear instantly without editing the HTML code.
Star Resonance Crafting Guide Community-maintained fan project inspired by the crafting system of Star Resonance. All data sourced and compiled by players.
Developed by: community contributors Maintained with love π by: Star Resonance fans
This project is distributed under the MIT License. Use, modify, and share freely β attribution appreciated.