How moshikvarmaa/veerufit-varmaa works
VeeruFit turns an athlete’s blood report and training preferences into a biomarker-aware weekly workout plan, rationale, downloadable PDF, and optional email. The main path is the React dashboard or Streamlit interface through the API or local orchestrator, then report extraction, parsing, relevance validation, safety rules and routine generation, and report delivery. SQLite stores report and routine data. The README documents the React/FastAPI product capabilities; source excerpts establish most backend calls, while UI-to-API wiring is documented rather than shown in code.
Main entry points: main.py Pipeline orchestrator · api.py REST API · app.py Streamlit interface · db_loader.py Report and routine storage
Components 15
User interfaces
- React dashboard
frontend/src/App.jsx - Streamlit interface
app.py
Request orchestration
- REST API
api.py - Pipeline orchestrator
main.py
Report ingestion
- Report extraction
ingestion/extractor.py - Biomarker parsing
ingestion/parser.py
Clinical training
- Panel relevance
ingestion/validator.py - Safety and routine engine
engine/routine_engine.py
Storage and delivery
- Report and routine storage
ingestion/db_loader.py - SQLite database
- PDF report exporter
engine/pdf_exporter.py - Email sender
engine/gmail_sender.py
Other components
- Athlete
- Gemini AI
- Apps Script webhook
Connections 18
- Athlete → React dashboard: submits profile
README.md - Athlete → Streamlit interface: provides report
app.py - React dashboard → REST API: requests plan
README.md - Streamlit interface → Pipeline orchestrator: starts workflow
app.py - REST API → Pipeline orchestrator: generates plan
api.py - REST API → Report and routine storage: loads saved report
api.py - Pipeline orchestrator → Report extraction: extracts text
main.py - Pipeline orchestrator → Biomarker parsing: parses biomarkers
main.py - Pipeline orchestrator → Panel relevance: checks relevance
main.py - Pipeline orchestrator → Safety and routine engine: generates routine
main.py - Pipeline orchestrator → Report and routine storage: saves and reads
main.py - Report and routine storage → SQLite database: reads and writes
ingestion/db_loader.py - Safety and routine engine → Gemini AI: generates plan
engine/routine_engine.py - Biomarker parsing → Gemini AI: extracts structured data
ingestion/parser.py - Pipeline orchestrator → PDF report exporter: exports report
main.py - REST API → Email sender: sends requested report
api.py - Streamlit interface → Email sender: sends report
app.py - Email sender → Apps Script webhook: posts email payload
engine/gmail_sender.py