# vasuteja09/jatayu architecture

> Architecture diagram of the GitHub repository vasuteja09/jatayu, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-18). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/vasuteja09/jatayu
- Repository: https://github.com/vasuteja09/jatayu

## Overview

Jatayu (AeroReady AI) is a fleet predictive-maintenance and availability decision-support platform. Users authenticate into role-aware dashboards, inspect fleet and aircraft health, review predictions and alerts, then plan maintenance, coordinate spares, and optimize schedules; simulation supports scenario exploration. The backend combines telemetry feature engineering, anomaly/risk/RUL models, explainability, persistence, logistics, and constraint optimization. The README documents capabilities beyond the sampled implementation, so some domain links below cite that documentation; unsampled source details are not asserted.

Main entry points: [`frontend/src/App.tsx`](https://github.com/vasuteja09/jatayu/blob/main/frontend/src/App.tsx) (Application Routes), [`backend/app/ml/model_manager.py`](https://github.com/vasuteja09/jatayu/blob/main/backend/app/ml/model_manager.py) (Inference Manager), [`backend/app/db/models.py`](https://github.com/vasuteja09/jatayu/blob/main/backend/app/db/models.py) (Operational Database), [`backend/app/services/prediction_service.py`](https://github.com/vasuteja09/jatayu/blob/main/backend/app/services/prediction_service.py) (Prediction Service)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ui["User Experience"]
  node_app_router["Application Routes<br/>[App.tsx]"]
  node_auth_context["Role Authentication<br/>[AuthContext.tsx]"]
  node_dashboard["Fleet Dashboard<br/>[OverviewPage.tsx]"]
  node_aircraft_view["Aircraft Detail"]
  node_prediction_view["Predictions"]
  node_commander_view["Commander Dashboard"]
  node_spares_view["Spares Dashboard"]
  node_technician_view["Technician Dashboard"]
  node_timetable_view["Maintenance Timetable"]
  node_simulation_view["Simulation Lab"]
  node_api_client["REST Client<br/>[api.ts]"]
end

subgraph group_api["API and Security"]
  node_fastapi["REST Application<br/>[main.py]"]
  node_auth_router["Login Endpoint<br/>[auth_router.py]"]
  node_auth_logic["Token and Credentials<br/>[auth.py]"]
end

subgraph group_prognostics["Health Prognostics"]
  node_prediction_service["Prediction Service"]
  node_feature_engineering["Telemetry Features<br/>[features.py]"]
  node_model_manager["Inference Manager<br/>[model_manager.py]"]
  node_anomaly_model["Anomaly Detection"]
  node_failure_model["Failure Risk Model<br/>[xgb_classifier.py]"]
  node_rul_model["RUL Regression<br/>[xgb_regressor.py]"]
  node_explanation["SHAP Explanation<br/>[shap_explainer.py]"]
end

subgraph group_planning["Maintenance Planning"]
  node_fleet_service["Fleet Metrics<br/>[fleet_service.py]"]
  node_logistics_service["Depot Logistics"]
  node_maintenance_service["Maintenance Tasks"]
  node_optimizer["Schedule Optimizer"]
  node_simulation_service["Scenario Simulation"]
end

subgraph group_data["Operational Data"]
  node_database[("Operational Database<br/>[models.py]")]
end

node_fleet_manager(("Fleet Manager"))

node_fleet_manager -->|"uses"| node_app_router
node_app_router -->|"provides auth"| node_auth_context
node_app_router -->|"routes to"| node_dashboard
node_app_router -->|"routes to"| node_commander_view
node_app_router -->|"routes to"| node_spares_view
node_app_router -->|"routes to"| node_technician_view
node_app_router -->|"routes to"| node_timetable_view
node_app_router -->|"routes to"| node_aircraft_view
node_app_router -->|"routes to"| node_prediction_view
node_app_router -->|"routes to"| node_simulation_view
node_auth_context -->|"calls login"| node_api_client
node_api_client -->|"sends REST requests"| node_fastapi
node_fastapi -->|"mounts router"| node_auth_router
node_auth_router -->|"verifies credentials"| node_auth_logic
node_fastapi -->|"initializes"| node_model_manager
node_prediction_service -->|"reads and writes"| node_database
node_prediction_service -->|"extracts features"| node_feature_engineering
node_prediction_service -->|"runs inference"| node_model_manager
node_model_manager -->|"loads and predicts"| node_anomaly_model
node_model_manager -->|"loads and predicts"| node_failure_model
node_model_manager -->|"loads and predicts"| node_rul_model
node_model_manager -->|"requests factors"| node_explanation
node_prediction_service -->|"updates health"| node_fleet_service
node_fleet_service -->|"queries"| node_database
node_logistics_service -->|"queries"| node_database
node_maintenance_service -.->|"persists tasks"| node_database
node_optimizer -->|"uses resources"| node_database
node_optimizer -->|"gets fleet data"| node_fleet_service
node_simulation_service -->|"reads scenario data"| node_database
node_simulation_service -->|"requests predictions"| node_prediction_service
node_fleet_manager -->|"reviews risk"| node_prediction_view
node_fleet_manager -->|"plans shortages"| node_logistics_service
node_fleet_manager -->|"optimizes schedule"| node_optimizer

click node_app_router "https://github.com/vasuteja09/jatayu/blob/main/frontend/src/App.tsx"
click node_auth_context "https://github.com/vasuteja09/jatayu/blob/main/frontend/src/context/AuthContext.tsx"
click node_dashboard "https://github.com/vasuteja09/jatayu/blob/main/frontend/src/pages/OverviewPage.tsx"
click node_aircraft_view "https://github.com/vasuteja09/jatayu/blob/main/frontend/src/pages/AircraftDetailPage.tsx"
click node_prediction_view "https://github.com/vasuteja09/jatayu/blob/main/frontend/src/pages/PredictionsPage.tsx"
click node_commander_view "https://github.com/vasuteja09/jatayu/blob/main/frontend/src/pages/commander/CommanderDashboard.tsx"
click node_spares_view "https://github.com/vasuteja09/jatayu/blob/main/frontend/src/pages/spares/SparesDashboard.tsx"
click node_technician_view "https://github.com/vasuteja09/jatayu/blob/main/frontend/src/pages/technician/TechnicianDashboard.tsx"
click node_timetable_view "https://github.com/vasuteja09/jatayu/blob/main/frontend/src/pages/schedule/MaintenanceTimetablePage.tsx"
click node_simulation_view "https://github.com/vasuteja09/jatayu/blob/main/frontend/src/pages/SimulationLabPage.tsx"
click node_api_client "https://github.com/vasuteja09/jatayu/blob/main/frontend/src/services/api.ts"
click node_fastapi "https://github.com/vasuteja09/jatayu/blob/main/backend/app/main.py"
click node_auth_router "https://github.com/vasuteja09/jatayu/blob/main/backend/app/api/auth_router.py"
click node_auth_logic "https://github.com/vasuteja09/jatayu/blob/main/backend/app/auth.py"
click node_prediction_service "https://github.com/vasuteja09/jatayu/blob/main/backend/app/services/prediction_service.py"
click node_feature_engineering "https://github.com/vasuteja09/jatayu/blob/main/backend/app/ml/feature_engineering/features.py"
click node_model_manager "https://github.com/vasuteja09/jatayu/blob/main/backend/app/ml/model_manager.py"
click node_anomaly_model "https://github.com/vasuteja09/jatayu/blob/main/backend/app/ml/anomaly_detection/isolation_forest.py"
click node_failure_model "https://github.com/vasuteja09/jatayu/blob/main/backend/app/ml/failure_prediction/xgb_classifier.py"
click node_rul_model "https://github.com/vasuteja09/jatayu/blob/main/backend/app/ml/rul_prediction/xgb_regressor.py"
click node_explanation "https://github.com/vasuteja09/jatayu/blob/main/backend/app/ml/explainability/shap_explainer.py"
click node_fleet_service "https://github.com/vasuteja09/jatayu/blob/main/backend/app/services/fleet_service.py"
click node_logistics_service "https://github.com/vasuteja09/jatayu/blob/main/backend/app/services/logistics_service.py"
click node_maintenance_service "https://github.com/vasuteja09/jatayu/blob/main/backend/app/services/maintenance_service.py"
click node_optimizer "https://github.com/vasuteja09/jatayu/blob/main/backend/app/services/optimization_service.py"
click node_simulation_service "https://github.com/vasuteja09/jatayu/blob/main/backend/app/services/simulation_service.py"
click node_database "https://github.com/vasuteja09/jatayu/blob/main/backend/app/db/models.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_app_router,node_auth_context,node_dashboard,node_aircraft_view,node_prediction_view,node_commander_view,node_spares_view,node_technician_view,node_timetable_view,node_simulation_view,node_api_client toneBlue
class node_fastapi,node_auth_router,node_auth_logic toneAmber
class node_prediction_service,node_feature_engineering,node_model_manager,node_anomaly_model,node_failure_model,node_rul_model,node_explanation toneMint
class node_fleet_service,node_logistics_service,node_maintenance_service,node_optimizer,node_simulation_service toneRose
class node_database,node_fleet_manager toneIndigo
```

## Components

### User Experience

- [Application Routes](https://github.com/vasuteja09/jatayu/blob/main/frontend/src/App.tsx): `frontend/src/App.tsx`
- [Role Authentication](https://github.com/vasuteja09/jatayu/blob/main/frontend/src/context/AuthContext.tsx): `frontend/src/context/AuthContext.tsx`
- [Fleet Dashboard](https://github.com/vasuteja09/jatayu/blob/main/frontend/src/pages/OverviewPage.tsx): `frontend/src/pages/OverviewPage.tsx`
- [Aircraft Detail](https://github.com/vasuteja09/jatayu/blob/main/frontend/src/pages/AircraftDetailPage.tsx): `frontend/src/pages/AircraftDetailPage.tsx`
- [Predictions](https://github.com/vasuteja09/jatayu/blob/main/frontend/src/pages/PredictionsPage.tsx): `frontend/src/pages/PredictionsPage.tsx`
- [Commander Dashboard](https://github.com/vasuteja09/jatayu/blob/main/frontend/src/pages/commander/CommanderDashboard.tsx): `frontend/src/pages/commander/CommanderDashboard.tsx`
- [Spares Dashboard](https://github.com/vasuteja09/jatayu/blob/main/frontend/src/pages/spares/SparesDashboard.tsx): `frontend/src/pages/spares/SparesDashboard.tsx`
- [Technician Dashboard](https://github.com/vasuteja09/jatayu/blob/main/frontend/src/pages/technician/TechnicianDashboard.tsx): `frontend/src/pages/technician/TechnicianDashboard.tsx`
- [Maintenance Timetable](https://github.com/vasuteja09/jatayu/blob/main/frontend/src/pages/schedule/MaintenanceTimetablePage.tsx): `frontend/src/pages/schedule/MaintenanceTimetablePage.tsx`
- [Simulation Lab](https://github.com/vasuteja09/jatayu/blob/main/frontend/src/pages/SimulationLabPage.tsx): `frontend/src/pages/SimulationLabPage.tsx`
- [REST Client](https://github.com/vasuteja09/jatayu/blob/main/frontend/src/services/api.ts): `frontend/src/services/api.ts`

### API and Security

- [REST Application](https://github.com/vasuteja09/jatayu/blob/main/backend/app/main.py): `backend/app/main.py`
- [Login Endpoint](https://github.com/vasuteja09/jatayu/blob/main/backend/app/api/auth_router.py): `backend/app/api/auth_router.py`
- [Token and Credentials](https://github.com/vasuteja09/jatayu/blob/main/backend/app/auth.py): `backend/app/auth.py`

### Health Prognostics

- [Prediction Service](https://github.com/vasuteja09/jatayu/blob/main/backend/app/services/prediction_service.py): `backend/app/services/prediction_service.py`
- [Telemetry Features](https://github.com/vasuteja09/jatayu/blob/main/backend/app/ml/feature_engineering/features.py): `backend/app/ml/feature_engineering/features.py`
- [Inference Manager](https://github.com/vasuteja09/jatayu/blob/main/backend/app/ml/model_manager.py): `backend/app/ml/model_manager.py`
- [Anomaly Detection](https://github.com/vasuteja09/jatayu/blob/main/backend/app/ml/anomaly_detection/isolation_forest.py): `backend/app/ml/anomaly_detection/isolation_forest.py`
- [Failure Risk Model](https://github.com/vasuteja09/jatayu/blob/main/backend/app/ml/failure_prediction/xgb_classifier.py): `backend/app/ml/failure_prediction/xgb_classifier.py`
- [RUL Regression](https://github.com/vasuteja09/jatayu/blob/main/backend/app/ml/rul_prediction/xgb_regressor.py): `backend/app/ml/rul_prediction/xgb_regressor.py`
- [SHAP Explanation](https://github.com/vasuteja09/jatayu/blob/main/backend/app/ml/explainability/shap_explainer.py): `backend/app/ml/explainability/shap_explainer.py`

### Maintenance Planning

- [Fleet Metrics](https://github.com/vasuteja09/jatayu/blob/main/backend/app/services/fleet_service.py): `backend/app/services/fleet_service.py`
- [Depot Logistics](https://github.com/vasuteja09/jatayu/blob/main/backend/app/services/logistics_service.py): `backend/app/services/logistics_service.py`
- [Maintenance Tasks](https://github.com/vasuteja09/jatayu/blob/main/backend/app/services/maintenance_service.py): `backend/app/services/maintenance_service.py`
- [Schedule Optimizer](https://github.com/vasuteja09/jatayu/blob/main/backend/app/services/optimization_service.py): `backend/app/services/optimization_service.py`
- [Scenario Simulation](https://github.com/vasuteja09/jatayu/blob/main/backend/app/services/simulation_service.py): `backend/app/services/simulation_service.py`

### Operational Data

- [Operational Database](https://github.com/vasuteja09/jatayu/blob/main/backend/app/db/models.py): `backend/app/db/models.py`

### Other components

- **Fleet Manager**

## Connections

- Fleet Manager → Application Routes: uses
- Application Routes → Role Authentication: provides auth (evidence: `frontend/src/App.tsx`)
- Application Routes → Fleet Dashboard: routes to (evidence: `frontend/src/App.tsx`)
- Application Routes → Commander Dashboard: routes to (evidence: `frontend/src/App.tsx`)
- Application Routes → Spares Dashboard: routes to (evidence: `frontend/src/App.tsx`)
- Application Routes → Technician Dashboard: routes to (evidence: `frontend/src/App.tsx`)
- Application Routes → Maintenance Timetable: routes to (evidence: `frontend/src/App.tsx`)
- Application Routes → Aircraft Detail: routes to (evidence: `frontend/src/App.tsx`)
- Application Routes → Predictions: routes to (evidence: `frontend/src/App.tsx`)
- Application Routes → Simulation Lab: routes to (evidence: `frontend/src/App.tsx`)
- Role Authentication → REST Client: calls login (evidence: `frontend/src/context/AuthContext.tsx`)
- REST Client → REST Application: sends REST requests
- REST Application → Login Endpoint: mounts router (evidence: `backend/app/main.py`)
- Login Endpoint → Token and Credentials: verifies credentials (evidence: `backend/app/api/auth_router.py`)
- REST Application → Inference Manager: initializes (evidence: `backend/app/main.py`)
- Prediction Service → Operational Database: reads and writes (evidence: `backend/app/services/prediction_service.py`)
- Prediction Service → Telemetry Features: extracts features (evidence: `backend/app/services/prediction_service.py`)
- Prediction Service → Inference Manager: runs inference (evidence: `backend/app/services/prediction_service.py`)
- Inference Manager → Anomaly Detection: loads and predicts (evidence: `backend/app/ml/model_manager.py`)
- Inference Manager → Failure Risk Model: loads and predicts (evidence: `backend/app/ml/model_manager.py`)
- Inference Manager → RUL Regression: loads and predicts (evidence: `backend/app/ml/model_manager.py`)
- Inference Manager → SHAP Explanation: requests factors (evidence: `backend/app/ml/model_manager.py`)
- Prediction Service → Fleet Metrics: updates health (evidence: `backend/app/services/prediction_service.py`)
- Fleet Metrics → Operational Database: queries (evidence: `backend/app/services/fleet_service.py`)
- Depot Logistics → Operational Database: queries (evidence: `backend/app/services/logistics_service.py`)
- Maintenance Tasks → Operational Database: persists tasks
- Schedule Optimizer → Operational Database: uses resources (evidence: `backend/app/services/optimization_service.py`)
- Schedule Optimizer → Fleet Metrics: gets fleet data (evidence: `backend/app/services/optimization_service.py`)
- Scenario Simulation → Operational Database: reads scenario data (evidence: `backend/app/services/simulation_service.py`)
- Scenario Simulation → Prediction Service: requests predictions (evidence: `backend/app/services/simulation_service.py`)
- Fleet Manager → Predictions: reviews risk
- Fleet Manager → Depot Logistics: plans shortages
- Fleet Manager → Schedule Optimizer: optimizes schedule
