| .forgejo/workflows | ||
| data | ||
| docker | ||
| docs | ||
| scripts | ||
| src | ||
| templates | ||
| tests | ||
| .gitignore | ||
| askama.toml | ||
| Cargo.lock | ||
| Cargo.toml | ||
| install.sh | ||
| LICENSE | ||
| README.md | ||
| run.sh | ||
| run_web.sh | ||
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 simulationstemplates/- 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
- Go to the home page (
/) - Click "New Simulation"
- Select a template to start from
- Customize parameters (nodes, pricing, costs, tokenomics)
- 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.