# krithikashree1957/eduguard architecture

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

- Interactive diagram: https://gitdiagram.com/krithikashree1957/eduguard
- Repository: https://github.com/krithikashree1957/eduguard

## Overview

EduGuard is a student-support platform: staff review student profiles and performance, receive explainable heuristic and optional ML risk assessments with recommendations, then coordinate follow-up. The graph also preserves intervention, support, notification, and academic/wellbeing resource-integration capabilities documented in the README. Source excerpts show the risk controller’s orchestration and several service-to-repository calls; other cross-service and UI connections are based on README descriptions. Live external-provider wiring is not established by the excerpts.

Main entry points: [`risk-recommendation-service/src/main/java/com/eduguard/risk_recommendation_service/RiskAssessmentController.java`](https://github.com/krithikashree1957/eduguard/blob/main/risk-recommendation-service/src/main/java/com/eduguard/risk_recommendation_service/RiskAssessmentController.java) (Risk Assessment API), [`eduguard/src/main/resources/static/js/dashboard.js`](https://github.com/krithikashree1957/eduguard/blob/main/eduguard/src/main/resources/static/js/dashboard.js) (Dashboard and Student UI), [`eduguard/src/main/java/com/eduguard/eduguard/performance/StudentPerformanceController.java`](https://github.com/krithikashree1957/eduguard/blob/main/eduguard/src/main/java/com/eduguard/eduguard/performance/StudentPerformanceController.java) (Performance Indicators), [`eduguard/src/main/java/com/eduguard/eduguard/student/StudentRepository.java`](https://github.com/krithikashree1957/eduguard/blob/main/eduguard/src/main/java/com/eduguard/eduguard/student/StudentRepository.java) (Student Records)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_student_data["Student Data"]
  node_web["Dashboard and Student UI<br/>[dashboard.js]"]
  node_student_api["Student Profiles"]
  node_student_store[("Student Records")]
  node_performance_api["Performance Indicators"]
  node_performance_store[("Performance Records")]
end

subgraph group_risk["Risk Assessment"]
  node_risk_api["Risk Assessment API"]
  node_performance_client["Performance REST Client"]
  node_heuristic["Heuristic Scoring"]
  node_logistic_model["Logistic Regression"]
  node_recommendations["Support Recommendations"]
end

subgraph group_support["Support Workflows"]
  node_intervention_api["Intervention Cases"]
  node_intervention_service["Case and Follow-up Service"]
  node_case_store[("Cases and Activities")]
  node_support_api["Student Support Options"]
  node_support_service["Support Records Service"]
  node_support_store[("Barrier and Aid Records")]
  node_notification_api["Notifications"]
  node_notification_service["Notification Delivery"]
  node_notification_store[("Notification Records")]
end

subgraph group_integration["Resource Integrations"]
  node_integration_api["Resource Search API"]
  node_integration_service["Adapter Dispatcher"]
  node_academic_adapter["Academic Adapter"]
  node_wellbeing_adapter["Wellbeing Adapter"]
end

node_staff(("Educator / Staff"))
node_external_resources{{"Configured Resource Providers"}}

node_staff -->|"uses"| node_web
node_web -.->|"requests profiles"| node_student_api
node_student_api -->|"reads records"| node_student_store
node_web -.->|"requests indicators"| node_performance_api
node_performance_api -->|"checks student"| node_student_store
node_performance_api -->|"reads indicators"| node_performance_store
node_performance_client -->|"fetches over REST"| node_performance_api
node_risk_api -->|"fetches performance"| node_performance_client
node_risk_api -->|"calculates score"| node_heuristic
node_risk_api -->|"predicts when valid"| node_logistic_model
node_risk_api -->|"generates suggestions"| node_recommendations
node_risk_api -.->|"returns assessment"| node_web
node_staff -.->|"coordinates support"| node_intervention_api
node_intervention_api -->|"delegates cases"| node_intervention_service
node_intervention_service -->|"persists case activity"| node_case_store
node_intervention_service -->|"checks student"| node_student_store
node_staff -.->|"manages support"| node_support_api
node_support_api -->|"delegates requests"| node_support_service
node_support_service -->|"reads and saves"| node_support_store
node_support_service -->|"checks student"| node_student_store
node_staff -.->|"manages notifications"| node_notification_api
node_notification_api -->|"delegates requests"| node_notification_service
node_notification_service -->|"records delivery"| node_notification_store
node_staff -.->|"searches resources"| node_integration_api
node_integration_api -->|"dispatches search"| node_integration_service
node_integration_service -->|"dispatches academic"| node_academic_adapter
node_integration_service -->|"dispatches wellbeing"| node_wellbeing_adapter
node_academic_adapter -.->|"queries provider"| node_external_resources
node_wellbeing_adapter -.->|"queries provider"| node_external_resources

click node_web "https://github.com/krithikashree1957/eduguard/blob/main/eduguard/src/main/resources/static/js/dashboard.js"
click node_student_api "https://github.com/krithikashree1957/eduguard/blob/main/eduguard/src/main/java/com/eduguard/eduguard/student/StudentController.java"
click node_student_store "https://github.com/krithikashree1957/eduguard/blob/main/eduguard/src/main/java/com/eduguard/eduguard/student/StudentRepository.java"
click node_performance_api "https://github.com/krithikashree1957/eduguard/blob/main/eduguard/src/main/java/com/eduguard/eduguard/performance/StudentPerformanceController.java"
click node_performance_store "https://github.com/krithikashree1957/eduguard/blob/main/eduguard/src/main/java/com/eduguard/eduguard/performance/AttendanceRepository.java"
click node_risk_api "https://github.com/krithikashree1957/eduguard/blob/main/risk-recommendation-service/src/main/java/com/eduguard/risk_recommendation_service/RiskAssessmentController.java"
click node_performance_client "https://github.com/krithikashree1957/eduguard/blob/main/risk-recommendation-service/src/main/java/com/eduguard/risk_recommendation_service/StudentPerformanceClient.java"
click node_heuristic "https://github.com/krithikashree1957/eduguard/blob/main/risk-recommendation-service/src/main/java/com/eduguard/risk_recommendation_service/RiskAssessmentCalculator.java"
click node_logistic_model "https://github.com/krithikashree1957/eduguard/blob/main/risk-recommendation-service/src/main/java/com/eduguard/risk_recommendation_service/LogisticRegressionRiskModel.java"
click node_recommendations "https://github.com/krithikashree1957/eduguard/blob/main/risk-recommendation-service/src/main/java/com/eduguard/risk_recommendation_service/RecommendationGenerator.java"
click node_intervention_api "https://github.com/krithikashree1957/eduguard/blob/main/eduguard/src/main/java/com/eduguard/eduguard/intervention/InterventionController.java"
click node_intervention_service "https://github.com/krithikashree1957/eduguard/blob/main/eduguard/src/main/java/com/eduguard/eduguard/intervention/InterventionService.java"
click node_case_store "https://github.com/krithikashree1957/eduguard/blob/main/eduguard/src/main/java/com/eduguard/eduguard/intervention/InterventionCaseRepository.java"
click node_support_api "https://github.com/krithikashree1957/eduguard/blob/main/eduguard/src/main/java/com/eduguard/eduguard/support/StudentSupportController.java"
click node_support_service "https://github.com/krithikashree1957/eduguard/blob/main/eduguard/src/main/java/com/eduguard/eduguard/support/StudentSupportService.java"
click node_support_store "https://github.com/krithikashree1957/eduguard/blob/main/eduguard/src/main/java/com/eduguard/eduguard/support/SupportBarrierRepository.java"
click node_notification_api "https://github.com/krithikashree1957/eduguard/blob/main/eduguard/src/main/java/com/eduguard/eduguard/notification/NotificationController.java"
click node_notification_service "https://github.com/krithikashree1957/eduguard/blob/main/eduguard/src/main/java/com/eduguard/eduguard/notification/NotificationService.java"
click node_notification_store "https://github.com/krithikashree1957/eduguard/blob/main/eduguard/src/main/java/com/eduguard/eduguard/notification/NotificationRepositories.java"
click node_integration_api "https://github.com/krithikashree1957/eduguard/blob/main/eduguard/src/main/java/com/eduguard/eduguard/integration/api/IntegrationResourceController.java"
click node_integration_service "https://github.com/krithikashree1957/eduguard/blob/main/eduguard/src/main/java/com/eduguard/eduguard/integration/service/DefaultResourceIntegrationService.java"
click node_academic_adapter "https://github.com/krithikashree1957/eduguard/blob/main/eduguard/src/main/java/com/eduguard/eduguard/integration/adapter/AcademicResourceIntegrationAdapter.java"
click node_wellbeing_adapter "https://github.com/krithikashree1957/eduguard/blob/main/eduguard/src/main/java/com/eduguard/eduguard/integration/adapter/WellbeingResourceIntegrationAdapter.java"

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_web,node_student_api,node_student_store,node_performance_api,node_performance_store toneBlue
class node_risk_api,node_performance_client,node_heuristic,node_logistic_model,node_recommendations toneAmber
class node_intervention_api,node_intervention_service,node_case_store,node_support_api,node_support_service,node_support_store,node_notification_api,node_notification_service,node_notification_store toneMint
class node_integration_api,node_integration_service,node_academic_adapter,node_wellbeing_adapter toneRose
class node_staff,node_external_resources toneIndigo
```

## Components

### Student Data

- [Dashboard and Student UI](https://github.com/krithikashree1957/eduguard/blob/main/eduguard/src/main/resources/static/js/dashboard.js): `eduguard/src/main/resources/static/js/dashboard.js`
- [Student Profiles](https://github.com/krithikashree1957/eduguard/blob/main/eduguard/src/main/java/com/eduguard/eduguard/student/StudentController.java): `eduguard/src/main/java/com/eduguard/eduguard/student/StudentController.java`
- [Student Records](https://github.com/krithikashree1957/eduguard/blob/main/eduguard/src/main/java/com/eduguard/eduguard/student/StudentRepository.java): `eduguard/src/main/java/com/eduguard/eduguard/student/StudentRepository.java`
- [Performance Indicators](https://github.com/krithikashree1957/eduguard/blob/main/eduguard/src/main/java/com/eduguard/eduguard/performance/StudentPerformanceController.java): `eduguard/src/main/java/com/eduguard/eduguard/performance/StudentPerformanceController.java`
- [Performance Records](https://github.com/krithikashree1957/eduguard/blob/main/eduguard/src/main/java/com/eduguard/eduguard/performance/AttendanceRepository.java): `eduguard/src/main/java/com/eduguard/eduguard/performance/AttendanceRepository.java`

### Risk Assessment

- [Risk Assessment API](https://github.com/krithikashree1957/eduguard/blob/main/risk-recommendation-service/src/main/java/com/eduguard/risk_recommendation_service/RiskAssessmentController.java): `risk-recommendation-service/src/main/java/com/eduguard/risk_recommendation_service/RiskAssessmentController.java`
- [Performance REST Client](https://github.com/krithikashree1957/eduguard/blob/main/risk-recommendation-service/src/main/java/com/eduguard/risk_recommendation_service/StudentPerformanceClient.java): `risk-recommendation-service/src/main/java/com/eduguard/risk_recommendation_service/StudentPerformanceClient.java`
- [Heuristic Scoring](https://github.com/krithikashree1957/eduguard/blob/main/risk-recommendation-service/src/main/java/com/eduguard/risk_recommendation_service/RiskAssessmentCalculator.java): `risk-recommendation-service/src/main/java/com/eduguard/risk_recommendation_service/RiskAssessmentCalculator.java`
- [Logistic Regression](https://github.com/krithikashree1957/eduguard/blob/main/risk-recommendation-service/src/main/java/com/eduguard/risk_recommendation_service/LogisticRegressionRiskModel.java): `risk-recommendation-service/src/main/java/com/eduguard/risk_recommendation_service/LogisticRegressionRiskModel.java`
- [Support Recommendations](https://github.com/krithikashree1957/eduguard/blob/main/risk-recommendation-service/src/main/java/com/eduguard/risk_recommendation_service/RecommendationGenerator.java): `risk-recommendation-service/src/main/java/com/eduguard/risk_recommendation_service/RecommendationGenerator.java`

### Support Workflows

- [Intervention Cases](https://github.com/krithikashree1957/eduguard/blob/main/eduguard/src/main/java/com/eduguard/eduguard/intervention/InterventionController.java): `eduguard/src/main/java/com/eduguard/eduguard/intervention/InterventionController.java`
- [Case and Follow-up Service](https://github.com/krithikashree1957/eduguard/blob/main/eduguard/src/main/java/com/eduguard/eduguard/intervention/InterventionService.java): `eduguard/src/main/java/com/eduguard/eduguard/intervention/InterventionService.java`
- [Cases and Activities](https://github.com/krithikashree1957/eduguard/blob/main/eduguard/src/main/java/com/eduguard/eduguard/intervention/InterventionCaseRepository.java): `eduguard/src/main/java/com/eduguard/eduguard/intervention/InterventionCaseRepository.java`
- [Student Support Options](https://github.com/krithikashree1957/eduguard/blob/main/eduguard/src/main/java/com/eduguard/eduguard/support/StudentSupportController.java): `eduguard/src/main/java/com/eduguard/eduguard/support/StudentSupportController.java`
- [Support Records Service](https://github.com/krithikashree1957/eduguard/blob/main/eduguard/src/main/java/com/eduguard/eduguard/support/StudentSupportService.java): `eduguard/src/main/java/com/eduguard/eduguard/support/StudentSupportService.java`
- [Barrier and Aid Records](https://github.com/krithikashree1957/eduguard/blob/main/eduguard/src/main/java/com/eduguard/eduguard/support/SupportBarrierRepository.java): `eduguard/src/main/java/com/eduguard/eduguard/support/SupportBarrierRepository.java`
- [Notifications](https://github.com/krithikashree1957/eduguard/blob/main/eduguard/src/main/java/com/eduguard/eduguard/notification/NotificationController.java): `eduguard/src/main/java/com/eduguard/eduguard/notification/NotificationController.java`
- [Notification Delivery](https://github.com/krithikashree1957/eduguard/blob/main/eduguard/src/main/java/com/eduguard/eduguard/notification/NotificationService.java): `eduguard/src/main/java/com/eduguard/eduguard/notification/NotificationService.java`
- [Notification Records](https://github.com/krithikashree1957/eduguard/blob/main/eduguard/src/main/java/com/eduguard/eduguard/notification/NotificationRepositories.java): `eduguard/src/main/java/com/eduguard/eduguard/notification/NotificationRepositories.java`

### Resource Integrations

- [Resource Search API](https://github.com/krithikashree1957/eduguard/blob/main/eduguard/src/main/java/com/eduguard/eduguard/integration/api/IntegrationResourceController.java): `eduguard/src/main/java/com/eduguard/eduguard/integration/api/IntegrationResourceController.java`
- [Adapter Dispatcher](https://github.com/krithikashree1957/eduguard/blob/main/eduguard/src/main/java/com/eduguard/eduguard/integration/service/DefaultResourceIntegrationService.java): `eduguard/src/main/java/com/eduguard/eduguard/integration/service/DefaultResourceIntegrationService.java`
- [Academic Adapter](https://github.com/krithikashree1957/eduguard/blob/main/eduguard/src/main/java/com/eduguard/eduguard/integration/adapter/AcademicResourceIntegrationAdapter.java): `eduguard/src/main/java/com/eduguard/eduguard/integration/adapter/AcademicResourceIntegrationAdapter.java`
- [Wellbeing Adapter](https://github.com/krithikashree1957/eduguard/blob/main/eduguard/src/main/java/com/eduguard/eduguard/integration/adapter/WellbeingResourceIntegrationAdapter.java): `eduguard/src/main/java/com/eduguard/eduguard/integration/adapter/WellbeingResourceIntegrationAdapter.java`

### Other components

- **Educator / Staff**
- **Configured Resource Providers**

## Connections

- Educator / Staff → Dashboard and Student UI: uses
- Dashboard and Student UI → Student Profiles: requests profiles
- Student Profiles → Student Records: reads records (evidence: `eduguard/src/main/java/com/eduguard/eduguard/student/StudentController.java`)
- Dashboard and Student UI → Performance Indicators: requests indicators
- Performance Indicators → Student Records: checks student (evidence: `eduguard/src/main/java/com/eduguard/eduguard/performance/StudentPerformanceController.java`)
- Performance Indicators → Performance Records: reads indicators (evidence: `eduguard/src/main/java/com/eduguard/eduguard/performance/StudentPerformanceController.java`)
- Performance REST Client → Performance Indicators: fetches over REST (evidence: `risk-recommendation-service/src/main/java/com/eduguard/risk_recommendation_service/StudentPerformanceClient.java`)
- Risk Assessment API → Performance REST Client: fetches performance (evidence: `risk-recommendation-service/src/main/java/com/eduguard/risk_recommendation_service/RiskAssessmentController.java`)
- Risk Assessment API → Heuristic Scoring: calculates score (evidence: `risk-recommendation-service/src/main/java/com/eduguard/risk_recommendation_service/RiskAssessmentController.java`)
- Risk Assessment API → Logistic Regression: predicts when valid (evidence: `risk-recommendation-service/src/main/java/com/eduguard/risk_recommendation_service/RiskAssessmentController.java`)
- Risk Assessment API → Support Recommendations: generates suggestions (evidence: `risk-recommendation-service/src/main/java/com/eduguard/risk_recommendation_service/RiskAssessmentController.java`)
- Risk Assessment API → Dashboard and Student UI: returns assessment
- Educator / Staff → Intervention Cases: coordinates support
- Intervention Cases → Case and Follow-up Service: delegates cases (evidence: `eduguard/src/main/java/com/eduguard/eduguard/intervention/InterventionController.java`)
- Case and Follow-up Service → Cases and Activities: persists case activity (evidence: `eduguard/src/main/java/com/eduguard/eduguard/intervention/InterventionService.java`)
- Case and Follow-up Service → Student Records: checks student (evidence: `eduguard/src/main/java/com/eduguard/eduguard/intervention/InterventionService.java`)
- Educator / Staff → Student Support Options: manages support
- Student Support Options → Support Records Service: delegates requests (evidence: `eduguard/src/main/java/com/eduguard/eduguard/support/StudentSupportController.java`)
- Support Records Service → Barrier and Aid Records: reads and saves (evidence: `eduguard/src/main/java/com/eduguard/eduguard/support/StudentSupportService.java`)
- Support Records Service → Student Records: checks student (evidence: `eduguard/src/main/java/com/eduguard/eduguard/support/StudentSupportService.java`)
- Educator / Staff → Notifications: manages notifications
- Notifications → Notification Delivery: delegates requests (evidence: `eduguard/src/main/java/com/eduguard/eduguard/notification/NotificationController.java`)
- Notification Delivery → Notification Records: records delivery (evidence: `eduguard/src/main/java/com/eduguard/eduguard/notification/NotificationService.java`)
- Educator / Staff → Resource Search API: searches resources
- Resource Search API → Adapter Dispatcher: dispatches search (evidence: `eduguard/src/main/java/com/eduguard/eduguard/integration/api/IntegrationResourceController.java`)
- Adapter Dispatcher → Academic Adapter: dispatches academic (evidence: `eduguard/src/main/java/com/eduguard/eduguard/integration/service/DefaultResourceIntegrationService.java`)
- Adapter Dispatcher → Wellbeing Adapter: dispatches wellbeing (evidence: `eduguard/src/main/java/com/eduguard/eduguard/integration/service/DefaultResourceIntegrationService.java`)
- Academic Adapter → Configured Resource Providers: queries provider
- Wellbeing Adapter → Configured Resource Providers: queries provider
