How ahmad-alipoor/hub-minertools works
Hub-MinerTools is a MinerTools monitoring and operations hub: users sign in, work in customer or admin workspaces, and manage farms, connections, miners, reports, and commercial services. The browser app uses a shared API client; the Go backend provides the API, control-plane services, workers, and product integrations. The README documents the frontend/backend split and identity provider. Source excerpts show frontend routing and API use, but do not expose most backend wiring, so those relationships are left unconnected rather than inferred.
Main entry points: App.tsx Web application · api.ts API client · AuthPage.tsx Authentication · FarmsPage.tsx Customer workspace
Components 20
Browser experience
- Web application
frontend/src/App.tsx - Authentication
frontend/src/pages/AuthPage.tsx - Customer workspace
frontend/src/pages/FarmsPage.tsx - Farm details
frontend/src/pages/FarmDetailsPage.tsx - Connections
frontend/src/pages/ConnectionsPage.tsx - Admin operations
frontend/src/pages/AdminBusinessPage.tsx - Client configuration
frontend/src/pages/AdminPublicClientConfigPage.tsx
API and control plane
- API client
frontend/src/lib/api.ts - Dashboard API
backend/internal/dashboard/server.go - Control-plane data
backend/internal/controlplane - Command workers
backend/internal/commands
Monitoring operations
- Telemetry collection
backend/internal/collector/collector.go - Miner integrations
backend/internal/miner - Product monitoring
backend/internal/productadapter - Router provisioning
backend/internal/provisioning/routeros_package.go - Alert engine
backend/internal/alerts/engine.go
Commercial services
- Billing and quota
backend/internal/billing - Payment providers
backend/internal/paymentprovider/provider.go
Other components
- User
- Casdoor identity
Connections 16
- User → Web application: uses
- Web application → Authentication: routes to
frontend/src/App.tsx - Web application → Customer workspace: routes to
frontend/src/App.tsx - Web application → Farm details: routes to
frontend/src/App.tsx - Web application → Connections: routes to
frontend/src/App.tsx - Web application → Admin operations: routes to
frontend/src/App.tsx - Web application → Client configuration: routes to
frontend/src/App.tsx - Web application → API client: uses
frontend/src/App.tsx - Authentication → API client: requests
frontend/src/pages/AuthPage.tsx - Customer workspace → API client: requests
- Farm details → API client: requests
- Connections → API client: requests
- Admin operations → API client: requests
frontend/src/pages/AdminBusinessPage.tsx - Client configuration → API client: requests
frontend/src/pages/AdminPublicClientConfigPage.tsx - API client → Dashboard API: calls
- User → Casdoor identity: authenticates with