No description
Find a file
2025-12-15 06:22:18 +01:00
.forgejo/workflows ... 2025-12-15 05:57:38 +01:00
data ... 2025-12-14 13:15:45 +01:00
docker feat: add Docker container solution for build and deployment 2025-12-12 15:13:06 +01:00
docs ... 2025-12-12 07:00:58 +01:00
scripts ... 2025-12-15 05:48:39 +01:00
src ... 2025-12-15 06:22:18 +01:00
templates ... 2025-12-15 06:22:18 +01:00
tests ... 2025-12-14 12:24:03 +01:00
.gitignore ... 2025-12-15 05:42:08 +01:00
askama.toml init 2025-12-14 11:02:04 +01:00
Cargo.lock ... 2025-12-15 06:22:18 +01:00
Cargo.toml ... 2025-12-15 06:22:18 +01:00
install.sh init 2025-12-14 11:02:04 +01:00
LICENSE Initial commit 2025-12-10 13:59:19 +00:00
README.md ... 2025-12-15 06:22:18 +01:00
run.sh init 2025-12-10 15:00:19 +01:00
run_web.sh ... 2025-12-15 05:53:26 +01:00

Mycelium ROI Simulator

A web-based ROI calculator for Mycelium hosting deployments. Calculate investment returns, compare scenarios, and analyze agent economics.

Quick Install

Install myceliumsimulator with a single command:

curl -sL https://forge.ourworld.tf/geomind/simulator_geomind/raw/branch/main/scripts/install.sh | bash

This will:

  • Detect your platform (Linux/macOS, amd64/arm64)
  • Download the appropriate binary
  • Install to ~/hero/bin/
  • Add the path to your ~/.profile

After installation, start a new terminal or run:

export PATH="$HOME/hero/bin:$PATH"

Verify installation:

myceliumsimulator --version

Usage

myceliumsimulator [OPTIONS]

Options:
  -p, --port <PORT>  Port to run the server on [default: 3366]
  -h, --help         Print help
  -V, --version      Print version

Examples:

myceliumsimulator              # Run on default port 3366
myceliumsimulator -p 8080      # Run on port 8080

Development

Prerequisites

  • Rust (latest stable)

Running the Web Server

# Build and run the web server
cargo run --bin myceliumsimulator

The server starts at http://localhost:3366

To use a different port:

cargo run --bin myceliumsimulator -- -p 8080

Running the CLI Calculator

just as cmd line

cargo run --bin mycelium-calc -- data/home_setup.toml

How It Works

Storage

All data is stored as TOML files in ~/hero/var/myceliumsimulator/:

  • simulations/ - User-created simulations
  • templates/ - Pre-configured templates (loaded from embedded data on startup)

Templates

Pre-configured simulation templates are embedded in the binary from the data/ directory:

  • data/home_setup.toml - Small home hosting setup (2 Compute + 1 Workstation)
  • data/datacenter_enterprise.toml - Enterprise datacenter deployment (21 nodes)

On server startup, these templates are loaded into the storage directory and available for users to select when creating new simulations.

Creating Simulations

  1. Go to the home page (/)
  2. Click "New Simulation"
  3. Select a template to start from
  4. Customize parameters (nodes, pricing, costs, tokenomics)
  5. View results and charts

Pages

  • / - Home page with simulation list
  • /simulation/:key - Edit simulation parameters
  • /simulation/:key/results - View ROI results, charts, and scenarios
  • /simulation/:key/agents - Agent economics comparison (STD vs PRO)

Admin Panel

The admin panel is available at /admin (hidden, not linked in navigation).

Features

  • Health Checks: Storage status, template count, simulation count, server uptime
  • Reset Storage: Clears all data and reloads templates
  • Reload Templates: Reloads templates without clearing simulations
  • Delete Simulations: Remove individual simulations

Usage

Navigate directly to http://localhost:3366/admin

Configuration

TOML Templates

See data/home_setup.toml and data/datacenter_enterprise.toml for example configurations.