# jay4ignite/edunex architecture

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

- Interactive diagram: https://gitdiagram.com/jay4ignite/edunex
- Repository: https://github.com/jay4ignite/edunex

## Overview

EduNex is a student-success analytics platform for university staff: staff inspect cohort and individual student views, review risk and success signals, and manage human-reviewed support interventions. Its backend also ingests and validates student-domain data, computes scores and segments, and serves model explanations; the frontend exposes dashboard, risk, student, insight, and intervention workflows. The graph follows documented capabilities and source-index references; some frontend-to-API and unsampled feature connections are shown as unverified rather than asserted as inspected calls.

Main entry points: [`frontend/src/app/App.tsx`](https://github.com/jay4ignite/edunex/blob/main/frontend/src/app/App.tsx) (EduNex web app), [`backend/app/main.py`](https://github.com/jay4ignite/edunex/blob/main/backend/app/main.py) (FastAPI application), [`backend/app/services/ml_prediction_service.py`](https://github.com/jay4ignite/edunex/blob/main/backend/app/services/ml_prediction_service.py) (Academic risk prediction), [`backend/app/api/endpoints/students.py`](https://github.com/jay4ignite/edunex/blob/main/backend/app/api/endpoints/students.py) (Student endpoints)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["Staff experience"]
  node_webapp["EduNex web app<br/>[App.tsx]"]
  node_dashboard["Cohort dashboard<br/>[index.tsx]"]
  node_student_views["Student views<br/>[index.tsx]"]
  node_risk_views["Risk and priority views<br/>[index.tsx]"]
  node_insight_views["Insights and segments<br/>[index.tsx]"]
  node_intervention_views["Intervention tracker<br/>[index.tsx]"]
  node_integration_view["Data integration view<br/>[index.tsx]"]
end

subgraph group_api["API and access"]
  node_api_app["FastAPI application<br/>[main.py]"]
  node_auth["Demo identity and access scope<br/>[demo_auth.py]"]
  node_student_api["Student endpoints<br/>[students.py]"]
  node_analytics_api["Analytics endpoints<br/>[analytics.py]"]
  node_risk_api["Risk and scoring endpoints<br/>[academic_risk.py]"]
  node_intervention_api["Intervention endpoints<br/>[interventions.py]"]
  node_realtime_api["WebSocket endpoints<br/>[websockets.py]"]
end

subgraph group_analytics["Student analytics"]
  node_student360["Student 360 and scoring<br/>[student_360.py]"]
  node_risk_services["Academic and placement risk<br/>[academic_risk.py]"]
  node_prediction["Academic risk prediction"]
  node_temporal["Temporal feature assembly"]
  node_inference["Model inference<br/>[inference.py]"]
  node_explanations["Risk explanations<br/>[explanation.py]"]
  node_insights["Insights and segmentation<br/>[insight.py]"]
end

subgraph group_operations["Support operations"]
  node_interventions["Intervention lifecycle<br/>[interventions.py]"]
  node_pubsub["Realtime event publishing<br/>[pubsub.py]"]
end

subgraph group_data["Data foundation"]
  node_ingestion["Domain data ingestion<br/>[ingestion.py]"]
  node_schemas["Canonical validation schemas<br/>[canonical.py]"]
  node_records["Student domain records<br/>[canonical.py]"]
  node_database[("PostgreSQL")]
  node_redis[("Redis cache and messaging<br/>[redis.py]")]
end

node_staff(("University staff"))

node_staff -->|"uses"| node_webapp
node_webapp -->|"routes to"| node_dashboard
node_webapp -->|"routes to"| node_student_views
node_webapp -->|"routes to"| node_risk_views
node_webapp -->|"routes to"| node_insight_views
node_webapp -->|"routes to"| node_intervention_views
node_webapp -->|"routes to"| node_integration_view
node_webapp -.->|"requests data"| node_api_app
node_api_app -->|"registers"| node_student_api
node_api_app -->|"registers"| node_analytics_api
node_api_app -->|"registers"| node_risk_api
node_api_app -->|"registers"| node_intervention_api
node_api_app -->|"registers"| node_realtime_api
node_api_app -->|"authenticates requests"| node_auth
node_student_api -->|"calls"| node_student360
node_student_api -->|"requests prediction"| node_prediction
node_analytics_api -->|"calls"| node_insights
node_risk_api -->|"calls"| node_risk_services
node_intervention_api -->|"calls"| node_interventions
node_realtime_api -->|"uses"| node_pubsub
node_prediction -->|"loads profile"| node_student360
node_prediction -->|"extracts features"| node_temporal
node_prediction -->|"predicts risk"| node_inference
node_prediction -->|"uses baseline"| node_explanations
node_inference -->|"uses feature contract"| node_temporal
node_temporal -->|"reads records"| node_records
node_ingestion -->|"validates records"| node_schemas
node_student360 -.->|"reads student data"| node_database
node_risk_services -.->|"reads and writes scores"| node_database
node_insights -.->|"queries cohort data"| node_database
node_interventions -.->|"stores audit workflow"| node_database
node_records -.->|"persists domain records"| node_database
node_api_app -->|"connects at startup"| node_redis
node_pubsub -->|"uses messaging"| node_redis
node_dashboard -.->|"loads cohort data"| node_student_api
node_student_views -.->|"loads student view"| node_student_api
node_risk_views -.->|"loads risk results"| node_risk_api
node_insight_views -.->|"loads insights"| node_analytics_api
node_intervention_views -.->|"manages interventions"| node_intervention_api

click node_webapp "https://github.com/jay4ignite/edunex/blob/main/frontend/src/app/App.tsx"
click node_dashboard "https://github.com/jay4ignite/edunex/blob/main/frontend/src/pages/Dashboard/index.tsx"
click node_student_views "https://github.com/jay4ignite/edunex/blob/main/frontend/src/pages/StudentProfile/index.tsx"
click node_risk_views "https://github.com/jay4ignite/edunex/blob/main/frontend/src/pages/Risks/index.tsx"
click node_insight_views "https://github.com/jay4ignite/edunex/blob/main/frontend/src/pages/Insights/index.tsx"
click node_intervention_views "https://github.com/jay4ignite/edunex/blob/main/frontend/src/pages/Interventions/index.tsx"
click node_integration_view "https://github.com/jay4ignite/edunex/blob/main/frontend/src/pages/DataIntegration/index.tsx"
click node_api_app "https://github.com/jay4ignite/edunex/blob/main/backend/app/main.py"
click node_auth "https://github.com/jay4ignite/edunex/blob/main/backend/app/core/demo_auth.py"
click node_student_api "https://github.com/jay4ignite/edunex/blob/main/backend/app/api/endpoints/students.py"
click node_analytics_api "https://github.com/jay4ignite/edunex/blob/main/backend/app/api/endpoints/analytics.py"
click node_risk_api "https://github.com/jay4ignite/edunex/blob/main/backend/app/api/endpoints/academic_risk.py"
click node_intervention_api "https://github.com/jay4ignite/edunex/blob/main/backend/app/api/endpoints/interventions.py"
click node_realtime_api "https://github.com/jay4ignite/edunex/blob/main/backend/app/api/endpoints/websockets.py"
click node_student360 "https://github.com/jay4ignite/edunex/blob/main/backend/app/services/student_360.py"
click node_risk_services "https://github.com/jay4ignite/edunex/blob/main/backend/app/services/academic_risk.py"
click node_prediction "https://github.com/jay4ignite/edunex/blob/main/backend/app/services/ml_prediction_service.py"
click node_temporal "https://github.com/jay4ignite/edunex/blob/main/backend/app/ml/features/temporal_aggregator.py"
click node_inference "https://github.com/jay4ignite/edunex/blob/main/backend/app/ml/inference.py"
click node_explanations "https://github.com/jay4ignite/edunex/blob/main/backend/app/services/explanation.py"
click node_insights "https://github.com/jay4ignite/edunex/blob/main/backend/app/services/insight.py"
click node_interventions "https://github.com/jay4ignite/edunex/blob/main/backend/app/services/interventions.py"
click node_pubsub "https://github.com/jay4ignite/edunex/blob/main/backend/app/services/pubsub.py"
click node_ingestion "https://github.com/jay4ignite/edunex/blob/main/backend/app/services/ingestion.py"
click node_schemas "https://github.com/jay4ignite/edunex/blob/main/backend/app/schemas/canonical.py"
click node_records "https://github.com/jay4ignite/edunex/blob/main/backend/app/models/canonical.py"
click node_redis "https://github.com/jay4ignite/edunex/blob/main/backend/app/core/redis.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_webapp,node_dashboard,node_student_views,node_risk_views,node_insight_views,node_intervention_views,node_integration_view toneBlue
class node_api_app,node_auth,node_student_api,node_analytics_api,node_risk_api,node_intervention_api,node_realtime_api toneAmber
class node_student360,node_risk_services,node_prediction,node_temporal,node_inference,node_explanations,node_insights toneMint
class node_interventions,node_pubsub toneRose
class node_ingestion,node_schemas,node_records,node_database,node_redis,node_staff toneIndigo
```

## Components

### Staff experience

- [EduNex web app](https://github.com/jay4ignite/edunex/blob/main/frontend/src/app/App.tsx): `frontend/src/app/App.tsx`
- [Cohort dashboard](https://github.com/jay4ignite/edunex/blob/main/frontend/src/pages/Dashboard/index.tsx): `frontend/src/pages/Dashboard/index.tsx`
- [Student views](https://github.com/jay4ignite/edunex/blob/main/frontend/src/pages/StudentProfile/index.tsx): `frontend/src/pages/StudentProfile/index.tsx`
- [Risk and priority views](https://github.com/jay4ignite/edunex/blob/main/frontend/src/pages/Risks/index.tsx): `frontend/src/pages/Risks/index.tsx`
- [Insights and segments](https://github.com/jay4ignite/edunex/blob/main/frontend/src/pages/Insights/index.tsx): `frontend/src/pages/Insights/index.tsx`
- [Intervention tracker](https://github.com/jay4ignite/edunex/blob/main/frontend/src/pages/Interventions/index.tsx): `frontend/src/pages/Interventions/index.tsx`
- [Data integration view](https://github.com/jay4ignite/edunex/blob/main/frontend/src/pages/DataIntegration/index.tsx): `frontend/src/pages/DataIntegration/index.tsx`

### API and access

- [FastAPI application](https://github.com/jay4ignite/edunex/blob/main/backend/app/main.py): `backend/app/main.py`
- [Demo identity and access scope](https://github.com/jay4ignite/edunex/blob/main/backend/app/core/demo_auth.py): `backend/app/core/demo_auth.py`
- [Student endpoints](https://github.com/jay4ignite/edunex/blob/main/backend/app/api/endpoints/students.py): `backend/app/api/endpoints/students.py`
- [Analytics endpoints](https://github.com/jay4ignite/edunex/blob/main/backend/app/api/endpoints/analytics.py): `backend/app/api/endpoints/analytics.py`
- [Risk and scoring endpoints](https://github.com/jay4ignite/edunex/blob/main/backend/app/api/endpoints/academic_risk.py): `backend/app/api/endpoints/academic_risk.py`
- [Intervention endpoints](https://github.com/jay4ignite/edunex/blob/main/backend/app/api/endpoints/interventions.py): `backend/app/api/endpoints/interventions.py`
- [WebSocket endpoints](https://github.com/jay4ignite/edunex/blob/main/backend/app/api/endpoints/websockets.py): `backend/app/api/endpoints/websockets.py`

### Student analytics

- [Student 360 and scoring](https://github.com/jay4ignite/edunex/blob/main/backend/app/services/student_360.py): `backend/app/services/student_360.py`
- [Academic and placement risk](https://github.com/jay4ignite/edunex/blob/main/backend/app/services/academic_risk.py): `backend/app/services/academic_risk.py`
- [Academic risk prediction](https://github.com/jay4ignite/edunex/blob/main/backend/app/services/ml_prediction_service.py): `backend/app/services/ml_prediction_service.py`
- [Temporal feature assembly](https://github.com/jay4ignite/edunex/blob/main/backend/app/ml/features/temporal_aggregator.py): `backend/app/ml/features/temporal_aggregator.py`
- [Model inference](https://github.com/jay4ignite/edunex/blob/main/backend/app/ml/inference.py): `backend/app/ml/inference.py`
- [Risk explanations](https://github.com/jay4ignite/edunex/blob/main/backend/app/services/explanation.py): `backend/app/services/explanation.py`
- [Insights and segmentation](https://github.com/jay4ignite/edunex/blob/main/backend/app/services/insight.py): `backend/app/services/insight.py`

### Support operations

- [Intervention lifecycle](https://github.com/jay4ignite/edunex/blob/main/backend/app/services/interventions.py): `backend/app/services/interventions.py`
- [Realtime event publishing](https://github.com/jay4ignite/edunex/blob/main/backend/app/services/pubsub.py): `backend/app/services/pubsub.py`

### Data foundation

- [Domain data ingestion](https://github.com/jay4ignite/edunex/blob/main/backend/app/services/ingestion.py): `backend/app/services/ingestion.py`
- [Canonical validation schemas](https://github.com/jay4ignite/edunex/blob/main/backend/app/schemas/canonical.py): `backend/app/schemas/canonical.py`
- [Student domain records](https://github.com/jay4ignite/edunex/blob/main/backend/app/models/canonical.py): `backend/app/models/canonical.py`
- **PostgreSQL**
- [Redis cache and messaging](https://github.com/jay4ignite/edunex/blob/main/backend/app/core/redis.py): `backend/app/core/redis.py`

### Other components

- **University staff**

## Connections

- University staff → EduNex web app: uses (evidence: `README.md`)
- EduNex web app → Cohort dashboard: routes to (evidence: `frontend/src/app/App.tsx`)
- EduNex web app → Student views: routes to (evidence: `frontend/src/app/App.tsx`)
- EduNex web app → Risk and priority views: routes to (evidence: `frontend/src/app/App.tsx`)
- EduNex web app → Insights and segments: routes to (evidence: `frontend/src/app/App.tsx`)
- EduNex web app → Intervention tracker: routes to (evidence: `frontend/src/app/App.tsx`)
- EduNex web app → Data integration view: routes to (evidence: `frontend/src/app/App.tsx`)
- EduNex web app → FastAPI application: requests data
- FastAPI application → Student endpoints: registers (evidence: `backend/app/main.py`)
- FastAPI application → Analytics endpoints: registers (evidence: `backend/app/main.py`)
- FastAPI application → Risk and scoring endpoints: registers (evidence: `backend/app/main.py`)
- FastAPI application → Intervention endpoints: registers (evidence: `backend/app/main.py`)
- FastAPI application → WebSocket endpoints: registers (evidence: `backend/app/main.py`)
- FastAPI application → Demo identity and access scope: authenticates requests (evidence: `backend/app/main.py`)
- Student endpoints → Student 360 and scoring: calls (evidence: `backend/app/api/endpoints/students.py`)
- Student endpoints → Academic risk prediction: requests prediction (evidence: `backend/app/api/endpoints/students.py`)
- Analytics endpoints → Insights and segmentation: calls (evidence: `backend/app/api/endpoints/analytics.py`)
- Risk and scoring endpoints → Academic and placement risk: calls (evidence: `backend/app/api/endpoints/academic_risk.py`)
- Intervention endpoints → Intervention lifecycle: calls (evidence: `backend/app/api/endpoints/interventions.py`)
- WebSocket endpoints → Realtime event publishing: uses (evidence: `backend/app/api/endpoints/websockets.py`)
- Academic risk prediction → Student 360 and scoring: loads profile (evidence: `backend/app/services/ml_prediction_service.py`)
- Academic risk prediction → Temporal feature assembly: extracts features (evidence: `backend/app/services/ml_prediction_service.py`)
- Academic risk prediction → Model inference: predicts risk (evidence: `backend/app/services/ml_prediction_service.py`)
- Academic risk prediction → Risk explanations: uses baseline (evidence: `backend/app/services/ml_prediction_service.py`)
- Model inference → Temporal feature assembly: uses feature contract (evidence: `backend/app/ml/inference.py`)
- Temporal feature assembly → Student domain records: reads records (evidence: `backend/app/ml/features/temporal_aggregator.py`)
- Domain data ingestion → Canonical validation schemas: validates records (evidence: `backend/app/services/ingestion.py`)
- Student 360 and scoring → PostgreSQL: reads student data
- Academic and placement risk → PostgreSQL: reads and writes scores
- Insights and segmentation → PostgreSQL: queries cohort data
- Intervention lifecycle → PostgreSQL: stores audit workflow
- Student domain records → PostgreSQL: persists domain records
- FastAPI application → Redis cache and messaging: connects at startup (evidence: `backend/app/main.py`)
- Realtime event publishing → Redis cache and messaging: uses messaging (evidence: `backend/app/services/pubsub.py`)
- Cohort dashboard → Student endpoints: loads cohort data
- Student views → Student endpoints: loads student view
- Risk and priority views → Risk and scoring endpoints: loads risk results
- Insights and segments → Analytics endpoints: loads insights
- Intervention tracker → Intervention endpoints: manages interventions
