# piyushraut657/resiq architecture

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

- Interactive diagram: https://gitdiagram.com/piyushraut657/resiq
- Repository: https://github.com/piyushraut657/resiq

## Overview

RESIQ is a resume-intelligence and recruitment application. Its implemented user workflow covers account registration/login, authenticated resume upload and management, with backend services persisting users and resume records. The README describes parsing, ATS scoring, job matching, skill-gap analysis, ranking, dashboards, and AI features as later product capabilities; these are represented as planned subsystems, not asserted as implemented. The excerpts show backend route-to-controller and controller-to-service calls. Frontend-to-backend wiring and several planned-stage connections are not verified by the sampled source, so they are omitted or marked unverified.

Main entry points: [`backend/app/auth/dependencies.py`](https://github.com/piyushraut657/resiq/blob/main/backend/app/auth/dependencies.py) (Token and role checks), [`frontend/src/App.tsx`](https://github.com/piyushraut657/resiq/blob/main/frontend/src/App.tsx) (Web application), [`frontend/src/services/authService.ts`](https://github.com/piyushraut657/resiq/blob/main/frontend/src/services/authService.ts) (Auth client), [`backend/app/services/auth_service.py`](https://github.com/piyushraut657/resiq/blob/main/backend/app/services/auth_service.py) (Auth service)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web application"]
  node_webapp["Web application<br/>[App.tsx]"]
  node_authui["Auth experience<br/>[RegisterPage.tsx]"]
  node_resumeui["Resume workspace"]
  node_authclient["Auth client<br/>[authService.ts]"]
  node_resumeclient["Resume client<br/>[resumeService.ts]"]
  node_tokenstore[("Token storage<br/>[tokenStorage.ts]")]
end

subgraph group_api["API orchestration"]
  node_apiapp["FastAPI application<br/>[main.py]"]
  node_authroutes["Auth routes<br/>[auth.py]"]
  node_resumeroutes["Resume routes<br/>[resumes.py]"]
  node_authcontroller["Auth controller<br/>[auth_controller.py]"]
  node_resumecontroller["Resume controller"]
end

subgraph group_identity["Identity and access"]
  node_authservice["Auth service<br/>[auth_service.py]"]
  node_authguard["Token and role checks<br/>[dependencies.py]"]
  node_jwt["JWT handling<br/>[jwt.py]"]
  node_blacklist["Token blacklist<br/>[blacklist.py]"]
  node_redis[("Redis<br/>[redis_client.py]")]
end

subgraph group_domain["Resume and data"]
  node_resumeservice["Resume service<br/>[resume_service.py]"]
  node_resumemodel[("Resume records<br/>[resume.py]")]
  node_user_model[("User records<br/>[user.py]")]
  node_job_model[("Job descriptions<br/>[job_description.py]")]
  node_skill_model[("Skills catalog<br/>[skill.py]")]
  node_analysis_model[("Analysis results<br/>[analysis_result.py]")]
  node_dbsession["Database sessions<br/>[session.py]"]
end

subgraph group_intelligence["Resume intelligence"]
  node_parsing["Resume parsing"]
  node_scoring["ATS scoring"]
  node_matching["Job matching"]
  node_skillgap["Skill-gap analysis"]
  node_ranking["Resume ranking"]
  node_dashboards["Recruitment dashboards"]
  node_aifeatures["AI features"]
end

node_candidate(("Candidate"))

node_candidate -->|"uses"| node_webapp
node_authroutes -->|"delegates"| node_authcontroller
node_resumeroutes -->|"delegates"| node_resumecontroller
node_resumecontroller -->|"calls"| node_resumeservice
node_authguard -->|"decodes token"| node_jwt
node_authguard -->|"checks revocation"| node_blacklist
node_blacklist -->|"uses"| node_redis
node_authguard -->|"resolves user"| node_authservice
node_authservice -->|"queries and creates"| node_user_model
node_authservice -->|"uses session"| node_dbsession
node_resumeservice -.->|"uses session"| node_dbsession
node_webapp -.->|"routes to"| node_authui
node_webapp -.->|"routes to"| node_resumeui
node_authui -.->|"submits auth"| node_authclient
node_resumeui -.->|"uploads resume"| node_resumeclient
node_authclient -.->|"stores tokens"| node_tokenstore
node_authclient -.->|"calls API"| node_authroutes
node_resumeclient -.->|"calls API"| node_resumeroutes

click node_webapp "https://github.com/piyushraut657/resiq/blob/main/frontend/src/App.tsx"
click node_authui "https://github.com/piyushraut657/resiq/blob/main/frontend/src/pages/RegisterPage.tsx"
click node_resumeui "https://github.com/piyushraut657/resiq/blob/main/frontend/src/components/ResumeUploadZone.tsx"
click node_authclient "https://github.com/piyushraut657/resiq/blob/main/frontend/src/services/authService.ts"
click node_resumeclient "https://github.com/piyushraut657/resiq/blob/main/frontend/src/services/resumeService.ts"
click node_tokenstore "https://github.com/piyushraut657/resiq/blob/main/frontend/src/utils/tokenStorage.ts"
click node_apiapp "https://github.com/piyushraut657/resiq/blob/main/backend/app/main.py"
click node_authroutes "https://github.com/piyushraut657/resiq/blob/main/backend/app/routes/auth.py"
click node_resumeroutes "https://github.com/piyushraut657/resiq/blob/main/backend/app/routes/resumes.py"
click node_authcontroller "https://github.com/piyushraut657/resiq/blob/main/backend/app/controllers/auth_controller.py"
click node_resumecontroller "https://github.com/piyushraut657/resiq/blob/main/backend/app/controllers/resume_controller.py"
click node_authservice "https://github.com/piyushraut657/resiq/blob/main/backend/app/services/auth_service.py"
click node_authguard "https://github.com/piyushraut657/resiq/blob/main/backend/app/auth/dependencies.py"
click node_jwt "https://github.com/piyushraut657/resiq/blob/main/backend/app/auth/jwt.py"
click node_blacklist "https://github.com/piyushraut657/resiq/blob/main/backend/app/auth/blacklist.py"
click node_redis "https://github.com/piyushraut657/resiq/blob/main/backend/app/database/redis_client.py"
click node_resumeservice "https://github.com/piyushraut657/resiq/blob/main/backend/app/services/resume_service.py"
click node_resumemodel "https://github.com/piyushraut657/resiq/blob/main/backend/app/models/resume.py"
click node_user_model "https://github.com/piyushraut657/resiq/blob/main/backend/app/models/user.py"
click node_job_model "https://github.com/piyushraut657/resiq/blob/main/backend/app/models/job_description.py"
click node_skill_model "https://github.com/piyushraut657/resiq/blob/main/backend/app/models/skill.py"
click node_analysis_model "https://github.com/piyushraut657/resiq/blob/main/backend/app/models/analysis_result.py"
click node_dbsession "https://github.com/piyushraut657/resiq/blob/main/backend/app/database/session.py"
click node_parsing "https://github.com/piyushraut657/resiq/tree/main/backend/app/ml"
click node_scoring "https://github.com/piyushraut657/resiq/tree/main/backend/app/ml"
click node_matching "https://github.com/piyushraut657/resiq/tree/main/backend/app/ml"
click node_skillgap "https://github.com/piyushraut657/resiq/tree/main/backend/app/ml"
click node_ranking "https://github.com/piyushraut657/resiq/tree/main/backend/app/ml"
click node_dashboards "https://github.com/piyushraut657/resiq/tree/main/backend/app"
click node_aifeatures "https://github.com/piyushraut657/resiq/tree/main/backend/app/ml"

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_authui,node_resumeui,node_authclient,node_resumeclient,node_tokenstore toneBlue
class node_apiapp,node_authroutes,node_resumeroutes,node_authcontroller,node_resumecontroller toneAmber
class node_authservice,node_authguard,node_jwt,node_blacklist,node_redis toneMint
class node_resumeservice,node_resumemodel,node_user_model,node_job_model,node_skill_model,node_analysis_model,node_dbsession toneRose
class node_parsing,node_scoring,node_matching,node_skillgap,node_ranking,node_dashboards,node_aifeatures,node_candidate toneIndigo
```

## Components

### Web application

- [Web application](https://github.com/piyushraut657/resiq/blob/main/frontend/src/App.tsx): `frontend/src/App.tsx`
- [Auth experience](https://github.com/piyushraut657/resiq/blob/main/frontend/src/pages/RegisterPage.tsx): `frontend/src/pages/RegisterPage.tsx`
- [Resume workspace](https://github.com/piyushraut657/resiq/blob/main/frontend/src/components/ResumeUploadZone.tsx): `frontend/src/components/ResumeUploadZone.tsx`
- [Auth client](https://github.com/piyushraut657/resiq/blob/main/frontend/src/services/authService.ts): `frontend/src/services/authService.ts`
- [Resume client](https://github.com/piyushraut657/resiq/blob/main/frontend/src/services/resumeService.ts): `frontend/src/services/resumeService.ts`
- [Token storage](https://github.com/piyushraut657/resiq/blob/main/frontend/src/utils/tokenStorage.ts): `frontend/src/utils/tokenStorage.ts`

### API orchestration

- [FastAPI application](https://github.com/piyushraut657/resiq/blob/main/backend/app/main.py): `backend/app/main.py`
- [Auth routes](https://github.com/piyushraut657/resiq/blob/main/backend/app/routes/auth.py): `backend/app/routes/auth.py`
- [Resume routes](https://github.com/piyushraut657/resiq/blob/main/backend/app/routes/resumes.py): `backend/app/routes/resumes.py`
- [Auth controller](https://github.com/piyushraut657/resiq/blob/main/backend/app/controllers/auth_controller.py): `backend/app/controllers/auth_controller.py`
- [Resume controller](https://github.com/piyushraut657/resiq/blob/main/backend/app/controllers/resume_controller.py): `backend/app/controllers/resume_controller.py`

### Identity and access

- [Auth service](https://github.com/piyushraut657/resiq/blob/main/backend/app/services/auth_service.py): `backend/app/services/auth_service.py`
- [Token and role checks](https://github.com/piyushraut657/resiq/blob/main/backend/app/auth/dependencies.py): `backend/app/auth/dependencies.py`
- [JWT handling](https://github.com/piyushraut657/resiq/blob/main/backend/app/auth/jwt.py): `backend/app/auth/jwt.py`
- [Token blacklist](https://github.com/piyushraut657/resiq/blob/main/backend/app/auth/blacklist.py): `backend/app/auth/blacklist.py`
- [Redis](https://github.com/piyushraut657/resiq/blob/main/backend/app/database/redis_client.py): `backend/app/database/redis_client.py`

### Resume and data

- [Resume service](https://github.com/piyushraut657/resiq/blob/main/backend/app/services/resume_service.py): `backend/app/services/resume_service.py`
- [Resume records](https://github.com/piyushraut657/resiq/blob/main/backend/app/models/resume.py): `backend/app/models/resume.py`
- [User records](https://github.com/piyushraut657/resiq/blob/main/backend/app/models/user.py): `backend/app/models/user.py`
- [Job descriptions](https://github.com/piyushraut657/resiq/blob/main/backend/app/models/job_description.py): `backend/app/models/job_description.py`
- [Skills catalog](https://github.com/piyushraut657/resiq/blob/main/backend/app/models/skill.py): `backend/app/models/skill.py`
- [Analysis results](https://github.com/piyushraut657/resiq/blob/main/backend/app/models/analysis_result.py): `backend/app/models/analysis_result.py`
- [Database sessions](https://github.com/piyushraut657/resiq/blob/main/backend/app/database/session.py): `backend/app/database/session.py`

### Resume intelligence

- [Resume parsing](https://github.com/piyushraut657/resiq/tree/main/backend/app/ml): `backend/app/ml`
- [ATS scoring](https://github.com/piyushraut657/resiq/tree/main/backend/app/ml): `backend/app/ml`
- [Job matching](https://github.com/piyushraut657/resiq/tree/main/backend/app/ml): `backend/app/ml`
- [Skill-gap analysis](https://github.com/piyushraut657/resiq/tree/main/backend/app/ml): `backend/app/ml`
- [Resume ranking](https://github.com/piyushraut657/resiq/tree/main/backend/app/ml): `backend/app/ml`
- [Recruitment dashboards](https://github.com/piyushraut657/resiq/tree/main/backend/app): `backend/app`
- [AI features](https://github.com/piyushraut657/resiq/tree/main/backend/app/ml): `backend/app/ml`

### Other components

- **Candidate**

## Connections

- Candidate → Web application: uses
- Auth routes → Auth controller: delegates (evidence: `backend/app/routes/auth.py`)
- Resume routes → Resume controller: delegates (evidence: `backend/app/controllers/resume_controller.py`)
- Resume controller → Resume service: calls (evidence: `backend/app/controllers/resume_controller.py`)
- Token and role checks → JWT handling: decodes token (evidence: `backend/app/auth/dependencies.py`)
- Token and role checks → Token blacklist: checks revocation (evidence: `backend/app/auth/dependencies.py`)
- Token blacklist → Redis: uses (evidence: `backend/app/database/redis_client.py`)
- Token and role checks → Auth service: resolves user (evidence: `backend/app/auth/dependencies.py`)
- Auth service → User records: queries and creates (evidence: `backend/app/services/auth_service.py`)
- Auth service → Database sessions: uses session (evidence: `backend/app/services/auth_service.py`)
- Resume service → Database sessions: uses session
- Web application → Auth experience: routes to
- Web application → Resume workspace: routes to
- Auth experience → Auth client: submits auth
- Resume workspace → Resume client: uploads resume
- Auth client → Token storage: stores tokens
- Auth client → Auth routes: calls API
- Resume client → Resume routes: calls API
