How sivameghana7/codecraze works
Smart Campus Intelligence is a role-based student analytics platform. Administrators and faculty review institutional or cohort risk; students explore their own scores, attendance health, explanations, and placement readiness. The backend computes success metrics, predicts risk, segments behavioral personas, explains model outputs, and supports what-if simulation and intervention workflows. The README documents additional data-management and student-facing capabilities. Several endpoint implementations and frontend API calls were not sampled, so those links are shown as unverified rather than asserted as direct calls.
Main entry points: main.py FastAPI Router · simulation_engine.py What-If Simulation · data_integration_service.py Data Integration · auth.py Auth Routes
Components 25
Role Surfaces
- Admin Console
frontend/src/app/admin/page.tsx - Faculty Console
frontend/src/app/faculty/page.tsx - Student Portal
frontend/src/modules/student/StudentProfileView.tsx - Login Surface
frontend/src/app/login/page.tsx - API Client
frontend/src/lib/api/client.ts
API and Identity
- FastAPI Router
backend/app/main.py - Auth Routes
backend/app/api/auth.py - Authentication
backend/app/services/auth_service.py - Token Security
backend/app/core/security.py - Admin Routes
backend/app/api/admin.py - Faculty Routes
backend/app/api/faculty.py - Student Routes
backend/app/api/student.py
Student Analytics
- Success Scoring
backend/app/services/scoring_engine.py - Risk Prediction
backend/app/services/ml_service.py - Persona Clustering
backend/app/services/clustering_engine.py - Risk Explanations
backend/app/services/explainability_engine.py - What-If Simulation
backend/app/services/simulation_engine.py - Data Integration
backend/app/services/data_integration_service.py - XAI Routes
backend/app/api/xai.py - Simulation Routes
backend/app/api/simulator.py
Intervention Operations
- Intervention Routes
backend/app/api/interventions.py - Intervention Console
frontend/src/app/interventions/page.tsx
Persistence
- Relational Store
backend/app/core/database.py - Student Records
backend/app/models/student.py - Academic and Placement Indicators
backend/app/models/indicators.py
Connections 24
- Login Surface → Auth Routes: authenticates through
- API Client → FastAPI Router: sends API requests
- FastAPI Router → Auth Routes: mounts routes
- FastAPI Router → Admin Routes: mounts routes
- FastAPI Router → Faculty Routes: mounts routes
- FastAPI Router → Student Routes: mounts routes
- Auth Routes → Authentication: authenticates with
backend/app/api/auth.py - Authentication → Token Security: uses token security
backend/app/services/auth_service.py - Admin Console → Admin Routes: uses API
- Faculty Console → Faculty Routes: uses API
- Student Portal → Student Routes: uses API
- XAI Routes → Risk Explanations: requests explanations
- Risk Explanations → Risk Prediction: explains model outputs
backend/app/services/explainability_engine.py - Simulation Routes → What-If Simulation: dispatches simulation
- What-If Simulation → Success Scoring: computes scores with
backend/app/services/simulation_engine.py - What-If Simulation → Risk Prediction: predicts risk with
backend/app/services/simulation_engine.py - What-If Simulation → Persona Clustering: segments with
backend/app/services/simulation_engine.py - Admin Routes → Data Integration: uses data integration
- Data Integration → Success Scoring: computes metrics with
backend/app/services/data_integration_service.py - Data Integration → Risk Prediction: predicts risk with
backend/app/services/data_integration_service.py - Data Integration → Persona Clustering: segments with
backend/app/services/data_integration_service.py - Intervention Console → Intervention Routes: manages interventions
- Relational Store → Student Records: provides ORM base
backend/app/models/student.py - Relational Store → Academic and Placement Indicators: provides ORM base
backend/app/models/indicators.py