How srushti-2005/burnout-copilot works
MindEase is a burnout-monitoring copilot spanning a desktop activity tracker, API, web and mobile clients, and Supabase-backed services. A typical user signs in, records behavioral sessions and activity check-ins, then views risk, trends, recommendations, focus support, and reports. The graph preserves documented API capabilities and modeling/personalization branches, but many router and client implementations were not excerpted; those links are omitted rather than inferred. The activity-context feature engineering excerpt documents how context adjusts CLI scores, while API registration and session persistence are directly visible.
Main entry points: main.py FastAPI app · sessions.py Session routes · dashboard.py Dashboard routes · auth.py Auth routes
Components 26
User clients
- Web dashboard
frontend/src/routes/index.tsx - Mobile app
mobile/src/app/(tabs)/index.tsx - Copilot
mobile/src/app/copilot.tsx
API and access
- FastAPI app
backend/api/main.py - Auth routes
backend/api/routers/auth.py - Session routes
backend/api/routers/sessions.py - API schemas
backend/api/schemas/schemas.py - Dashboard routes
backend/api/routers/dashboard.py - Baseline routes
backend/api/routers/baseline.py - Focus routes
backend/api/routers/focus.py - Intervention routes
backend/api/routers/interventions.py - Suggestion routes
backend/api/routers/suggestions.py - Activity routes
backend/api/routers/activity.py
Activity capture
- Desktop tracker
agent/tracker.py - Activity context
backend/src/features/activity_context.py
Burnout insights
- Feature engineering
backend/src/features/feature_engineering.py - Prediction service
backend/api/services/predictor.py - Digital twin
backend/api/services/digital_twin.py - Intervention engine
backend/api/services/intervention_engine.py - Suggestion engine
backend/src/suggestions/suggestion_engine.py - CLI logic
backend/src/cli_logic.py
Identity and data
- Auth manager
backend/src/auth/auth_manager.py - Session persistence
backend/src/data/supabase_manager.py - Check-in persistence
backend/src/data/activity_manager.py - Supabase
Other components
- User
Connections 26
- User → Web dashboard: uses
- User → Mobile app: uses
- User → Desktop tracker: runs
agent/tracker.py - FastAPI app → Dashboard routes: registers
backend/api/main.py - FastAPI app → Auth routes: registers
backend/api/main.py - FastAPI app → Session routes: registers
backend/api/main.py - FastAPI app → Baseline routes: registers
backend/api/main.py - FastAPI app → Suggestion routes: registers
backend/api/main.py - FastAPI app → Focus routes: registers
backend/api/main.py - FastAPI app → Intervention routes: registers
backend/api/main.py - FastAPI app → Activity routes: registers
backend/api/main.py - Session routes → API schemas: validates
backend/api/routers/sessions.py - Session routes → Session persistence: saves sessions
backend/api/routers/sessions.py - Session routes → Supabase: reads sessions
backend/api/routers/sessions.py - Auth routes → Supabase: authenticates
backend/api/routers/auth.py - Auth manager → Supabase: authenticates
backend/src/auth/auth_manager.py - Session persistence → Supabase: persists sessions
backend/src/data/supabase_manager.py - Check-in persistence → Supabase: persists check-ins
backend/src/data/activity_manager.py - Check-in persistence → Activity context: computes context
backend/src/data/activity_manager.py - Feature engineering → Activity context: applies context
backend/src/features/feature_engineering.py - Desktop tracker → Session persistence: saves sessions
agent/tracker.py - Mobile app → Auth routes: posts auth
- Dashboard routes → Prediction service: uses prediction
- Dashboard routes → Digital twin: loads twin
- Intervention routes → Intervention engine: evaluates interventions
- Suggestion routes → Suggestion engine: requests suggestions