# dhruvplaz-web/open-innovation_hirex_ps6 architecture

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

- Interactive diagram: https://gitdiagram.com/dhruvplaz-web/open-innovation_hirex_ps6
- Repository: https://github.com/dhruvplaz-web/open-innovation_hirex_ps6

## Overview

HireX is a multi-role talent and campus-placement platform. Students authenticate, build profiles and verified skill evidence through assessments, aptitude exercises, certificates and Code Lab; the platform computes readiness and job matches, while recruiters shortlist candidates and institutions monitor curriculum and placement outcomes. The frontend presents role-specific workflows, and FastAPI routes coordinate domain services, ML engines and canonical persistence. The README documents additional co-pilot, forecasting and governance capabilities; unsampled internals are represented at their supported directory paths, with relationships omitted where source evidence was unavailable.

Main entry points: [`server/app/main.py`](https://github.com/dhruvplaz-web/open-innovation_hirex_ps6/blob/main/server/app/main.py) (HTTP API), [`client/src/App.tsx`](https://github.com/dhruvplaz-web/open-innovation_hirex_ps6/blob/main/client/src/App.tsx) (Role command center), [`server/app/routes/assessments.py`](https://github.com/dhruvplaz-web/open-innovation_hirex_ps6/blob/main/server/app/routes/assessments.py) (Assessment endpoints), [`server/app/code_lab/code_lab_engine.py`](https://github.com/dhruvplaz-web/open-innovation_hirex_ps6/blob/main/server/app/code_lab/code_lab_engine.py) (Challenge execution)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Web experience"]
  node_app["Role command center<br/>[App.tsx]"]
  node_authui["Sign-in and onboarding<br/>[AuthView.tsx]"]
  node_dashboards["Role portals"]
  node_agentui["Co-pilot chat"]
end

subgraph group_evidence["Skill evidence"]
  node_assessmentui["Proctored assessments"]
  node_integrity["Integrity monitoring"]
  node_aptitudegames["Aptitude Arena"]
  node_codelabui["Code Lab experience<br/>[CodeLabView.tsx]"]
  node_resumeonboarding["Resume onboarding"]
end

subgraph group_matching["Talent and matching"]
end

subgraph group_backend["API and services"]
  node_backend["HTTP API<br/>[main.py]"]
  node_assessmentroutes["Assessment endpoints<br/>[assessments.py]"]
  node_codelabroutes["Code Lab endpoints<br/>[routes_code_lab.py]"]
  node_codelabengine["Challenge execution<br/>[code_lab_engine.py]"]
  node_challengepipeline["Challenge ingestion"]
  node_agent["Placement co-pilot<br/>[placement_agent.py]"]
  node_ml["Skill and matching models"]
  node_aptitudeservice["Aptitude service"]
end

subgraph group_state["Platform state"]
  node_seed["Domain seed data<br/>[seed_data.py]"]
  node_store[("Canonical store<br/>[canonical_store.py]")]
  node_sync["Data synchronization<br/>[sync_service.py]"]
  node_firebase[("Firebase services<br/>[firebase.ts]")]
end

node_user(("Platform users"))

node_user -->|"uses"| node_app
node_app -->|"opens"| node_authui
node_app -->|"presents"| node_dashboards
node_app -->|"presents"| node_agentui
node_user -->|"takes"| node_assessmentui
node_assessmentui -->|"monitors"| node_integrity
node_user -->|"practices"| node_aptitudegames
node_user -->|"verifies skills"| node_codelabui
node_user -->|"submits resume"| node_resumeonboarding
node_app -.->|"requests data"| node_backend
node_backend -->|"registers"| node_assessmentroutes
node_backend -->|"registers"| node_codelabroutes
node_codelabroutes -->|"dispatches"| node_codelabengine
node_codelabengine -->|"validates challenges"| node_challengepipeline
node_assessmentroutes -->|"uses models"| node_ml
node_assessmentroutes -->|"reads and writes"| node_store
node_assessmentroutes -->|"synchronizes"| node_sync
node_codelabengine -->|"persists results"| node_store
node_codelabengine -->|"synchronizes"| node_sync
node_seed -->|"loads and reads"| node_store
node_user -->|"authenticates"| node_firebase
node_agentui -.->|"requests assistance"| node_backend
node_backend -.->|"dispatches co-pilot"| node_agent
node_backend -.->|"serves aptitude"| node_aptitudeservice

click node_app "https://github.com/dhruvplaz-web/open-innovation_hirex_ps6/blob/main/client/src/App.tsx"
click node_authui "https://github.com/dhruvplaz-web/open-innovation_hirex_ps6/blob/main/client/src/views/AuthView.tsx"
click node_dashboards "https://github.com/dhruvplaz-web/open-innovation_hirex_ps6/blob/main/client/src/views/AcademicianPortalView.tsx"
click node_agentui "https://github.com/dhruvplaz-web/open-innovation_hirex_ps6/blob/main/client/src/components/cards/AgentChatDrawer.tsx"
click node_assessmentui "https://github.com/dhruvplaz-web/open-innovation_hirex_ps6/blob/main/client/src/components/proctoring/ProctoredAssessmentEngine.tsx"
click node_integrity "https://github.com/dhruvplaz-web/open-innovation_hirex_ps6/blob/main/client/src/services/integrity/AssessmentIntegrityEngine.ts"
click node_aptitudegames "https://github.com/dhruvplaz-web/open-innovation_hirex_ps6/blob/main/client/src/views/AptitudeArenaView.tsx"
click node_codelabui "https://github.com/dhruvplaz-web/open-innovation_hirex_ps6/blob/main/client/src/views/CodeLab/CodeLabView.tsx"
click node_resumeonboarding "https://github.com/dhruvplaz-web/open-innovation_hirex_ps6/blob/main/client/src/components/auth/ResumeOnboardingSection.tsx"
click node_backend "https://github.com/dhruvplaz-web/open-innovation_hirex_ps6/blob/main/server/app/main.py"
click node_assessmentroutes "https://github.com/dhruvplaz-web/open-innovation_hirex_ps6/blob/main/server/app/routes/assessments.py"
click node_codelabroutes "https://github.com/dhruvplaz-web/open-innovation_hirex_ps6/blob/main/server/app/code_lab/routes_code_lab.py"
click node_codelabengine "https://github.com/dhruvplaz-web/open-innovation_hirex_ps6/blob/main/server/app/code_lab/code_lab_engine.py"
click node_challengepipeline "https://github.com/dhruvplaz-web/open-innovation_hirex_ps6/blob/main/server/app/code_lab/challenge_pipeline.py"
click node_agent "https://github.com/dhruvplaz-web/open-innovation_hirex_ps6/blob/main/server/app/agents/placement_agent.py"
click node_ml "https://github.com/dhruvplaz-web/open-innovation_hirex_ps6/tree/main/server/app/ml"
click node_aptitudeservice "https://github.com/dhruvplaz-web/open-innovation_hirex_ps6/blob/main/server/app/services/aptitude_service.py"
click node_seed "https://github.com/dhruvplaz-web/open-innovation_hirex_ps6/blob/main/server/app/data/seed_data.py"
click node_store "https://github.com/dhruvplaz-web/open-innovation_hirex_ps6/blob/main/server/app/db/canonical_store.py"
click node_sync "https://github.com/dhruvplaz-web/open-innovation_hirex_ps6/blob/main/server/app/services/sync_service.py"
click node_firebase "https://github.com/dhruvplaz-web/open-innovation_hirex_ps6/blob/main/client/src/services/firebase.ts"

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_authui,node_dashboards,node_agentui,node_user toneBlue
class node_assessmentui,node_integrity,node_aptitudegames,node_codelabui,node_resumeonboarding toneAmber
class node_backend,node_assessmentroutes,node_codelabroutes,node_codelabengine,node_challengepipeline,node_agent,node_ml,node_aptitudeservice toneRose
class node_seed,node_store,node_sync,node_firebase toneIndigo
```

## Components

### Web experience

- [Role command center](https://github.com/dhruvplaz-web/open-innovation_hirex_ps6/blob/main/client/src/App.tsx): `client/src/App.tsx`
- [Sign-in and onboarding](https://github.com/dhruvplaz-web/open-innovation_hirex_ps6/blob/main/client/src/views/AuthView.tsx): `client/src/views/AuthView.tsx`
- [Role portals](https://github.com/dhruvplaz-web/open-innovation_hirex_ps6/blob/main/client/src/views/AcademicianPortalView.tsx): `client/src/views/AcademicianPortalView.tsx`
- [Co-pilot chat](https://github.com/dhruvplaz-web/open-innovation_hirex_ps6/blob/main/client/src/components/cards/AgentChatDrawer.tsx): `client/src/components/cards/AgentChatDrawer.tsx`

### Skill evidence

- [Proctored assessments](https://github.com/dhruvplaz-web/open-innovation_hirex_ps6/blob/main/client/src/components/proctoring/ProctoredAssessmentEngine.tsx): `client/src/components/proctoring/ProctoredAssessmentEngine.tsx`
- [Integrity monitoring](https://github.com/dhruvplaz-web/open-innovation_hirex_ps6/blob/main/client/src/services/integrity/AssessmentIntegrityEngine.ts): `client/src/services/integrity/AssessmentIntegrityEngine.ts`
- [Aptitude Arena](https://github.com/dhruvplaz-web/open-innovation_hirex_ps6/blob/main/client/src/views/AptitudeArenaView.tsx): `client/src/views/AptitudeArenaView.tsx`
- [Code Lab experience](https://github.com/dhruvplaz-web/open-innovation_hirex_ps6/blob/main/client/src/views/CodeLab/CodeLabView.tsx): `client/src/views/CodeLab/CodeLabView.tsx`
- [Resume onboarding](https://github.com/dhruvplaz-web/open-innovation_hirex_ps6/blob/main/client/src/components/auth/ResumeOnboardingSection.tsx): `client/src/components/auth/ResumeOnboardingSection.tsx`

### API and services

- [HTTP API](https://github.com/dhruvplaz-web/open-innovation_hirex_ps6/blob/main/server/app/main.py): `server/app/main.py`
- [Assessment endpoints](https://github.com/dhruvplaz-web/open-innovation_hirex_ps6/blob/main/server/app/routes/assessments.py): `server/app/routes/assessments.py`
- [Code Lab endpoints](https://github.com/dhruvplaz-web/open-innovation_hirex_ps6/blob/main/server/app/code_lab/routes_code_lab.py): `server/app/code_lab/routes_code_lab.py`
- [Challenge execution](https://github.com/dhruvplaz-web/open-innovation_hirex_ps6/blob/main/server/app/code_lab/code_lab_engine.py): `server/app/code_lab/code_lab_engine.py`
- [Challenge ingestion](https://github.com/dhruvplaz-web/open-innovation_hirex_ps6/blob/main/server/app/code_lab/challenge_pipeline.py): `server/app/code_lab/challenge_pipeline.py`
- [Placement co-pilot](https://github.com/dhruvplaz-web/open-innovation_hirex_ps6/blob/main/server/app/agents/placement_agent.py): `server/app/agents/placement_agent.py`
- [Skill and matching models](https://github.com/dhruvplaz-web/open-innovation_hirex_ps6/tree/main/server/app/ml): `server/app/ml`
- [Aptitude service](https://github.com/dhruvplaz-web/open-innovation_hirex_ps6/blob/main/server/app/services/aptitude_service.py): `server/app/services/aptitude_service.py`

### Platform state

- [Domain seed data](https://github.com/dhruvplaz-web/open-innovation_hirex_ps6/blob/main/server/app/data/seed_data.py): `server/app/data/seed_data.py`
- [Canonical store](https://github.com/dhruvplaz-web/open-innovation_hirex_ps6/blob/main/server/app/db/canonical_store.py): `server/app/db/canonical_store.py`
- [Data synchronization](https://github.com/dhruvplaz-web/open-innovation_hirex_ps6/blob/main/server/app/services/sync_service.py): `server/app/services/sync_service.py`
- [Firebase services](https://github.com/dhruvplaz-web/open-innovation_hirex_ps6/blob/main/client/src/services/firebase.ts): `client/src/services/firebase.ts`

### Other components

- **Platform users**

## Connections

- Platform users → Role command center: uses (evidence: `README.md`)
- Role command center → Sign-in and onboarding: opens (evidence: `client/src/App.tsx`)
- Role command center → Role portals: presents (evidence: `client/src/App.tsx`)
- Role command center → Co-pilot chat: presents (evidence: `client/src/App.tsx`)
- Platform users → Proctored assessments: takes (evidence: `README.md`)
- Proctored assessments → Integrity monitoring: monitors (evidence: `client/src/components/proctoring/ProctoredAssessmentEngine.tsx`)
- Platform users → Aptitude Arena: practices (evidence: `README.md`)
- Platform users → Code Lab experience: verifies skills (evidence: `README.md`)
- Platform users → Resume onboarding: submits resume
- Role command center → HTTP API: requests data (evidence: `README.md`)
- HTTP API → Assessment endpoints: registers (evidence: `server/app/main.py`)
- HTTP API → Code Lab endpoints: registers (evidence: `server/app/main.py`)
- Code Lab endpoints → Challenge execution: dispatches (evidence: `server/app/code_lab/routes_code_lab.py`)
- Challenge execution → Challenge ingestion: validates challenges (evidence: `server/app/code_lab/code_lab_engine.py`)
- Assessment endpoints → Skill and matching models: uses models (evidence: `server/app/routes/assessments.py`)
- Assessment endpoints → Canonical store: reads and writes (evidence: `server/app/routes/assessments.py`)
- Assessment endpoints → Data synchronization: synchronizes (evidence: `server/app/routes/assessments.py`)
- Challenge execution → Canonical store: persists results (evidence: `server/app/code_lab/code_lab_engine.py`)
- Challenge execution → Data synchronization: synchronizes (evidence: `server/app/code_lab/code_lab_engine.py`)
- Domain seed data → Canonical store: loads and reads (evidence: `server/app/data/seed_data.py`)
- Platform users → Firebase services: authenticates
- Co-pilot chat → HTTP API: requests assistance (evidence: `README.md`)
- HTTP API → Placement co-pilot: dispatches co-pilot (evidence: `README.md`)
- HTTP API → Aptitude service: serves aptitude (evidence: `README.md`)
