# skyuvaraj2007-web/sih architecture

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

- Interactive diagram: https://gitdiagram.com/skyuvaraj2007-web/sih
- Repository: https://github.com/skyuvaraj2007-web/sih

## Overview

SkillNexus is a multi-role student skills, learning, assessment, and talent platform for students, institutions, academicians, and companies. The principal user journey enters through the role-aware web app, reaches a portal or student workflow, and is served by backend routes that read and update platform records. Distinct capabilities include learning and assessment, skills/readiness, career and opportunity matching, institutional administration, and recruitment. Edges reflect only relationships shown in excerpts or the source index; several major route families are present in the tree but their detailed internal calls were not sampled.

Main entry points: [`backend/src/server.js`](https://github.com/skyuvaraj2007-web/sih/blob/main/backend/src/server.js) (HTTP server), [`backend/src/db/relationalManager.js`](https://github.com/skyuvaraj2007-web/sih/blob/main/backend/src/db/relationalManager.js) (Relational data access), [`backend/src/routes/studentRoutes.js`](https://github.com/skyuvaraj2007-web/sih/blob/main/backend/src/routes/studentRoutes.js) (Student services), [`backend/src/middleware/auth.js`](https://github.com/skyuvaraj2007-web/sih/blob/main/backend/src/middleware/auth.js) (Authentication middleware)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web experience"]
  node_webapp["Role-aware app<br/>[App.jsx]"]
  node_studentpages["Student workflows"]
  node_institutionui["Institution portal"]
  node_companyui["Company portal"]
end

subgraph group_api["API and portals"]
  node_server["HTTP server<br/>[server.js]"]
  node_authroutes["Authentication<br/>[auth.js]"]
  node_studentroutes["Student services<br/>[studentRoutes.js]"]
  node_academicroutes["Academic services<br/>[academic.js]"]
  node_academicianroutes["Academician services<br/>[academician.js]"]
  node_companyroutes["Company services<br/>[company.js]"]
  node_assessmentroutes["Assessments<br/>[assessments.js]"]
  node_learningroutes["Learning<br/>[learning.js]"]
  node_careerroute["Career readiness"]
  node_opproutes["Opportunities<br/>[opportunities.js]"]
end

subgraph group_intelligence["Skills and matching"]
  node_skillaggregator["Student skill aggregation"]
  node_opportunitymatch["Opportunity matching"]
  node_copilot["Career copilot"]
  node_readiness["Readiness scoring"]
  node_assessmentengine["Assessment evaluation"]
end

subgraph group_data["Identity and data"]
  node_authmw["Authentication middleware<br/>[auth.js]"]
  node_relational[("Relational data access")]
  node_supabase[("Supabase client<br/>[supabase.js]")]
end

node_user(("Platform user"))

node_user -->|"uses"| node_webapp
node_webapp -->|"routes to"| node_studentpages
node_server -->|"mounts routes"| node_authroutes
node_server -->|"mounts routes"| node_studentroutes
node_server -->|"mounts routes"| node_academicroutes
node_server -->|"mounts routes"| node_academicianroutes
node_server -->|"mounts routes"| node_companyroutes
node_server -->|"mounts routes"| node_assessmentroutes
node_server -->|"mounts routes"| node_learningroutes
node_server -->|"mounts routes"| node_careerroute
node_server -->|"mounts routes"| node_opproutes
node_studentroutes -->|"authenticates with"| node_authmw
node_academicroutes -->|"authenticates with"| node_authmw
node_academicianroutes -->|"authenticates with"| node_authmw
node_studentroutes -->|"reads and writes"| node_relational
node_academicroutes -->|"reads and writes"| node_relational
node_academicianroutes -->|"reads and writes"| node_relational
node_authmw -->|"looks up users"| node_relational
node_studentroutes -->|"uses"| node_skillaggregator
node_opproutes -.->|"delegates matching"| node_opportunitymatch
node_careerroute -->|"uses readiness"| node_readiness
node_assessmentroutes -->|"evaluates submissions"| node_assessmentengine
node_assessmentengine -->|"updates assessment records"| node_supabase
node_assessmentengine -->|"loads student"| node_relational
node_opportunitymatch -->|"loads candidates"| node_relational
node_opportunitymatch -->|"manages shortlists"| node_supabase
node_studentroutes -.->|"serves portal data"| node_institutionui
node_companyroutes -.->|"serves portal data"| node_companyui

click node_webapp "https://github.com/skyuvaraj2007-web/sih/blob/main/frontend/src/App.jsx"
click node_studentpages "https://github.com/skyuvaraj2007-web/sih/tree/main/frontend/src/pages"
click node_institutionui "https://github.com/skyuvaraj2007-web/sih/tree/main/frontend/src/components/institution"
click node_companyui "https://github.com/skyuvaraj2007-web/sih/tree/main/frontend/src/components/company"
click node_server "https://github.com/skyuvaraj2007-web/sih/blob/main/backend/src/server.js"
click node_authroutes "https://github.com/skyuvaraj2007-web/sih/blob/main/backend/src/routes/auth.js"
click node_studentroutes "https://github.com/skyuvaraj2007-web/sih/blob/main/backend/src/routes/studentRoutes.js"
click node_academicroutes "https://github.com/skyuvaraj2007-web/sih/blob/main/backend/src/routes/academic.js"
click node_academicianroutes "https://github.com/skyuvaraj2007-web/sih/blob/main/backend/src/routes/academician.js"
click node_companyroutes "https://github.com/skyuvaraj2007-web/sih/blob/main/backend/src/routes/company.js"
click node_assessmentroutes "https://github.com/skyuvaraj2007-web/sih/blob/main/backend/src/routes/assessments.js"
click node_learningroutes "https://github.com/skyuvaraj2007-web/sih/blob/main/backend/src/routes/learning.js"
click node_careerroute "https://github.com/skyuvaraj2007-web/sih/blob/main/backend/src/routes/careerReadinessRoutes.js"
click node_opproutes "https://github.com/skyuvaraj2007-web/sih/blob/main/backend/src/routes/opportunities.js"
click node_skillaggregator "https://github.com/skyuvaraj2007-web/sih/blob/main/backend/src/services/ai/studentSkillAggregator.js"
click node_opportunitymatch "https://github.com/skyuvaraj2007-web/sih/blob/main/backend/src/services/ai/opportunityMatchingEngine.js"
click node_copilot "https://github.com/skyuvaraj2007-web/sih/blob/main/backend/src/services/ai/careerCopilotService.js"
click node_readiness "https://github.com/skyuvaraj2007-web/sih/blob/main/backend/src/services/readinessService.js"
click node_assessmentengine "https://github.com/skyuvaraj2007-web/sih/blob/main/backend/src/services/ai/assessmentEvaluationEngine.js"
click node_authmw "https://github.com/skyuvaraj2007-web/sih/blob/main/backend/src/middleware/auth.js"
click node_relational "https://github.com/skyuvaraj2007-web/sih/blob/main/backend/src/db/relationalManager.js"
click node_supabase "https://github.com/skyuvaraj2007-web/sih/blob/main/backend/src/config/supabase.js"

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_studentpages,node_institutionui,node_companyui,node_user toneBlue
class node_server,node_authroutes,node_studentroutes,node_academicroutes,node_academicianroutes,node_companyroutes,node_assessmentroutes,node_learningroutes,node_careerroute,node_opproutes toneAmber
class node_skillaggregator,node_opportunitymatch,node_copilot,node_readiness,node_assessmentengine toneMint
class node_authmw,node_relational,node_supabase toneRose
```

## Components

### Web experience

- [Role-aware app](https://github.com/skyuvaraj2007-web/sih/blob/main/frontend/src/App.jsx): `frontend/src/App.jsx`
- [Student workflows](https://github.com/skyuvaraj2007-web/sih/tree/main/frontend/src/pages): `frontend/src/pages`
- [Institution portal](https://github.com/skyuvaraj2007-web/sih/tree/main/frontend/src/components/institution): `frontend/src/components/institution`
- [Company portal](https://github.com/skyuvaraj2007-web/sih/tree/main/frontend/src/components/company): `frontend/src/components/company`

### API and portals

- [HTTP server](https://github.com/skyuvaraj2007-web/sih/blob/main/backend/src/server.js): `backend/src/server.js`
- [Authentication](https://github.com/skyuvaraj2007-web/sih/blob/main/backend/src/routes/auth.js): `backend/src/routes/auth.js`
- [Student services](https://github.com/skyuvaraj2007-web/sih/blob/main/backend/src/routes/studentRoutes.js): `backend/src/routes/studentRoutes.js`
- [Academic services](https://github.com/skyuvaraj2007-web/sih/blob/main/backend/src/routes/academic.js): `backend/src/routes/academic.js`
- [Academician services](https://github.com/skyuvaraj2007-web/sih/blob/main/backend/src/routes/academician.js): `backend/src/routes/academician.js`
- [Company services](https://github.com/skyuvaraj2007-web/sih/blob/main/backend/src/routes/company.js): `backend/src/routes/company.js`
- [Assessments](https://github.com/skyuvaraj2007-web/sih/blob/main/backend/src/routes/assessments.js): `backend/src/routes/assessments.js`
- [Learning](https://github.com/skyuvaraj2007-web/sih/blob/main/backend/src/routes/learning.js): `backend/src/routes/learning.js`
- [Career readiness](https://github.com/skyuvaraj2007-web/sih/blob/main/backend/src/routes/careerReadinessRoutes.js): `backend/src/routes/careerReadinessRoutes.js`
- [Opportunities](https://github.com/skyuvaraj2007-web/sih/blob/main/backend/src/routes/opportunities.js): `backend/src/routes/opportunities.js`

### Skills and matching

- [Student skill aggregation](https://github.com/skyuvaraj2007-web/sih/blob/main/backend/src/services/ai/studentSkillAggregator.js): `backend/src/services/ai/studentSkillAggregator.js`
- [Opportunity matching](https://github.com/skyuvaraj2007-web/sih/blob/main/backend/src/services/ai/opportunityMatchingEngine.js): `backend/src/services/ai/opportunityMatchingEngine.js`
- [Career copilot](https://github.com/skyuvaraj2007-web/sih/blob/main/backend/src/services/ai/careerCopilotService.js): `backend/src/services/ai/careerCopilotService.js`
- [Readiness scoring](https://github.com/skyuvaraj2007-web/sih/blob/main/backend/src/services/readinessService.js): `backend/src/services/readinessService.js`
- [Assessment evaluation](https://github.com/skyuvaraj2007-web/sih/blob/main/backend/src/services/ai/assessmentEvaluationEngine.js): `backend/src/services/ai/assessmentEvaluationEngine.js`

### Identity and data

- [Authentication middleware](https://github.com/skyuvaraj2007-web/sih/blob/main/backend/src/middleware/auth.js): `backend/src/middleware/auth.js`
- [Relational data access](https://github.com/skyuvaraj2007-web/sih/blob/main/backend/src/db/relationalManager.js): `backend/src/db/relationalManager.js`
- [Supabase client](https://github.com/skyuvaraj2007-web/sih/blob/main/backend/src/config/supabase.js): `backend/src/config/supabase.js`

### Other components

- **Platform user**

## Connections

- Platform user → Role-aware app: uses (evidence: `frontend/src/App.jsx`)
- Role-aware app → Student workflows: routes to (evidence: `frontend/src/App.jsx`)
- HTTP server → Authentication: mounts routes (evidence: `backend/src/server.js`)
- HTTP server → Student services: mounts routes (evidence: `backend/src/server.js`)
- HTTP server → Academic services: mounts routes (evidence: `backend/src/server.js`)
- HTTP server → Academician services: mounts routes (evidence: `backend/src/server.js`)
- HTTP server → Company services: mounts routes (evidence: `backend/src/server.js`)
- HTTP server → Assessments: mounts routes (evidence: `backend/src/server.js`)
- HTTP server → Learning: mounts routes (evidence: `backend/src/server.js`)
- HTTP server → Career readiness: mounts routes (evidence: `backend/src/server.js`)
- HTTP server → Opportunities: mounts routes (evidence: `backend/src/server.js`)
- Student services → Authentication middleware: authenticates with (evidence: `backend/src/routes/studentRoutes.js`)
- Academic services → Authentication middleware: authenticates with (evidence: `backend/src/routes/academic.js`)
- Academician services → Authentication middleware: authenticates with (evidence: `backend/src/routes/academician.js`)
- Student services → Relational data access: reads and writes (evidence: `backend/src/routes/studentRoutes.js`)
- Academic services → Relational data access: reads and writes (evidence: `backend/src/routes/academic.js`)
- Academician services → Relational data access: reads and writes (evidence: `backend/src/routes/academician.js`)
- Authentication middleware → Relational data access: looks up users (evidence: `backend/src/middleware/auth.js`)
- Student services → Student skill aggregation: uses (evidence: `backend/src/routes/studentRoutes.js`)
- Opportunities → Opportunity matching: delegates matching
- Career readiness → Readiness scoring: uses readiness (evidence: `backend/src/routes/careerReadinessRoutes.js`)
- Assessments → Assessment evaluation: evaluates submissions (evidence: `backend/src/routes/assessments.js`)
- Assessment evaluation → Supabase client: updates assessment records (evidence: `backend/src/services/ai/assessmentEvaluationEngine.js`)
- Assessment evaluation → Relational data access: loads student (evidence: `backend/src/services/ai/assessmentEvaluationEngine.js`)
- Opportunity matching → Relational data access: loads candidates (evidence: `backend/src/services/ai/opportunityMatchingEngine.js`)
- Opportunity matching → Supabase client: manages shortlists (evidence: `backend/src/services/ai/opportunityMatchingEngine.js`)
- Student services → Institution portal: serves portal data
- Company services → Company portal: serves portal data
