# vigneshssuvarna/hiresphere architecture

> Architecture diagram of the GitHub repository vigneshssuvarna/hiresphere, 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/vigneshssuvarna/hiresphere
- Repository: https://github.com/vigneshssuvarna/hiresphere

## Overview

HireSphere is a campus placement and career-readiness platform for students, placement coordinators, and administrators. Users enter through role-aware web portals; students manage applications, resumes, and DSA practice, while staff manage drives, applicants, students, events, and administration. The web client sends API requests to Express controllers, which use Drizzle and Neon PostgreSQL for persistent data. The graph preserves documented product capabilities; some API routing and frontend connections are based on README documentation because those source files were not excerpted.

Main entry points: [`apps/web/src/App.tsx`](https://github.com/vigneshssuvarna/hiresphere/blob/main/apps/web/src/App.tsx) (Route shell), [`apps/server/src/index.ts`](https://github.com/vigneshssuvarna/hiresphere/blob/main/apps/server/src/index.ts) (Express API), [`apps/server/src/db/index.ts`](https://github.com/vigneshssuvarna/hiresphere/blob/main/apps/server/src/db/index.ts) (Neon PostgreSQL), [`apps/web/src/lib/api.ts`](https://github.com/vigneshssuvarna/hiresphere/blob/main/apps/web/src/lib/api.ts) (API client)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web experience"]
  node_app["Route shell<br/>[App.tsx]"]
  node_dashboards["Role dashboards"]
  node_coordinator_ui["Coordinator portal"]
  node_admin_ui["Dean and admin<br/>[DeanDashboard.tsx]"]
  node_student_db_ui["Student database"]
  node_schedule_ui["Master schedule<br/>[MasterSchedule.tsx]"]
  node_logs_ui["Audit log viewer<br/>[SystemLogs.tsx]"]
  node_profile_ui["Profile settings"]
end

subgraph group_placement["Placement operations"]
  node_drive_ops["Drives and companies"]
  node_applications["Applications"]
  node_students["Student search"]
  node_events["Schedule events"]
  node_stats["Placement metrics"]
end

subgraph group_readiness["Student readiness"]
  node_job_ui["Application tracker<br/>[JobTracker.tsx]"]
  node_resume_ui["Resume scanner<br/>[ResumeScanner.tsx]"]
  node_dsa_ui["DSA practice<br/>[DsaTracker.tsx]"]
  node_resume_ops["Resume processing"]
  node_ats["ATS scoring<br/>[atsScorer.ts]"]
  node_pdf_parser["PDF parsing<br/>[pdfParser.ts]"]
  node_dsa_ops["DSA logs<br/>[dsa.controller.ts]"]
end

subgraph group_platform["Platform services"]
  node_api_client["API client<br/>[api.ts]"]
  node_auth_state["Session state<br/>[authStore.ts]"]
  node_api_service["Express API<br/>[index.ts]"]
  node_auth_guard["JWT and roles<br/>[authGuard.ts]"]
  node_user_accounts["Accounts and roles<br/>[user.controller.ts]"]
  node_admin_ops["Admin controls"]
  node_audit["Audit logging<br/>[audit.ts]"]
  node_database[("Neon PostgreSQL<br/>[index.ts]")]
  node_schema["Domain schema<br/>[schema.ts]"]
  node_shared_types["Shared contracts<br/>[schemas.ts]"]
end

node_visitor(("Portal user"))

node_visitor -->|"uses"| node_app
node_app -->|"routes to"| node_dashboards
node_app -->|"routes to"| node_coordinator_ui
node_app -->|"routes to"| node_admin_ui
node_app -->|"routes to"| node_student_db_ui
node_app -->|"routes to"| node_schedule_ui
node_app -->|"routes to"| node_logs_ui
node_app -->|"routes to"| node_profile_ui
node_app -->|"routes to"| node_job_ui
node_app -->|"routes to"| node_resume_ui
node_app -->|"routes to"| node_dsa_ui
node_job_ui -->|"requests data"| node_api_client
node_dsa_ui -->|"requests data"| node_api_client
node_student_db_ui -->|"requests data"| node_api_client
node_coordinator_ui -->|"requests data"| node_api_client
node_api_client -->|"reads token"| node_auth_state
node_api_client -.->|"sends requests"| node_api_service
node_api_service -.->|"guards routes"| node_auth_guard
node_api_service -->|"routes account APIs"| node_user_accounts
node_api_service -->|"routes drive APIs"| node_drive_ops
node_api_service -->|"routes application APIs"| node_applications
node_api_service -->|"routes student APIs"| node_students
node_api_service -->|"routes event APIs"| node_events
node_api_service -->|"routes resume APIs"| node_resume_ops
node_api_service -->|"routes DSA APIs"| node_dsa_ops
node_api_service -->|"routes metrics APIs"| node_stats
node_api_service -->|"routes admin APIs"| node_admin_ops
node_resume_ops -->|"parses PDF"| node_pdf_parser
node_resume_ops -->|"scores resume"| node_ats
node_drive_ops -->|"reads and writes"| node_database
node_applications -->|"reads and writes"| node_database
node_events -->|"reads and writes"| node_database
node_stats -->|"reads metrics"| node_database
node_students -->|"queries students"| node_database
node_resume_ops -->|"stores scans"| node_database
node_dsa_ops -->|"stores practice"| node_database
node_admin_ops -->|"writes audit"| node_audit
node_applications -->|"writes audit"| node_audit
node_drive_ops -->|"writes audit"| node_audit
node_events -->|"writes audit"| node_audit
node_audit -->|"persists entries"| node_database
node_database -->|"uses definitions"| node_schema
node_drive_ops -->|"validates input"| node_shared_types
node_events -->|"validates input"| node_shared_types

click node_app "https://github.com/vigneshssuvarna/hiresphere/blob/main/apps/web/src/App.tsx"
click node_dashboards "https://github.com/vigneshssuvarna/hiresphere/blob/main/apps/web/src/StudentDashboard.tsx"
click node_coordinator_ui "https://github.com/vigneshssuvarna/hiresphere/blob/main/apps/web/src/CoordinatorDashboard.tsx"
click node_admin_ui "https://github.com/vigneshssuvarna/hiresphere/blob/main/apps/web/src/DeanDashboard.tsx"
click node_student_db_ui "https://github.com/vigneshssuvarna/hiresphere/blob/main/apps/web/src/StudentDatabase.tsx"
click node_schedule_ui "https://github.com/vigneshssuvarna/hiresphere/blob/main/apps/web/src/MasterSchedule.tsx"
click node_logs_ui "https://github.com/vigneshssuvarna/hiresphere/blob/main/apps/web/src/SystemLogs.tsx"
click node_profile_ui "https://github.com/vigneshssuvarna/hiresphere/blob/main/apps/web/src/ProfileSettings.tsx"
click node_job_ui "https://github.com/vigneshssuvarna/hiresphere/blob/main/apps/web/src/JobTracker.tsx"
click node_resume_ui "https://github.com/vigneshssuvarna/hiresphere/blob/main/apps/web/src/ResumeScanner.tsx"
click node_dsa_ui "https://github.com/vigneshssuvarna/hiresphere/blob/main/apps/web/src/DsaTracker.tsx"
click node_api_client "https://github.com/vigneshssuvarna/hiresphere/blob/main/apps/web/src/lib/api.ts"
click node_auth_state "https://github.com/vigneshssuvarna/hiresphere/blob/main/apps/web/src/store/authStore.ts"
click node_api_service "https://github.com/vigneshssuvarna/hiresphere/blob/main/apps/server/src/index.ts"
click node_auth_guard "https://github.com/vigneshssuvarna/hiresphere/blob/main/apps/server/src/middleware/authGuard.ts"
click node_user_accounts "https://github.com/vigneshssuvarna/hiresphere/blob/main/apps/server/src/modules/users/user.controller.ts"
click node_drive_ops "https://github.com/vigneshssuvarna/hiresphere/blob/main/apps/server/src/modules/drives/drives.controller.ts"
click node_applications "https://github.com/vigneshssuvarna/hiresphere/blob/main/apps/server/src/modules/applications/applications.controller.ts"
click node_students "https://github.com/vigneshssuvarna/hiresphere/blob/main/apps/server/src/modules/students/students.controller.ts"
click node_events "https://github.com/vigneshssuvarna/hiresphere/blob/main/apps/server/src/modules/events/events.controller.ts"
click node_resume_ops "https://github.com/vigneshssuvarna/hiresphere/blob/main/apps/server/src/modules/resume/resume.controller.ts"
click node_ats "https://github.com/vigneshssuvarna/hiresphere/blob/main/apps/server/src/utils/atsScorer.ts"
click node_pdf_parser "https://github.com/vigneshssuvarna/hiresphere/blob/main/apps/server/src/utils/pdfParser.ts"
click node_dsa_ops "https://github.com/vigneshssuvarna/hiresphere/blob/main/apps/server/src/modules/dsa/dsa.controller.ts"
click node_stats "https://github.com/vigneshssuvarna/hiresphere/blob/main/apps/server/src/modules/stats/stats.controller.ts"
click node_admin_ops "https://github.com/vigneshssuvarna/hiresphere/blob/main/apps/server/src/modules/admin/admin.controller.ts"
click node_audit "https://github.com/vigneshssuvarna/hiresphere/blob/main/apps/server/src/utils/audit.ts"
click node_database "https://github.com/vigneshssuvarna/hiresphere/blob/main/apps/server/src/db/index.ts"
click node_schema "https://github.com/vigneshssuvarna/hiresphere/blob/main/apps/server/src/db/schema.ts"
click node_shared_types "https://github.com/vigneshssuvarna/hiresphere/blob/main/packages/shared/src/schemas.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_dashboards,node_coordinator_ui,node_admin_ui,node_student_db_ui,node_schedule_ui,node_logs_ui,node_profile_ui,node_visitor toneBlue
class node_drive_ops,node_applications,node_students,node_events,node_stats toneAmber
class node_job_ui,node_resume_ui,node_dsa_ui,node_resume_ops,node_ats,node_pdf_parser,node_dsa_ops toneMint
class node_api_client,node_auth_state,node_api_service,node_auth_guard,node_user_accounts,node_admin_ops,node_audit,node_database,node_schema,node_shared_types toneRose
```

## Components

### Web experience

- [Route shell](https://github.com/vigneshssuvarna/hiresphere/blob/main/apps/web/src/App.tsx): `apps/web/src/App.tsx`
- [Role dashboards](https://github.com/vigneshssuvarna/hiresphere/blob/main/apps/web/src/StudentDashboard.tsx): `apps/web/src/StudentDashboard.tsx`
- [Coordinator portal](https://github.com/vigneshssuvarna/hiresphere/blob/main/apps/web/src/CoordinatorDashboard.tsx): `apps/web/src/CoordinatorDashboard.tsx`
- [Dean and admin](https://github.com/vigneshssuvarna/hiresphere/blob/main/apps/web/src/DeanDashboard.tsx): `apps/web/src/DeanDashboard.tsx`
- [Student database](https://github.com/vigneshssuvarna/hiresphere/blob/main/apps/web/src/StudentDatabase.tsx): `apps/web/src/StudentDatabase.tsx`
- [Master schedule](https://github.com/vigneshssuvarna/hiresphere/blob/main/apps/web/src/MasterSchedule.tsx): `apps/web/src/MasterSchedule.tsx`
- [Audit log viewer](https://github.com/vigneshssuvarna/hiresphere/blob/main/apps/web/src/SystemLogs.tsx): `apps/web/src/SystemLogs.tsx`
- [Profile settings](https://github.com/vigneshssuvarna/hiresphere/blob/main/apps/web/src/ProfileSettings.tsx): `apps/web/src/ProfileSettings.tsx`

### Placement operations

- [Drives and companies](https://github.com/vigneshssuvarna/hiresphere/blob/main/apps/server/src/modules/drives/drives.controller.ts): `apps/server/src/modules/drives/drives.controller.ts`
- [Applications](https://github.com/vigneshssuvarna/hiresphere/blob/main/apps/server/src/modules/applications/applications.controller.ts): `apps/server/src/modules/applications/applications.controller.ts`
- [Student search](https://github.com/vigneshssuvarna/hiresphere/blob/main/apps/server/src/modules/students/students.controller.ts): `apps/server/src/modules/students/students.controller.ts`
- [Schedule events](https://github.com/vigneshssuvarna/hiresphere/blob/main/apps/server/src/modules/events/events.controller.ts): `apps/server/src/modules/events/events.controller.ts`
- [Placement metrics](https://github.com/vigneshssuvarna/hiresphere/blob/main/apps/server/src/modules/stats/stats.controller.ts): `apps/server/src/modules/stats/stats.controller.ts`

### Student readiness

- [Application tracker](https://github.com/vigneshssuvarna/hiresphere/blob/main/apps/web/src/JobTracker.tsx): `apps/web/src/JobTracker.tsx`
- [Resume scanner](https://github.com/vigneshssuvarna/hiresphere/blob/main/apps/web/src/ResumeScanner.tsx): `apps/web/src/ResumeScanner.tsx`
- [DSA practice](https://github.com/vigneshssuvarna/hiresphere/blob/main/apps/web/src/DsaTracker.tsx): `apps/web/src/DsaTracker.tsx`
- [Resume processing](https://github.com/vigneshssuvarna/hiresphere/blob/main/apps/server/src/modules/resume/resume.controller.ts): `apps/server/src/modules/resume/resume.controller.ts`
- [ATS scoring](https://github.com/vigneshssuvarna/hiresphere/blob/main/apps/server/src/utils/atsScorer.ts): `apps/server/src/utils/atsScorer.ts`
- [PDF parsing](https://github.com/vigneshssuvarna/hiresphere/blob/main/apps/server/src/utils/pdfParser.ts): `apps/server/src/utils/pdfParser.ts`
- [DSA logs](https://github.com/vigneshssuvarna/hiresphere/blob/main/apps/server/src/modules/dsa/dsa.controller.ts): `apps/server/src/modules/dsa/dsa.controller.ts`

### Platform services

- [API client](https://github.com/vigneshssuvarna/hiresphere/blob/main/apps/web/src/lib/api.ts): `apps/web/src/lib/api.ts`
- [Session state](https://github.com/vigneshssuvarna/hiresphere/blob/main/apps/web/src/store/authStore.ts): `apps/web/src/store/authStore.ts`
- [Express API](https://github.com/vigneshssuvarna/hiresphere/blob/main/apps/server/src/index.ts): `apps/server/src/index.ts`
- [JWT and roles](https://github.com/vigneshssuvarna/hiresphere/blob/main/apps/server/src/middleware/authGuard.ts): `apps/server/src/middleware/authGuard.ts`
- [Accounts and roles](https://github.com/vigneshssuvarna/hiresphere/blob/main/apps/server/src/modules/users/user.controller.ts): `apps/server/src/modules/users/user.controller.ts`
- [Admin controls](https://github.com/vigneshssuvarna/hiresphere/blob/main/apps/server/src/modules/admin/admin.controller.ts): `apps/server/src/modules/admin/admin.controller.ts`
- [Audit logging](https://github.com/vigneshssuvarna/hiresphere/blob/main/apps/server/src/utils/audit.ts): `apps/server/src/utils/audit.ts`
- [Neon PostgreSQL](https://github.com/vigneshssuvarna/hiresphere/blob/main/apps/server/src/db/index.ts): `apps/server/src/db/index.ts`
- [Domain schema](https://github.com/vigneshssuvarna/hiresphere/blob/main/apps/server/src/db/schema.ts): `apps/server/src/db/schema.ts`
- [Shared contracts](https://github.com/vigneshssuvarna/hiresphere/blob/main/packages/shared/src/schemas.ts): `packages/shared/src/schemas.ts`

### Other components

- **Portal user**

## Connections

- Portal user → Route shell: uses (evidence: `apps/web/src/App.tsx`)
- Route shell → Role dashboards: routes to (evidence: `apps/web/src/App.tsx`)
- Route shell → Coordinator portal: routes to (evidence: `apps/web/src/App.tsx`)
- Route shell → Dean and admin: routes to (evidence: `apps/web/src/App.tsx`)
- Route shell → Student database: routes to (evidence: `apps/web/src/App.tsx`)
- Route shell → Master schedule: routes to (evidence: `apps/web/src/App.tsx`)
- Route shell → Audit log viewer: routes to (evidence: `apps/web/src/App.tsx`)
- Route shell → Profile settings: routes to (evidence: `apps/web/src/App.tsx`)
- Route shell → Application tracker: routes to (evidence: `apps/web/src/App.tsx`)
- Route shell → Resume scanner: routes to (evidence: `apps/web/src/App.tsx`)
- Route shell → DSA practice: routes to (evidence: `apps/web/src/App.tsx`)
- Application tracker → API client: requests data (evidence: `apps/web/src/JobTracker.tsx`)
- DSA practice → API client: requests data (evidence: `apps/web/src/DsaTracker.tsx`)
- Student database → API client: requests data (evidence: `apps/web/src/StudentDatabase.tsx`)
- Coordinator portal → API client: requests data (evidence: `apps/web/src/CoordinatorDashboard.tsx`)
- API client → Session state: reads token (evidence: `apps/web/src/lib/api.ts`)
- API client → Express API: sends requests
- Express API → JWT and roles: guards routes
- Express API → Accounts and roles: routes account APIs (evidence: `README.md`)
- Express API → Drives and companies: routes drive APIs (evidence: `README.md`)
- Express API → Applications: routes application APIs (evidence: `README.md`)
- Express API → Student search: routes student APIs (evidence: `README.md`)
- Express API → Schedule events: routes event APIs (evidence: `README.md`)
- Express API → Resume processing: routes resume APIs (evidence: `README.md`)
- Express API → DSA logs: routes DSA APIs (evidence: `README.md`)
- Express API → Placement metrics: routes metrics APIs (evidence: `README.md`)
- Express API → Admin controls: routes admin APIs (evidence: `README.md`)
- Resume processing → PDF parsing: parses PDF (evidence: `apps/server/src/modules/resume/resume.controller.ts`)
- Resume processing → ATS scoring: scores resume (evidence: `apps/server/src/modules/resume/resume.controller.ts`)
- Drives and companies → Neon PostgreSQL: reads and writes (evidence: `apps/server/src/modules/drives/drives.controller.ts`)
- Applications → Neon PostgreSQL: reads and writes (evidence: `apps/server/src/modules/applications/applications.controller.ts`)
- Schedule events → Neon PostgreSQL: reads and writes (evidence: `apps/server/src/modules/events/events.controller.ts`)
- Placement metrics → Neon PostgreSQL: reads metrics (evidence: `apps/server/src/modules/stats/stats.controller.ts`)
- Student search → Neon PostgreSQL: queries students (evidence: `apps/server/src/modules/students/students.controller.ts`)
- Resume processing → Neon PostgreSQL: stores scans (evidence: `apps/server/src/modules/resume/resume.controller.ts`)
- DSA logs → Neon PostgreSQL: stores practice (evidence: `apps/server/src/modules/dsa/dsa.controller.ts`)
- Admin controls → Audit logging: writes audit (evidence: `apps/server/src/modules/admin/admin.controller.ts`)
- Applications → Audit logging: writes audit (evidence: `apps/server/src/modules/applications/applications.controller.ts`)
- Drives and companies → Audit logging: writes audit (evidence: `apps/server/src/modules/drives/drives.controller.ts`)
- Schedule events → Audit logging: writes audit (evidence: `apps/server/src/modules/events/events.controller.ts`)
- Audit logging → Neon PostgreSQL: persists entries (evidence: `apps/server/src/utils/audit.ts`)
- Neon PostgreSQL → Domain schema: uses definitions (evidence: `apps/server/src/db/schema.ts`)
- Drives and companies → Shared contracts: validates input (evidence: `apps/server/src/modules/drives/drives.controller.ts`)
- Schedule events → Shared contracts: validates input (evidence: `apps/server/src/modules/events/events.controller.ts`)
