# vrushabhshelokar/zelosify architecture

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

## Overview

Zelosify is an assessment monorepo containing a Next.js frontend and an Express backend. The visible product workflows include local authentication, hiring-manager review of candidate profiles, and digital-initiative requests; backend hiring reads profile/opening data and applies deterministic score thresholds, while storage exposes file-listing through a provider abstraction. The tree also identifies AI recommendations and upload services, but their runtime wiring is only partly shown. The README describes the monorepo rather than product behavior, and frontend-to-API connections are not evidenced in the excerpts, so those links are omitted.

Main entry points: [`Zelosify-Backend/Server/src/config/prisma/prisma.ts`](https://github.com/vrushabhshelokar/zelosify/blob/main/Zelosify-Backend/Server/src/config/prisma/prisma.ts) (Prisma client), [`Zelosify-Backend/Server/src/controllers/auth/local/localAuthController.ts`](https://github.com/vrushabhshelokar/zelosify/blob/main/Zelosify-Backend/Server/src/controllers/auth/local/localAuthController.ts) (Auth controller), [`Zelosify-Backend/Server/src/controllers/auth/local/register/localRegister.ts`](https://github.com/vrushabhshelokar/zelosify/blob/main/Zelosify-Backend/Server/src/controllers/auth/local/register/localRegister.ts) (Registration), [`Zelosify-Backend/Server/src/controllers/hiring/contractHiringManagerController.ts`](https://github.com/vrushabhshelokar/zelosify/blob/main/Zelosify-Backend/Server/src/controllers/hiring/contractHiringManagerController.ts) (Manager hiring API)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_frontend["Web application"]
  node_login_ui["Login page<br/>[page.jsx]"]
  node_openings_ui["Openings pages<br/>[page.jsx]"]
  node_initiative_ui["Initiative page<br/>[page.jsx]"]
end

subgraph group_auth["Identity and access"]
  node_auth_routes["Local auth routes<br/>[localAuthRoutes.ts]"]
  node_auth_middleware["Authentication"]
  node_auth_controller["Auth controller"]
  node_register["Registration<br/>[localRegister.ts]"]
  node_login["Local login<br/>[localLogin.ts]"]
  node_totp["TOTP verification<br/>[verifyTOTP.ts]"]
  node_keycloak_config["Keycloak config<br/>[keycloak.ts]"]
  node_keycloak_admin["Admin token<br/>[getAdminToken.ts]"]
end

subgraph group_hiring["Hiring workflows"]
  node_hiring_routes["Hiring routes"]
  node_hiring_controller["Manager hiring API"]
  node_profile_controller["Profile API"]
  node_scoring["Score thresholds<br/>[scoringEngine.ts]"]
end

subgraph group_services["Backend services"]
  node_recommendation["Recommendations"]
  node_ai_orchestrator["AI orchestrator"]
  node_prisma[("Prisma client<br/>[prisma.ts]")]
  node_storage_controller["Storage API"]
  node_storage_factory["Storage factory<br/>[storageFactory.ts]"]
  node_storage_interface["Storage service<br/>[storageService.ts]"]
  node_aws_storage["AWS S3 storage"]
end

subgraph group_business["Business requests"]
  node_initiative_controller["Initiative requests"]
  node_shared_controllers["Controller exports<br/>[controllers.ts]"]
end

node_visitor(("User"))
node_s3[("Amazon S3")]

node_visitor -.->|"opens"| node_login_ui
node_visitor -.->|"reviews"| node_openings_ui
node_visitor -.->|"submits"| node_initiative_ui
node_auth_routes -->|"authenticates"| node_auth_middleware
node_auth_routes -->|"routes to"| node_auth_controller
node_auth_controller -->|"delegates to"| node_register
node_auth_controller -->|"delegates to"| node_login
node_auth_controller -->|"delegates to"| node_totp
node_register -->|"uses"| node_prisma
node_register -->|"requests token"| node_keycloak_admin
node_register -->|"uses"| node_keycloak_config
node_login -->|"uses"| node_prisma
node_totp -->|"uses"| node_prisma
node_hiring_routes -->|"authenticates"| node_auth_middleware
node_hiring_routes -->|"routes to"| node_hiring_controller
node_hiring_controller -->|"reads and updates"| node_prisma
node_hiring_controller -->|"evaluates thresholds"| node_scoring
node_recommendation -->|"invokes"| node_ai_orchestrator
node_storage_controller -->|"creates service"| node_storage_factory
node_storage_factory -->|"selects provider"| node_aws_storage
node_aws_storage -->|"implements"| node_storage_interface
node_aws_storage -->|"reads and writes"| node_s3
node_initiative_controller -->|"database write disabled"| node_prisma
node_shared_controllers -->|"exports"| node_initiative_controller
node_shared_controllers -->|"exports"| node_profile_controller

click node_login_ui "https://github.com/vrushabhshelokar/zelosify/blob/main/Zelosify-Frontend/src/app/(Landing)/(auth)/login/page.jsx"
click node_openings_ui "https://github.com/vrushabhshelokar/zelosify/blob/main/Zelosify-Frontend/src/app/(UserDashBoard)/hiring-manager/openings/page.jsx"
click node_initiative_ui "https://github.com/vrushabhshelokar/zelosify/blob/main/Zelosify-Frontend/src/app/(UserDashBoard)/business-user/digital-initiative/page.jsx"
click node_auth_routes "https://github.com/vrushabhshelokar/zelosify/blob/main/Zelosify-Backend/Server/src/routers/auth/local/localAuthRoutes.ts"
click node_auth_middleware "https://github.com/vrushabhshelokar/zelosify/blob/main/Zelosify-Backend/Server/src/middlewares/auth/authenticateMiddleware.ts"
click node_auth_controller "https://github.com/vrushabhshelokar/zelosify/blob/main/Zelosify-Backend/Server/src/controllers/auth/local/localAuthController.ts"
click node_register "https://github.com/vrushabhshelokar/zelosify/blob/main/Zelosify-Backend/Server/src/controllers/auth/local/register/localRegister.ts"
click node_login "https://github.com/vrushabhshelokar/zelosify/blob/main/Zelosify-Backend/Server/src/controllers/auth/local/login/localLogin.ts"
click node_totp "https://github.com/vrushabhshelokar/zelosify/blob/main/Zelosify-Backend/Server/src/controllers/auth/local/login/verifyTOTP.ts"
click node_keycloak_config "https://github.com/vrushabhshelokar/zelosify/blob/main/Zelosify-Backend/Server/src/config/keycloak/keycloak.ts"
click node_keycloak_admin "https://github.com/vrushabhshelokar/zelosify/blob/main/Zelosify-Backend/Server/src/utils/keycloak/getAdminToken.ts"
click node_hiring_routes "https://github.com/vrushabhshelokar/zelosify/blob/main/Zelosify-Backend/Server/src/routers/hiring/hiringManagerRoutes.ts"
click node_hiring_controller "https://github.com/vrushabhshelokar/zelosify/blob/main/Zelosify-Backend/Server/src/controllers/hiring/contractHiringManagerController.ts"
click node_profile_controller "https://github.com/vrushabhshelokar/zelosify/blob/main/Zelosify-Backend/Server/src/controllers/hiring/hiringProfileController.ts"
click node_scoring "https://github.com/vrushabhshelokar/zelosify/blob/main/Zelosify-Backend/Server/src/services/ai/tools/scoringEngine.ts"
click node_recommendation "https://github.com/vrushabhshelokar/zelosify/blob/main/Zelosify-Backend/Server/src/services/ai/recommendationService.ts"
click node_ai_orchestrator "https://github.com/vrushabhshelokar/zelosify/blob/main/Zelosify-Backend/Server/src/services/ai/agentOrchestrator.ts"
click node_prisma "https://github.com/vrushabhshelokar/zelosify/blob/main/Zelosify-Backend/Server/src/config/prisma/prisma.ts"
click node_storage_controller "https://github.com/vrushabhshelokar/zelosify/blob/main/Zelosify-Backend/Server/src/controllers/storage/storageController.ts"
click node_storage_factory "https://github.com/vrushabhshelokar/zelosify/blob/main/Zelosify-Backend/Server/src/services/storage/storageFactory.ts"
click node_storage_interface "https://github.com/vrushabhshelokar/zelosify/blob/main/Zelosify-Backend/Server/src/services/storage/storageService.ts"
click node_aws_storage "https://github.com/vrushabhshelokar/zelosify/blob/main/Zelosify-Backend/Server/src/services/storage/aws/awsStorageService.ts"
click node_initiative_controller "https://github.com/vrushabhshelokar/zelosify/blob/main/Zelosify-Backend/Server/src/controllers/form/initiativeRequestController.ts"
click node_shared_controllers "https://github.com/vrushabhshelokar/zelosify/blob/main/Zelosify-Backend/Server/src/controllers/controllers.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_login_ui,node_openings_ui,node_initiative_ui,node_visitor toneBlue
class node_auth_routes,node_auth_middleware,node_auth_controller,node_register,node_login,node_totp,node_keycloak_config,node_keycloak_admin,node_s3 toneAmber
class node_hiring_routes,node_hiring_controller,node_profile_controller,node_scoring toneMint
class node_recommendation,node_ai_orchestrator,node_prisma,node_storage_controller,node_storage_factory,node_storage_interface,node_aws_storage toneRose
class node_initiative_controller,node_shared_controllers toneIndigo
```

## Components

### Web application

- [Login page](https://github.com/vrushabhshelokar/zelosify/blob/main/Zelosify-Frontend/src/app/(Landing)/(auth)/login/page.jsx): `Zelosify-Frontend/src/app/(Landing)/(auth)/login/page.jsx`
- [Openings pages](https://github.com/vrushabhshelokar/zelosify/blob/main/Zelosify-Frontend/src/app/(UserDashBoard)/hiring-manager/openings/page.jsx): `Zelosify-Frontend/src/app/(UserDashBoard)/hiring-manager/openings/page.jsx`
- [Initiative page](https://github.com/vrushabhshelokar/zelosify/blob/main/Zelosify-Frontend/src/app/(UserDashBoard)/business-user/digital-initiative/page.jsx): `Zelosify-Frontend/src/app/(UserDashBoard)/business-user/digital-initiative/page.jsx`

### Identity and access

- [Local auth routes](https://github.com/vrushabhshelokar/zelosify/blob/main/Zelosify-Backend/Server/src/routers/auth/local/localAuthRoutes.ts): `Zelosify-Backend/Server/src/routers/auth/local/localAuthRoutes.ts`
- [Authentication](https://github.com/vrushabhshelokar/zelosify/blob/main/Zelosify-Backend/Server/src/middlewares/auth/authenticateMiddleware.ts): `Zelosify-Backend/Server/src/middlewares/auth/authenticateMiddleware.ts`
- [Auth controller](https://github.com/vrushabhshelokar/zelosify/blob/main/Zelosify-Backend/Server/src/controllers/auth/local/localAuthController.ts): `Zelosify-Backend/Server/src/controllers/auth/local/localAuthController.ts`
- [Registration](https://github.com/vrushabhshelokar/zelosify/blob/main/Zelosify-Backend/Server/src/controllers/auth/local/register/localRegister.ts): `Zelosify-Backend/Server/src/controllers/auth/local/register/localRegister.ts`
- [Local login](https://github.com/vrushabhshelokar/zelosify/blob/main/Zelosify-Backend/Server/src/controllers/auth/local/login/localLogin.ts): `Zelosify-Backend/Server/src/controllers/auth/local/login/localLogin.ts`
- [TOTP verification](https://github.com/vrushabhshelokar/zelosify/blob/main/Zelosify-Backend/Server/src/controllers/auth/local/login/verifyTOTP.ts): `Zelosify-Backend/Server/src/controllers/auth/local/login/verifyTOTP.ts`
- [Keycloak config](https://github.com/vrushabhshelokar/zelosify/blob/main/Zelosify-Backend/Server/src/config/keycloak/keycloak.ts): `Zelosify-Backend/Server/src/config/keycloak/keycloak.ts`
- [Admin token](https://github.com/vrushabhshelokar/zelosify/blob/main/Zelosify-Backend/Server/src/utils/keycloak/getAdminToken.ts): `Zelosify-Backend/Server/src/utils/keycloak/getAdminToken.ts`

### Hiring workflows

- [Hiring routes](https://github.com/vrushabhshelokar/zelosify/blob/main/Zelosify-Backend/Server/src/routers/hiring/hiringManagerRoutes.ts): `Zelosify-Backend/Server/src/routers/hiring/hiringManagerRoutes.ts`
- [Manager hiring API](https://github.com/vrushabhshelokar/zelosify/blob/main/Zelosify-Backend/Server/src/controllers/hiring/contractHiringManagerController.ts): `Zelosify-Backend/Server/src/controllers/hiring/contractHiringManagerController.ts`
- [Profile API](https://github.com/vrushabhshelokar/zelosify/blob/main/Zelosify-Backend/Server/src/controllers/hiring/hiringProfileController.ts): `Zelosify-Backend/Server/src/controllers/hiring/hiringProfileController.ts`
- [Score thresholds](https://github.com/vrushabhshelokar/zelosify/blob/main/Zelosify-Backend/Server/src/services/ai/tools/scoringEngine.ts): `Zelosify-Backend/Server/src/services/ai/tools/scoringEngine.ts`

### Backend services

- [Recommendations](https://github.com/vrushabhshelokar/zelosify/blob/main/Zelosify-Backend/Server/src/services/ai/recommendationService.ts): `Zelosify-Backend/Server/src/services/ai/recommendationService.ts`
- [AI orchestrator](https://github.com/vrushabhshelokar/zelosify/blob/main/Zelosify-Backend/Server/src/services/ai/agentOrchestrator.ts): `Zelosify-Backend/Server/src/services/ai/agentOrchestrator.ts`
- [Prisma client](https://github.com/vrushabhshelokar/zelosify/blob/main/Zelosify-Backend/Server/src/config/prisma/prisma.ts): `Zelosify-Backend/Server/src/config/prisma/prisma.ts`
- [Storage API](https://github.com/vrushabhshelokar/zelosify/blob/main/Zelosify-Backend/Server/src/controllers/storage/storageController.ts): `Zelosify-Backend/Server/src/controllers/storage/storageController.ts`
- [Storage factory](https://github.com/vrushabhshelokar/zelosify/blob/main/Zelosify-Backend/Server/src/services/storage/storageFactory.ts): `Zelosify-Backend/Server/src/services/storage/storageFactory.ts`
- [Storage service](https://github.com/vrushabhshelokar/zelosify/blob/main/Zelosify-Backend/Server/src/services/storage/storageService.ts): `Zelosify-Backend/Server/src/services/storage/storageService.ts`
- [AWS S3 storage](https://github.com/vrushabhshelokar/zelosify/blob/main/Zelosify-Backend/Server/src/services/storage/aws/awsStorageService.ts): `Zelosify-Backend/Server/src/services/storage/aws/awsStorageService.ts`

### Business requests

- [Initiative requests](https://github.com/vrushabhshelokar/zelosify/blob/main/Zelosify-Backend/Server/src/controllers/form/initiativeRequestController.ts): `Zelosify-Backend/Server/src/controllers/form/initiativeRequestController.ts`
- [Controller exports](https://github.com/vrushabhshelokar/zelosify/blob/main/Zelosify-Backend/Server/src/controllers/controllers.ts): `Zelosify-Backend/Server/src/controllers/controllers.ts`

### Other components

- **User**
- **Amazon S3**

## Connections

- User → Login page: opens
- User → Openings pages: reviews
- User → Initiative page: submits
- Local auth routes → Authentication: authenticates (evidence: `Zelosify-Backend/Server/src/routers/auth/local/localAuthRoutes.ts`)
- Local auth routes → Auth controller: routes to (evidence: `Zelosify-Backend/Server/src/routers/auth/local/localAuthRoutes.ts`)
- Auth controller → Registration: delegates to (evidence: `Zelosify-Backend/Server/src/controllers/auth/local/localAuthController.ts`)
- Auth controller → Local login: delegates to (evidence: `Zelosify-Backend/Server/src/controllers/auth/local/localAuthController.ts`)
- Auth controller → TOTP verification: delegates to (evidence: `Zelosify-Backend/Server/src/controllers/auth/local/localAuthController.ts`)
- Registration → Prisma client: uses (evidence: `Zelosify-Backend/Server/src/controllers/auth/local/register/localRegister.ts`)
- Registration → Admin token: requests token (evidence: `Zelosify-Backend/Server/src/controllers/auth/local/register/localRegister.ts`)
- Registration → Keycloak config: uses (evidence: `Zelosify-Backend/Server/src/controllers/auth/local/register/localRegister.ts`)
- Local login → Prisma client: uses (evidence: `Zelosify-Backend/Server/src/controllers/auth/local/login/localLogin.ts`)
- TOTP verification → Prisma client: uses (evidence: `Zelosify-Backend/Server/src/controllers/auth/local/login/verifyTOTP.ts`)
- Hiring routes → Authentication: authenticates (evidence: `Zelosify-Backend/Server/src/routers/hiring/hiringManagerRoutes.ts`)
- Hiring routes → Manager hiring API: routes to (evidence: `Zelosify-Backend/Server/src/routers/hiring/hiringManagerRoutes.ts`)
- Manager hiring API → Prisma client: reads and updates (evidence: `Zelosify-Backend/Server/src/controllers/hiring/contractHiringManagerController.ts`)
- Manager hiring API → Score thresholds: evaluates thresholds (evidence: `Zelosify-Backend/Server/src/controllers/hiring/contractHiringManagerController.ts`)
- Recommendations → AI orchestrator: invokes (evidence: `Zelosify-Backend/Server/src/services/ai/recommendationService.ts`)
- Storage API → Storage factory: creates service (evidence: `Zelosify-Backend/Server/src/controllers/storage/storageController.ts`)
- Storage factory → AWS S3 storage: selects provider (evidence: `Zelosify-Backend/Server/src/services/storage/storageFactory.ts`)
- AWS S3 storage → Storage service: implements (evidence: `Zelosify-Backend/Server/src/services/storage/aws/awsStorageService.ts`)
- AWS S3 storage → Amazon S3: reads and writes (evidence: `Zelosify-Backend/Server/src/services/storage/aws/awsStorageService.ts`)
- Initiative requests → Prisma client: database write disabled (evidence: `Zelosify-Backend/Server/src/controllers/form/initiativeRequestController.ts`)
- Controller exports → Initiative requests: exports (evidence: `Zelosify-Backend/Server/src/controllers/controllers.ts`)
- Controller exports → Profile API: exports (evidence: `Zelosify-Backend/Server/src/controllers/controllers.ts`)
