No description
Find a file
2025-12-12 11:35:07 +01:00
data ... 2025-12-12 08:46:45 +01:00
docs ... 2025-12-12 07:00:58 +01:00
src ... 2025-12-12 11:35:07 +01:00
templates ,, 2025-12-12 11:25:08 +01:00
.gitignore init 2025-12-10 15:00:19 +01:00
askama.toml init 2025-12-10 15:00:19 +01:00
Cargo.toml ... 2025-12-12 07:48:27 +01:00
install.sh init 2025-12-10 15:00:19 +01:00
LICENSE Initial commit 2025-12-10 13:59:19 +00:00
README.md ... 2025-12-11 11:41:31 +01:00
REFACTORING_INSTRUCTIONS.md ... 2025-12-12 07:48:27 +01:00
run.sh init 2025-12-10 15:00:19 +01:00
run_web.sh init 2025-12-10 15:00:19 +01:00

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

  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: 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.