No description
| data | ||
| docs | ||
| src | ||
| templates | ||
| .gitignore | ||
| askama.toml | ||
| Cargo.toml | ||
| install.sh | ||
| LICENSE | ||
| README.md | ||
| REFACTORING_INSTRUCTIONS.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 Start
Prerequisites
- Rust (latest stable)
- Redis server running locally
Running the Web Server
# Start Redis (if not already running)
redis-server
# Build and run the web server
cargo run --bin mycelium-web
The server starts at http://localhost:3000
Running the CLI Calculator
just as cmd line
cargo run --bin mycelium-calc -- data/home_setup.toml
How It Works
Templates
Pre-configured simulation templates are stored in the data/ directory as TOML files:
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 Redis 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: Redis connection status, template count, simulation count, server uptime
- Reset Redis: Clears all data and reloads templates from disk
- Reload Templates: Reloads templates from
data/without clearing simulations - Delete Simulations: Remove individual simulations
Usage
Navigate directly to http://localhost:3000/admin
Configuration
Environment Variables
REDIS_URL- Redis connection URL (default:redis://127.0.0.1/)
TOML Templates
See data/home_setup.toml and data/datacenter_enterprise.toml for example configurations.