How fejoejs/vaxipredict works
VaxiPredict is a web platform for assessing regional vaccine-hesitancy risk and supporting immunization campaigns. Users enter through the React application, authenticate or browse permitted views, and use dashboards and feature pages; backend APIs provide analytics, predictions, dataset ingestion, fact-checking, interventions, reminders, and reports. The documented prediction path assembles regional graph and vaccination-history data before hybrid GNN-LSTM inference. The graph includes the main UI, API, model, and supporting service layers. Relationships for unsampled feature routes are shown only where documented; the source excerpts do not expose their detailed call paths.
Main entry points: App.tsx Application routing · auth.py Authentication API · pipeline.py Prediction pipeline · main.py FastAPI application
Components 26
Web application
- Application routing
frontend/src/App.tsx - Shared layout
frontend/src/components/layout/Layout.tsx - Session and profiles
frontend/src/context/AuthContext.tsx - Dashboard
frontend/src/pages/Dashboard.tsx - Feature pages
frontend/src/pages - API client
frontend/src/api/client.ts
API and access
- FastAPI application
backend/app/main.py - Authentication API
backend/app/api/routes/auth.py - Product APIs
backend/app/api/routes - Identity and roles
backend/app/api/deps.py - Database sessions
backend/app/db/session.py - User records
backend/app/models/user.py
Data and prediction
- Dataset ingestion
backend/app/api/routes/datasets.py - Dataset processing
backend/app/services/ingestion.py - Regional records
backend/app/models/region.py - Vaccination records
backend/app/models/dataset.py - Prediction API
backend/app/api/routes/predictions.py - Prediction pipeline
backend/app/ml/pipeline.py - Hybrid GNN-LSTM
backend/app/ml/gnn_lstm.py
Decision support
- AI fact-checking
backend/app/services/ai_chat.py - Gemini integration
backend/app/services/gemini.py - Rumor analysis
backend/app/services/rumor_nlp.py - Reports and analytics
backend/app/services/report_builder.py
Campaign operations
- Intervention planning
backend/app/services/interventions.py - Reminder delivery
backend/app/services/whatsapp.py
Other components
- Platform user
Connections 20
- Platform user → Application routing: uses
frontend/src/App.tsx - Application routing → Shared layout: renders
frontend/src/App.tsx - Application routing → Dashboard: routes to
frontend/src/App.tsx - Application routing → Feature pages: routes to
frontend/src/App.tsx - Session and profiles → API client: calls
frontend/src/context/AuthContext.tsx - API client → FastAPI application: sends requests
- FastAPI application → Authentication API: registers
backend/app/main.py - FastAPI application → Product APIs: registers
backend/app/main.py - Authentication API → Identity and roles: checks identity
backend/app/api/routes/auth.py - Authentication API → Database sessions: queries
backend/app/api/routes/auth.py - Authentication API → User records: reads and writes
backend/app/api/routes/auth.py - Dataset ingestion → Dataset processing: delegates
- Dataset processing → Regional records: uses
backend/app/services/ingestion.py - Dataset processing → Vaccination records: uses
backend/app/services/ingestion.py - Prediction API → Prediction pipeline: runs
backend/app/api/routes/predictions.py - Prediction pipeline → Regional records: reads
backend/app/ml/pipeline.py - Prediction pipeline → Vaccination records: reads
backend/app/ml/pipeline.py - Prediction pipeline → Hybrid GNN-LSTM: runs inference
backend/app/ml/pipeline.py - AI fact-checking → Gemini integration: uses
- AI fact-checking → Rumor analysis: analyzes claims