# ambatitharunsai-tech/edunexus-ai architecture

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

- Interactive diagram: https://gitdiagram.com/ambatitharunsai-tech/edunexus-ai
- Repository: https://github.com/ambatitharunsai-tech/edunexus-ai

## Overview

EduNexus AI is an educator-facing student success and journey intelligence platform. Advisors review cohort risk and trends, inspect student records and chronological journeys, then track interventions and outcomes; analytics provides a cohort-level view. The frontend routes those workflows through a shared API client to FastAPI, with dashboard aggregation and a repository-backed database service. The README documents explainable indicators and human review. Several route and page implementations were not sampled, so uncertain backend dispatches are left unconnected or marked unverified.

Main entry points: [`frontend/src/App.tsx`](https://github.com/ambatitharunsai-tech/edunexus-ai/blob/main/frontend/src/App.tsx) (Application Routes), [`backend/app/api/v1`](https://github.com/ambatitharunsai-tech/edunexus-ai/tree/main/backend/app/api/v1) (Versioned API Routes), [`frontend/src/pages/DashboardPage.tsx`](https://github.com/ambatitharunsai-tech/edunexus-ai/blob/main/frontend/src/pages/DashboardPage.tsx) (Cohort Dashboard), [`backend/app/services/database_service.py`](https://github.com/ambatitharunsai-tech/edunexus-ai/blob/main/backend/app/services/database_service.py) (Domain Data Service)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["Advisor Experience"]
  node_app["Application Routes<br/>[App.tsx]"]
  node_shell["Navigation Shell<br/>[AppShell.tsx]"]
  node_dashboard_page["Cohort Dashboard<br/>[DashboardPage.tsx]"]
  node_students_page["Student Directory<br/>[StudentsPage.tsx]"]
  node_journey_page["Student Journey"]
  node_interventions_page["Intervention Tracking"]
  node_analytics_page["Cohort Analytics<br/>[AnalyticsPage.tsx]"]
  node_journey_views["Journey Views"]
  node_student_views["Student Views"]
  node_dashboard_actions["Dashboard Actions"]
end

subgraph group_insight["Student Intelligence"]
  node_dashboard_hook["Dashboard Data Hook"]
end

subgraph group_api["API Surface"]
  node_api_client["HTTP API Client<br/>[api.ts]"]
  node_backend_app["FastAPI Application<br/>[main.py]"]
  node_v1_routes["Versioned API Routes"]
  node_student_routes["Student Routes<br/>[students.py]"]
end

subgraph group_domain["Domain Services"]
  node_dashboard_service["Dashboard Aggregation"]
  node_database_service["Domain Data Service"]
  node_risk_engine["Explainable Risk Engine<br/>[risk_engine.py]"]
  node_csv_processor["CSV Processing<br/>[csv_processor.py]"]
end

subgraph group_persistence["Persistence"]
  node_repositories["Domain Repositories"]
  node_db_client["Supabase Client<br/>[client.py]"]
end

node_educator(("Educator / Advisor"))
node_postgres[("Supabase PostgreSQL")]

node_educator -->|"uses"| node_app
node_app -->|"renders"| node_shell
node_app -->|"routes"| node_dashboard_page
node_app -->|"routes"| node_students_page
node_app -->|"routes"| node_journey_page
node_app -->|"routes"| node_interventions_page
node_app -->|"routes"| node_analytics_page
node_dashboard_page -->|"loads data"| node_dashboard_hook
node_dashboard_page -->|"renders"| node_dashboard_actions
node_students_page -.->|"renders"| node_student_views
node_journey_page -.->|"renders"| node_journey_views
node_dashboard_hook -->|"requests data"| node_api_client
node_api_client -->|"HTTP requests"| node_v1_routes
node_backend_app -->|"mounts routes"| node_v1_routes
node_student_routes -->|"calls service"| node_database_service
node_dashboard_service -->|"queries data"| node_database_service
node_database_service -->|"delegates storage"| node_repositories
node_repositories -->|"uses client"| node_db_client
node_db_client -->|"queries"| node_postgres
node_v1_routes -.->|"dispatches dashboard"| node_dashboard_service
node_v1_routes -.->|"dispatches risk analysis"| node_risk_engine
node_v1_routes -.->|"dispatches imports"| node_csv_processor

click node_app "https://github.com/ambatitharunsai-tech/edunexus-ai/blob/main/frontend/src/App.tsx"
click node_shell "https://github.com/ambatitharunsai-tech/edunexus-ai/blob/main/frontend/src/layouts/AppShell.tsx"
click node_dashboard_page "https://github.com/ambatitharunsai-tech/edunexus-ai/blob/main/frontend/src/pages/DashboardPage.tsx"
click node_students_page "https://github.com/ambatitharunsai-tech/edunexus-ai/blob/main/frontend/src/pages/StudentsPage.tsx"
click node_journey_page "https://github.com/ambatitharunsai-tech/edunexus-ai/blob/main/frontend/src/pages/StudentJourneyPage.tsx"
click node_interventions_page "https://github.com/ambatitharunsai-tech/edunexus-ai/blob/main/frontend/src/pages/InterventionsPage.tsx"
click node_analytics_page "https://github.com/ambatitharunsai-tech/edunexus-ai/blob/main/frontend/src/pages/AnalyticsPage.tsx"
click node_journey_views "https://github.com/ambatitharunsai-tech/edunexus-ai/tree/main/frontend/src/features/journey"
click node_student_views "https://github.com/ambatitharunsai-tech/edunexus-ai/tree/main/frontend/src/features/students"
click node_dashboard_actions "https://github.com/ambatitharunsai-tech/edunexus-ai/tree/main/frontend/src/features/dashboard"
click node_dashboard_hook "https://github.com/ambatitharunsai-tech/edunexus-ai/blob/main/frontend/src/hooks/useDashboardData.ts"
click node_api_client "https://github.com/ambatitharunsai-tech/edunexus-ai/blob/main/frontend/src/lib/api.ts"
click node_backend_app "https://github.com/ambatitharunsai-tech/edunexus-ai/blob/main/backend/app/main.py"
click node_v1_routes "https://github.com/ambatitharunsai-tech/edunexus-ai/tree/main/backend/app/api/v1"
click node_student_routes "https://github.com/ambatitharunsai-tech/edunexus-ai/blob/main/backend/app/routers/students.py"
click node_dashboard_service "https://github.com/ambatitharunsai-tech/edunexus-ai/blob/main/backend/app/services/dashboard_service.py"
click node_database_service "https://github.com/ambatitharunsai-tech/edunexus-ai/blob/main/backend/app/services/database_service.py"
click node_risk_engine "https://github.com/ambatitharunsai-tech/edunexus-ai/blob/main/backend/app/services/risk_engine.py"
click node_csv_processor "https://github.com/ambatitharunsai-tech/edunexus-ai/blob/main/backend/app/services/csv_processor.py"
click node_repositories "https://github.com/ambatitharunsai-tech/edunexus-ai/tree/main/backend/app/db/repositories"
click node_db_client "https://github.com/ambatitharunsai-tech/edunexus-ai/blob/main/backend/app/db/client.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,node_shell,node_dashboard_page,node_students_page,node_journey_page,node_interventions_page,node_analytics_page,node_journey_views,node_student_views,node_dashboard_actions toneBlue
class node_dashboard_hook,node_postgres toneAmber
class node_api_client,node_backend_app,node_v1_routes,node_student_routes toneMint
class node_dashboard_service,node_database_service,node_risk_engine,node_csv_processor toneRose
class node_repositories,node_db_client,node_educator toneIndigo
```

## Components

### Advisor Experience

- [Application Routes](https://github.com/ambatitharunsai-tech/edunexus-ai/blob/main/frontend/src/App.tsx): `frontend/src/App.tsx`
- [Navigation Shell](https://github.com/ambatitharunsai-tech/edunexus-ai/blob/main/frontend/src/layouts/AppShell.tsx): `frontend/src/layouts/AppShell.tsx`
- [Cohort Dashboard](https://github.com/ambatitharunsai-tech/edunexus-ai/blob/main/frontend/src/pages/DashboardPage.tsx): `frontend/src/pages/DashboardPage.tsx`
- [Student Directory](https://github.com/ambatitharunsai-tech/edunexus-ai/blob/main/frontend/src/pages/StudentsPage.tsx): `frontend/src/pages/StudentsPage.tsx`
- [Student Journey](https://github.com/ambatitharunsai-tech/edunexus-ai/blob/main/frontend/src/pages/StudentJourneyPage.tsx): `frontend/src/pages/StudentJourneyPage.tsx`
- [Intervention Tracking](https://github.com/ambatitharunsai-tech/edunexus-ai/blob/main/frontend/src/pages/InterventionsPage.tsx): `frontend/src/pages/InterventionsPage.tsx`
- [Cohort Analytics](https://github.com/ambatitharunsai-tech/edunexus-ai/blob/main/frontend/src/pages/AnalyticsPage.tsx): `frontend/src/pages/AnalyticsPage.tsx`
- [Journey Views](https://github.com/ambatitharunsai-tech/edunexus-ai/tree/main/frontend/src/features/journey): `frontend/src/features/journey`
- [Student Views](https://github.com/ambatitharunsai-tech/edunexus-ai/tree/main/frontend/src/features/students): `frontend/src/features/students`
- [Dashboard Actions](https://github.com/ambatitharunsai-tech/edunexus-ai/tree/main/frontend/src/features/dashboard): `frontend/src/features/dashboard`

### Student Intelligence

- [Dashboard Data Hook](https://github.com/ambatitharunsai-tech/edunexus-ai/blob/main/frontend/src/hooks/useDashboardData.ts): `frontend/src/hooks/useDashboardData.ts`

### API Surface

- [HTTP API Client](https://github.com/ambatitharunsai-tech/edunexus-ai/blob/main/frontend/src/lib/api.ts): `frontend/src/lib/api.ts`
- [FastAPI Application](https://github.com/ambatitharunsai-tech/edunexus-ai/blob/main/backend/app/main.py): `backend/app/main.py`
- [Versioned API Routes](https://github.com/ambatitharunsai-tech/edunexus-ai/tree/main/backend/app/api/v1): `backend/app/api/v1`
- [Student Routes](https://github.com/ambatitharunsai-tech/edunexus-ai/blob/main/backend/app/routers/students.py): `backend/app/routers/students.py`

### Domain Services

- [Dashboard Aggregation](https://github.com/ambatitharunsai-tech/edunexus-ai/blob/main/backend/app/services/dashboard_service.py): `backend/app/services/dashboard_service.py`
- [Domain Data Service](https://github.com/ambatitharunsai-tech/edunexus-ai/blob/main/backend/app/services/database_service.py): `backend/app/services/database_service.py`
- [Explainable Risk Engine](https://github.com/ambatitharunsai-tech/edunexus-ai/blob/main/backend/app/services/risk_engine.py): `backend/app/services/risk_engine.py`
- [CSV Processing](https://github.com/ambatitharunsai-tech/edunexus-ai/blob/main/backend/app/services/csv_processor.py): `backend/app/services/csv_processor.py`

### Persistence

- [Domain Repositories](https://github.com/ambatitharunsai-tech/edunexus-ai/tree/main/backend/app/db/repositories): `backend/app/db/repositories`
- [Supabase Client](https://github.com/ambatitharunsai-tech/edunexus-ai/blob/main/backend/app/db/client.py): `backend/app/db/client.py`

### Other components

- **Educator / Advisor**
- **Supabase PostgreSQL**

## Connections

- Educator / Advisor → Application Routes: uses (evidence: `README.md`)
- Application Routes → Navigation Shell: renders (evidence: `frontend/src/App.tsx`)
- Application Routes → Cohort Dashboard: routes (evidence: `frontend/src/App.tsx`)
- Application Routes → Student Directory: routes (evidence: `frontend/src/App.tsx`)
- Application Routes → Student Journey: routes (evidence: `frontend/src/App.tsx`)
- Application Routes → Intervention Tracking: routes (evidence: `frontend/src/App.tsx`)
- Application Routes → Cohort Analytics: routes (evidence: `frontend/src/App.tsx`)
- Cohort Dashboard → Dashboard Data Hook: loads data (evidence: `frontend/src/pages/DashboardPage.tsx`)
- Cohort Dashboard → Dashboard Actions: renders (evidence: `frontend/src/pages/DashboardPage.tsx`)
- Student Directory → Student Views: renders
- Student Journey → Journey Views: renders
- Dashboard Data Hook → HTTP API Client: requests data (evidence: `frontend/src/hooks/useDashboardData.ts`)
- HTTP API Client → Versioned API Routes: HTTP requests
- FastAPI Application → Versioned API Routes: mounts routes (evidence: `backend/app/main.py`)
- Student Routes → Domain Data Service: calls service (evidence: `backend/app/routers/students.py`)
- Dashboard Aggregation → Domain Data Service: queries data (evidence: `backend/app/services/dashboard_service.py`)
- Domain Data Service → Domain Repositories: delegates storage (evidence: `backend/app/services/database_service.py`)
- Domain Repositories → Supabase Client: uses client (evidence: `backend/app/db/repositories/intervention_repo.py`)
- Supabase Client → Supabase PostgreSQL: queries (evidence: `backend/app/db/client.py`)
- Versioned API Routes → Dashboard Aggregation: dispatches dashboard (evidence: `backend/app/api/v1/students.py`)
- Versioned API Routes → Explainable Risk Engine: dispatches risk analysis
- Versioned API Routes → CSV Processing: dispatches imports
