How upc-hub/hpc-resource-planner works
HPC Resource Planner is a browser-based planner for comparing HPCI and mdx computing resources. Users review centers, adjust resource limits and requests, search for capacity, and inspect estimated costs and institutional comparisons; an optional AI consultant estimates project needs for a selected center. The sampled source shows the React entry point, planner components, shared resource data, and Gemini estimation service. Some App.tsx excerpts omit the handlers and rendering details, so the graph limits those relationships to component references visible in the source index.
Main entry points: App.tsx Planner dashboard · types.ts Resource data models · CenterCard.tsx Center planner · CostChart.tsx Cost chart
Components 13
Planner interface
- React mount
src/main.tsx - Planner dashboard
App.tsx
Resource planning
- Center planner
components/CenterCard.tsx - Cost chart
components/CostChart.tsx - Resource comparison
components/ResourceComparison.tsx - Limit settings
components/SettingsModal.tsx
Guidance and estimates
- Infrastructure guide
components/InfoModal.tsx - AI consultant
components/AiConsultantModal.tsx - Gemini estimator
services/geminiService.ts
Planner data and types
- Center resource catalog
constants.ts - Resource data models
types.ts
Other components
- Researcher
- Google Gemini API
Connections 19
- Researcher → React mount: opens planner
- React mount → Planner dashboard: renders
src/main.tsx - Planner dashboard → Center planner: renders
App.tsx - Planner dashboard → Cost chart: renders
App.tsx - Planner dashboard → Resource comparison: renders
App.tsx - Planner dashboard → Limit settings: uses
App.tsx - Planner dashboard → Infrastructure guide: uses
App.tsx - Planner dashboard → AI consultant: uses
App.tsx - AI consultant → Gemini estimator: requests estimate
components/AiConsultantModal.tsx - Gemini estimator → Google Gemini API: requests generation
services/geminiService.ts - Planner dashboard → Center resource catalog: imports data
App.tsx - Center planner → Center resource catalog: reads limits
components/CenterCard.tsx - Cost chart → Center resource catalog: reads centers
components/CostChart.tsx - AI consultant → Resource data models: uses types
components/AiConsultantModal.tsx - Gemini estimator → Resource data models: uses types
services/geminiService.ts - Center planner → Resource data models: uses types
components/CenterCard.tsx - Resource comparison → Resource data models: uses types
components/ResourceComparison.tsx - Limit settings → Resource data models: uses types
components/SettingsModal.tsx - Cost chart → Resource data models: uses types
components/CostChart.tsx