# jayaprabhapalani/job-application-tracker architecture

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

- Interactive diagram: https://gitdiagram.com/jayaprabhapalani/job-application-tracker
- Repository: https://github.com/jayaprabhapalani/job-application-tracker

## Overview

JobPilot helps users manage job applications and generate role-specific preparation materials. The central workflow is resume upload and application submission, followed by asynchronous agent analysis, validation, and saved results; users can track progress and review applications. The graph also preserves authentication, resume retrieval, Kafka/Celery processing, and live updates. Relationships are based on shown excerpts and SOURCE INDEX references; frontend-to-backend wiring and unsampled subsystem details are not verified, so those links are omitted or marked unverified.

Main entry points: [`backend/app/agents/orchestrator.py`](https://github.com/jayaprabhapalani/job-application-tracker/blob/main/backend/app/agents/orchestrator.py) (Pipeline orchestrator), [`backend/app/agents/llm.py`](https://github.com/jayaprabhapalani/job-application-tracker/blob/main/backend/app/agents/llm.py) (LLM adapter), [`backend/app/jobs/router.py`](https://github.com/jayaprabhapalani/job-application-tracker/blob/main/backend/app/jobs/router.py) (Job and resume routes), [`backend/app/main.py`](https://github.com/jayaprabhapalani/job-application-tracker/blob/main/backend/app/main.py) (API and WebSocket entry)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Web client"]
  node_webapp["Application UI<br/>[App.jsx]"]
  node_dashboard["Application dashboard<br/>[Dashboard.jsx]"]
  node_detail["Application details"]
  node_liveprogress["Live progress hook<br/>[useWebSocket.js]"]
end

subgraph group_api["API and identity"]
  node_authapi["Authentication routes<br/>[router.py]"]
  node_jobapi["Job and resume routes<br/>[router.py]"]
  node_jobservice["Application service<br/>[service.py]"]
  node_queueproducer["Analysis event producer<br/>[producer.py]"]
  node_apiapp["API and WebSocket entry<br/>[main.py]"]
end

subgraph group_processing["Analysis pipeline"]
  node_orchestrator["Pipeline orchestrator<br/>[orchestrator.py]"]
  node_jdparser["Job description parsing<br/>[jd_parser.py]"]
  node_research["Company research"]
  node_interviewprep["Interview preparation<br/>[interview_prep.py]"]
  node_tailoring["Resume tailoring<br/>[resume_tailor.py]"]
  node_letter["Cover letter writing<br/>[cover_letter.py]"]
  node_guardrails["Output validation"]
  node_synthesizer["Result synthesis<br/>[synthesizer.py]"]
  node_llm["LLM adapter<br/>[llm.py]"]
end

subgraph group_knowledge["Resume retrieval"]
  node_retriever["Context retrieval<br/>[retriever.py]"]
  node_vectorstore["Vector storage and search<br/>[vector_store.py]"]
end

subgraph group_runtime["Persistence and runtime"]
  node_worker["Event consumer<br/>[consumer.py]"]
  node_tasks["Background tasks<br/>[tasks.py]"]
  node_database[("Application database<br/>[database.py]")]
  node_models["Application and resume records<br/>[models.py]"]
  node_websocket["Progress delivery<br/>[manager.py]"]
end

node_user(("Job seeker"))
node_kafka["Kafka broker"]
node_llmservice{{"LLM provider"}}
node_redis[("Redis")]

node_user -.->|"uses"| node_webapp
node_webapp -.->|"renders"| node_dashboard
node_webapp -.->|"renders"| node_detail
node_user -.->|"authenticates"| node_authapi
node_user -.->|"submits"| node_jobapi
node_apiapp -->|"mounts routes"| node_authapi
node_apiapp -->|"mounts routes"| node_jobapi
node_authapi -->|"queries"| node_database
node_jobapi -->|"delegates"| node_jobservice
node_jobapi -->|"publishes request"| node_queueproducer
node_jobapi -->|"stores resume chunks"| node_vectorstore
node_jobservice -->|"uses records"| node_models
node_queueproducer -.->|"publishes"| node_kafka
node_kafka -.->|"delivers events"| node_worker
node_worker -->|"dispatches"| node_tasks
node_tasks -->|"runs pipeline"| node_orchestrator
node_orchestrator -->|"runs stage"| node_jdparser
node_orchestrator -->|"runs stage"| node_research
node_orchestrator -->|"runs stage"| node_interviewprep
node_orchestrator -->|"runs stage"| node_tailoring
node_orchestrator -->|"runs stage"| node_letter
node_orchestrator -->|"validates output"| node_guardrails
node_orchestrator -->|"routes valid state"| node_synthesizer
node_jdparser -->|"uses"| node_llm
node_research -->|"uses"| node_llm
node_interviewprep -->|"uses"| node_llm
node_tailoring -->|"uses"| node_llm
node_letter -->|"uses"| node_llm
node_llm -.->|"calls"| node_llmservice
node_interviewprep -->|"retrieves context"| node_retriever
node_tailoring -->|"retrieves context"| node_retriever
node_retriever -->|"searches"| node_vectorstore
node_vectorstore -->|"uses chunks"| node_models
node_tasks -->|"updates status"| node_models
node_models -->|"persists"| node_database
node_tasks -->|"sends progress"| node_websocket
node_apiapp -->|"serves updates"| node_websocket
node_websocket -->|"publishes updates"| node_redis
node_apiapp -.->|"streams updates"| node_liveprogress

click node_webapp "https://github.com/jayaprabhapalani/job-application-tracker/blob/main/frontend/src/App.jsx"
click node_dashboard "https://github.com/jayaprabhapalani/job-application-tracker/blob/main/frontend/src/pages/Dashboard.jsx"
click node_detail "https://github.com/jayaprabhapalani/job-application-tracker/blob/main/frontend/src/pages/ApplicationDetail.jsx"
click node_liveprogress "https://github.com/jayaprabhapalani/job-application-tracker/blob/main/frontend/src/hooks/useWebSocket.js"
click node_authapi "https://github.com/jayaprabhapalani/job-application-tracker/blob/main/backend/app/auth/router.py"
click node_jobapi "https://github.com/jayaprabhapalani/job-application-tracker/blob/main/backend/app/jobs/router.py"
click node_jobservice "https://github.com/jayaprabhapalani/job-application-tracker/blob/main/backend/app/jobs/service.py"
click node_queueproducer "https://github.com/jayaprabhapalani/job-application-tracker/blob/main/backend/app/kafka/producer.py"
click node_worker "https://github.com/jayaprabhapalani/job-application-tracker/blob/main/backend/app/kafka/consumer.py"
click node_tasks "https://github.com/jayaprabhapalani/job-application-tracker/blob/main/backend/app/celery_app/tasks.py"
click node_orchestrator "https://github.com/jayaprabhapalani/job-application-tracker/blob/main/backend/app/agents/orchestrator.py"
click node_jdparser "https://github.com/jayaprabhapalani/job-application-tracker/blob/main/backend/app/agents/jd_parser.py"
click node_research "https://github.com/jayaprabhapalani/job-application-tracker/blob/main/backend/app/agents/company_research.py"
click node_interviewprep "https://github.com/jayaprabhapalani/job-application-tracker/blob/main/backend/app/agents/interview_prep.py"
click node_tailoring "https://github.com/jayaprabhapalani/job-application-tracker/blob/main/backend/app/agents/resume_tailor.py"
click node_letter "https://github.com/jayaprabhapalani/job-application-tracker/blob/main/backend/app/agents/cover_letter.py"
click node_guardrails "https://github.com/jayaprabhapalani/job-application-tracker/blob/main/backend/app/guardrails/output_validator.py"
click node_synthesizer "https://github.com/jayaprabhapalani/job-application-tracker/blob/main/backend/app/agents/synthesizer.py"
click node_llm "https://github.com/jayaprabhapalani/job-application-tracker/blob/main/backend/app/agents/llm.py"
click node_retriever "https://github.com/jayaprabhapalani/job-application-tracker/blob/main/backend/app/rag/retriever.py"
click node_vectorstore "https://github.com/jayaprabhapalani/job-application-tracker/blob/main/backend/app/rag/vector_store.py"
click node_database "https://github.com/jayaprabhapalani/job-application-tracker/blob/main/backend/app/database.py"
click node_models "https://github.com/jayaprabhapalani/job-application-tracker/blob/main/backend/app/jobs/models.py"
click node_websocket "https://github.com/jayaprabhapalani/job-application-tracker/blob/main/backend/app/websocket/manager.py"
click node_apiapp "https://github.com/jayaprabhapalani/job-application-tracker/blob/main/backend/app/main.py"

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_dashboard,node_detail,node_liveprogress toneBlue
class node_authapi,node_jobapi,node_jobservice,node_queueproducer,node_apiapp,node_redis toneAmber
class node_orchestrator,node_jdparser,node_research,node_interviewprep,node_tailoring,node_letter,node_guardrails,node_synthesizer,node_llm toneMint
class node_retriever,node_vectorstore toneRose
class node_worker,node_tasks,node_database,node_models,node_websocket,node_user,node_kafka,node_llmservice toneIndigo
```

## Components

### Web client

- [Application UI](https://github.com/jayaprabhapalani/job-application-tracker/blob/main/frontend/src/App.jsx): `frontend/src/App.jsx`
- [Application dashboard](https://github.com/jayaprabhapalani/job-application-tracker/blob/main/frontend/src/pages/Dashboard.jsx): `frontend/src/pages/Dashboard.jsx`
- [Application details](https://github.com/jayaprabhapalani/job-application-tracker/blob/main/frontend/src/pages/ApplicationDetail.jsx): `frontend/src/pages/ApplicationDetail.jsx`
- [Live progress hook](https://github.com/jayaprabhapalani/job-application-tracker/blob/main/frontend/src/hooks/useWebSocket.js): `frontend/src/hooks/useWebSocket.js`

### API and identity

- [Authentication routes](https://github.com/jayaprabhapalani/job-application-tracker/blob/main/backend/app/auth/router.py): `backend/app/auth/router.py`
- [Job and resume routes](https://github.com/jayaprabhapalani/job-application-tracker/blob/main/backend/app/jobs/router.py): `backend/app/jobs/router.py`
- [Application service](https://github.com/jayaprabhapalani/job-application-tracker/blob/main/backend/app/jobs/service.py): `backend/app/jobs/service.py`
- [Analysis event producer](https://github.com/jayaprabhapalani/job-application-tracker/blob/main/backend/app/kafka/producer.py): `backend/app/kafka/producer.py`
- [API and WebSocket entry](https://github.com/jayaprabhapalani/job-application-tracker/blob/main/backend/app/main.py): `backend/app/main.py`

### Analysis pipeline

- [Pipeline orchestrator](https://github.com/jayaprabhapalani/job-application-tracker/blob/main/backend/app/agents/orchestrator.py): `backend/app/agents/orchestrator.py`
- [Job description parsing](https://github.com/jayaprabhapalani/job-application-tracker/blob/main/backend/app/agents/jd_parser.py): `backend/app/agents/jd_parser.py`
- [Company research](https://github.com/jayaprabhapalani/job-application-tracker/blob/main/backend/app/agents/company_research.py): `backend/app/agents/company_research.py`
- [Interview preparation](https://github.com/jayaprabhapalani/job-application-tracker/blob/main/backend/app/agents/interview_prep.py): `backend/app/agents/interview_prep.py`
- [Resume tailoring](https://github.com/jayaprabhapalani/job-application-tracker/blob/main/backend/app/agents/resume_tailor.py): `backend/app/agents/resume_tailor.py`
- [Cover letter writing](https://github.com/jayaprabhapalani/job-application-tracker/blob/main/backend/app/agents/cover_letter.py): `backend/app/agents/cover_letter.py`
- [Output validation](https://github.com/jayaprabhapalani/job-application-tracker/blob/main/backend/app/guardrails/output_validator.py): `backend/app/guardrails/output_validator.py`
- [Result synthesis](https://github.com/jayaprabhapalani/job-application-tracker/blob/main/backend/app/agents/synthesizer.py): `backend/app/agents/synthesizer.py`
- [LLM adapter](https://github.com/jayaprabhapalani/job-application-tracker/blob/main/backend/app/agents/llm.py): `backend/app/agents/llm.py`

### Resume retrieval

- [Context retrieval](https://github.com/jayaprabhapalani/job-application-tracker/blob/main/backend/app/rag/retriever.py): `backend/app/rag/retriever.py`
- [Vector storage and search](https://github.com/jayaprabhapalani/job-application-tracker/blob/main/backend/app/rag/vector_store.py): `backend/app/rag/vector_store.py`

### Persistence and runtime

- [Event consumer](https://github.com/jayaprabhapalani/job-application-tracker/blob/main/backend/app/kafka/consumer.py): `backend/app/kafka/consumer.py`
- [Background tasks](https://github.com/jayaprabhapalani/job-application-tracker/blob/main/backend/app/celery_app/tasks.py): `backend/app/celery_app/tasks.py`
- [Application database](https://github.com/jayaprabhapalani/job-application-tracker/blob/main/backend/app/database.py): `backend/app/database.py`
- [Application and resume records](https://github.com/jayaprabhapalani/job-application-tracker/blob/main/backend/app/jobs/models.py): `backend/app/jobs/models.py`
- [Progress delivery](https://github.com/jayaprabhapalani/job-application-tracker/blob/main/backend/app/websocket/manager.py): `backend/app/websocket/manager.py`

### Other components

- **Job seeker**
- **Kafka broker**
- **LLM provider**
- **Redis**

## Connections

- Job seeker → Application UI: uses
- Application UI → Application dashboard: renders
- Application UI → Application details: renders
- Job seeker → Authentication routes: authenticates
- Job seeker → Job and resume routes: submits
- API and WebSocket entry → Authentication routes: mounts routes (evidence: `backend/app/main.py`)
- API and WebSocket entry → Job and resume routes: mounts routes (evidence: `backend/app/main.py`)
- Authentication routes → Application database: queries (evidence: `backend/app/auth/router.py`)
- Job and resume routes → Application service: delegates (evidence: `backend/app/jobs/router.py`)
- Job and resume routes → Analysis event producer: publishes request (evidence: `backend/app/jobs/router.py`)
- Job and resume routes → Vector storage and search: stores resume chunks (evidence: `backend/app/jobs/router.py`)
- Application service → Application and resume records: uses records (evidence: `backend/app/jobs/service.py`)
- Analysis event producer → Kafka broker: publishes
- Kafka broker → Event consumer: delivers events
- Event consumer → Background tasks: dispatches (evidence: `backend/app/kafka/consumer.py`)
- Background tasks → Pipeline orchestrator: runs pipeline (evidence: `backend/app/celery_app/tasks.py`)
- Pipeline orchestrator → Job description parsing: runs stage (evidence: `backend/app/agents/orchestrator.py`)
- Pipeline orchestrator → Company research: runs stage (evidence: `backend/app/agents/orchestrator.py`)
- Pipeline orchestrator → Interview preparation: runs stage (evidence: `backend/app/agents/orchestrator.py`)
- Pipeline orchestrator → Resume tailoring: runs stage (evidence: `backend/app/agents/orchestrator.py`)
- Pipeline orchestrator → Cover letter writing: runs stage (evidence: `backend/app/agents/orchestrator.py`)
- Pipeline orchestrator → Output validation: validates output (evidence: `backend/app/agents/orchestrator.py`)
- Pipeline orchestrator → Result synthesis: routes valid state (evidence: `backend/app/agents/orchestrator.py`)
- Job description parsing → LLM adapter: uses (evidence: `backend/app/agents/jd_parser.py`)
- Company research → LLM adapter: uses (evidence: `backend/app/agents/company_research.py`)
- Interview preparation → LLM adapter: uses (evidence: `backend/app/agents/interview_prep.py`)
- Resume tailoring → LLM adapter: uses (evidence: `backend/app/agents/resume_tailor.py`)
- Cover letter writing → LLM adapter: uses (evidence: `backend/app/agents/cover_letter.py`)
- LLM adapter → LLM provider: calls
- Interview preparation → Context retrieval: retrieves context (evidence: `backend/app/agents/interview_prep.py`)
- Resume tailoring → Context retrieval: retrieves context (evidence: `backend/app/agents/resume_tailor.py`)
- Context retrieval → Vector storage and search: searches (evidence: `backend/app/rag/retriever.py`)
- Vector storage and search → Application and resume records: uses chunks (evidence: `backend/app/rag/vector_store.py`)
- Background tasks → Application and resume records: updates status (evidence: `backend/app/celery_app/tasks.py`)
- Application and resume records → Application database: persists (evidence: `backend/app/jobs/models.py`)
- Background tasks → Progress delivery: sends progress (evidence: `backend/app/celery_app/tasks.py`)
- API and WebSocket entry → Progress delivery: serves updates (evidence: `backend/app/main.py`)
- Progress delivery → Redis: publishes updates (evidence: `backend/app/websocket/manager.py`)
- API and WebSocket entry → Live progress hook: streams updates
