How evan-reichert/opsforge works
OpsForge is a CSV-based operations analytics dashboard. A user submits an export through the React interface; the FastAPI backend applies upload guards, analyzes the data with AI or heuristic fallback, returns health and issue summaries, and saves reports for later retrieval. The graph also shows the dashboard and report-history views. Backend validation and analysis details are only partly excerpted, so those domain links rely on the README; storage and frontend calls are more directly evidenced.
Main entry points: App.tsx App shell · main.py FastAPI routes · Upload.tsx CSV upload · Past.tsx Report history
Components 19
Dashboard UI
- App shell
src/App.tsx - Tab navigation
src/components/Tabs.tsx - Home page
src/components/Home.tsx - Product overview
src/components/About.tsx - CSV upload
src/components/Upload.tsx - Report history
src/components/Past.tsx - Health metrics
src/components/KpiGrid.tsx - Metric card
src/components/KpiCard.tsx - Issue chart
src/components/BarChart.tsx - Client identity
src/utils/clientKey.ts
Analysis Backend
- FastAPI routes
main.py - CSV validation
main.py - Issue analysis
model.py - Scoring and advice
model.py - Serverless entry
api/index.py
Report Storage
- Report model
database.py - Report database
database.py
External Services
- OpenAI API
Other components
- User
Connections 26
- User → App shell: uses
README.md - App shell → Tab navigation: renders
src/App.tsx - App shell → Home page: renders
src/App.tsx - App shell → Product overview: renders
src/App.tsx - App shell → CSV upload: renders
src/App.tsx - App shell → Report history: renders
src/App.tsx - App shell → Health metrics: renders
src/App.tsx - App shell → Issue chart: renders
src/App.tsx - Home page → CSV upload: opens tab
src/App.tsx - CSV upload → Client identity: gets identity
src/components/Upload.tsx - Report history → Client identity: gets identity
src/components/Past.tsx - CSV upload → FastAPI routes: posts CSV
src/components/Upload.tsx - Report history → FastAPI routes: lists reports
src/components/Past.tsx - App shell → FastAPI routes: loads report
src/App.tsx - CSV upload → Health metrics: renders metrics
src/components/Upload.tsx - CSV upload → Issue chart: renders counts
src/components/Upload.tsx - Health metrics → Metric card: renders cards
src/components/KpiGrid.tsx - FastAPI routes → CSV validation: validates upload
README.md - CSV validation → Issue analysis: analyzes dataset
README.md - FastAPI routes → Issue analysis: invokes analysis
main.py - Issue analysis → Scoring and advice: builds report
README.md - Scoring and advice → OpenAI API: requests AI analysis
model.py - FastAPI routes → Report model: creates record
main.py - Report model → Report database: persists payload
database.py - FastAPI routes → Report database: reads and writes
main.py - Serverless entry → FastAPI routes: serves app
api/index.py