How chayakiranch/aws-billing-dashboard works
AWS Billing Dashboard is a React/Express tool for reviewing AWS costs, forecasts, resources, performance, and savings opportunities. The main workflow is: an operator opens the dashboard in demo mode or connects AWS credentials, the billing hook supplies mock or live billing data, and dashboard views present trends, service costs, summaries, and forecasts. Other tabs cover resource inventory, CloudWatch performance, recommendations, and future-cost analysis. The backend routes live queries to AWS SDK services; the app has no database. Unexcerpted UI-to-API wiring is shown only where documented or left unlinked.
Main entry points: Dashboard.jsx Dashboard · server.js Express Server · recommendations.js Recommendation Routes · billing.js Billing Routes
Components 23
Dashboard UI
- React App
src/App.jsx - Dashboard
src/components/Dashboard.jsx - Connect Account
src/components/ConnectModal.jsx
Billing Data
- Billing Data Hook
src/hooks/useBillingData.js - Billing Views
src/components - Trend Chart
src/components/TrendChart.jsx - Forecast Panel
src/components/ForecastPanel.jsx - Billing Summary
src/components/BillingSummary.jsx
Cost Insights
- Future Cost Analysis
src/components/FutureCostPrediction.jsx - Resource Inventory
src/components/ResourcesTab.jsx - Performance View
src/components/PerformanceTab.jsx - Recommendations View
src/components/RecommendationsTab.jsx - Recommendation Engine
server/services/recommendations.js
API Backend
- Express Server
server/server.js - Billing Routes
server/routes/billing.js - Resource Routes
server/routes/resources.js - Performance Routes
server/routes/performance.js - Recommendation Routes
server/routes/recommendations.js
AWS Integrations
- Cost Explorer Billing
server/services/awsBilling.js - AWS Resource Inventory
server/services/awsResources.js - CloudWatch Metrics
server/services/cloudwatch.js
Other components
- Operator
- AWS Services
Connections 25
- Operator → React App: opens
README.md - React App → Dashboard: renders
src/App.jsx - Dashboard → Connect Account: opens
src/components/Dashboard.jsx - Dashboard → Billing Data Hook: loads data
src/components/Dashboard.jsx - Dashboard → Billing Views: renders
src/components/Dashboard.jsx - Dashboard → Trend Chart: renders
src/components/Dashboard.jsx - Dashboard → Forecast Panel: renders
src/components/Dashboard.jsx - Dashboard → Billing Summary: renders
src/components/Dashboard.jsx - Dashboard → Future Cost Analysis: renders
src/components/Dashboard.jsx - Dashboard → Resource Inventory: renders
src/components/Dashboard.jsx - Dashboard → Performance View: renders
src/components/Dashboard.jsx - Dashboard → Recommendations View: renders
src/components/Dashboard.jsx - Billing Data Hook → Billing Routes: requests
src/hooks/useBillingData.js - Express Server → Billing Routes: mounts
server/server.js - Express Server → Resource Routes: mounts
server/server.js - Express Server → Performance Routes: mounts
server/server.js - Express Server → Recommendation Routes: mounts
server/server.js - Billing Routes → Cost Explorer Billing: calls
server/routes/billing.js - Resource Routes → AWS Resource Inventory: calls
server/routes/resources.js - Performance Routes → CloudWatch Metrics: calls
server/routes/performance.js - Recommendation Routes → CloudWatch Metrics: fetches metrics
server/routes/recommendations.js - Recommendation Routes → Recommendation Engine: runs
server/routes/recommendations.js - Cost Explorer Billing → AWS Services: queries costs
README.md - AWS Resource Inventory → AWS Services: lists resources
README.md - CloudWatch Metrics → AWS Services: reads metrics
README.md