# nikhileshnarkhede/job-application-assistant architecture

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

- Interactive diagram: https://gitdiagram.com/nikhileshnarkhede/job-application-assistant
- Repository: https://github.com/nikhileshnarkhede/job-application-assistant

## Overview

Job Application Assistant turns a job description into tailored application materials through a LangGraph pipeline: extract the JD, match skills, select relevant experience and projects, rewrite content, build and optimize a resume, check compliance, then generate a cover letter, recruiter email, and tracking entry. Users can initiate runs through the CLI or Streamlit interface. The README documents checkpointing, PDF export, and the MCP tool server’s broader capabilities; sampled source confirms some integrations, but not every runtime connection, so those links are omitted where evidence is unavailable.

Main entry points: [`pipeline/nodes.py`](https://github.com/nikhileshnarkhede/job-application-assistant/blob/master/pipeline/nodes.py) (Pipeline Nodes), [`mcp_server/server.py`](https://github.com/nikhileshnarkhede/job-application-assistant/blob/master/mcp_server/server.py) (MCP Tool Server), [`pipeline/graph.py`](https://github.com/nikhileshnarkhede/job-application-assistant/blob/master/pipeline/graph.py) (Parent Graph), [`state/state_models.py`](https://github.com/nikhileshnarkhede/job-application-assistant/blob/master/state/state_models.py) (Shared State Models)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interfaces["User Interfaces"]
  node_cli["CLI<br/>[main.py]"]
  node_gui["Streamlit GUI"]
  node_runpage["Run Pipeline Page"]
end

subgraph group_pipeline["Application Pipeline"]
  node_orchestrator["Parent Graph<br/>[graph.py]"]
  node_stages["Pipeline Nodes<br/>[nodes.py]"]
  node_jd["JD Extraction"]
  node_skills["Skill Matching"]
  node_selection["Experience Selection"]
  node_github["Project Ranking"]
  node_rewriter["Experience Rewriting"]
end

subgraph group_documents["Document Generation"]
  node_resume["Resume Builder"]
  node_ats["ATS Optimization"]
  node_compliance["Resume Compliance"]
  node_cover["Cover Letter Generator"]
  node_covercheck["Cover Letter Compliance"]
  node_email["Recruiter Email"]
  node_tracker["Application Tracker"]
  node_pdf["PDF Export<br/>[generate_resume.py]"]
end

subgraph group_integrations["Tools and Integrations"]
  node_mcp["MCP Tool Server<br/>[server.py]"]
  node_candidate["Candidate Loader"]
  node_github_loader["GitHub Project Loader"]
  node_rule_engine["Rule Engine<br/>[rule_engine.py]"]
  node_ats_scoring["ATS Scoring<br/>[ats_scoring.py]"]
  node_resources["Resource Loader<br/>[resource_loader.py]"]
  node_rag[("RAG Vector Store<br/>[rag_vectorstore.py]")]
end

subgraph group_state["State and Persistence"]
  node_state_models["Shared State Models<br/>[state_models.py]"]
  node_checkpoint["Checkpoint Runner<br/>[runner.py]"]
  node_threads["Thread Manager<br/>[thread_manager.py]"]
end

node_user(("Applicant"))

node_user -->|"starts run"| node_cli
node_user -->|"opens app"| node_gui
node_gui -->|"navigates to"| node_runpage
node_cli -->|"runs pipeline"| node_orchestrator
node_runpage -->|"runs pipeline"| node_orchestrator
node_orchestrator -->|"dispatches stages"| node_stages
node_stages -->|"extracts JD"| node_jd
node_stages -->|"matches skills"| node_skills
node_stages -->|"selects experience"| node_selection
node_stages -->|"ranks projects"| node_github
node_stages -->|"rewrites content"| node_rewriter
node_stages -->|"builds resume"| node_resume
node_stages -->|"optimizes resume"| node_ats
node_stages -->|"checks resume"| node_compliance
node_stages -->|"generates letter"| node_cover
node_stages -->|"checks letter"| node_covercheck
node_stages -->|"generates email"| node_email
node_stages -->|"records application"| node_tracker
node_stages -.->|"exports PDF"| node_pdf
node_orchestrator -->|"checkpoints runs"| node_checkpoint
node_stages -->|"uses shared models"| node_state_models
node_mcp -->|"registers tools"| node_candidate
node_mcp -.->|"registers tools"| node_github_loader
node_mcp -->|"registers tools"| node_resources
node_mcp -->|"registers tools"| node_threads
node_mcp -->|"registers tools"| node_rag
node_mcp -->|"registers tools"| node_rule_engine
node_mcp -->|"registers tools"| node_ats_scoring
node_selection -->|"loads candidate data"| node_candidate
node_github -->|"loads projects"| node_github_loader
node_rewriter -->|"loads resources"| node_resources
node_ats -->|"uses shared models"| node_state_models
node_covercheck -->|"uses shared models"| node_state_models

click node_cli "https://github.com/nikhileshnarkhede/job-application-assistant/blob/master/main.py"
click node_gui "https://github.com/nikhileshnarkhede/job-application-assistant/tree/master/streamlit_app"
click node_runpage "https://github.com/nikhileshnarkhede/job-application-assistant/blob/master/streamlit_app/pages/2_%F0%9F%9A%80_Run_Pipeline.py"
click node_orchestrator "https://github.com/nikhileshnarkhede/job-application-assistant/blob/master/pipeline/graph.py"
click node_stages "https://github.com/nikhileshnarkhede/job-application-assistant/blob/master/pipeline/nodes.py"
click node_jd "https://github.com/nikhileshnarkhede/job-application-assistant/tree/master/subgraphs/jd_extractor"
click node_skills "https://github.com/nikhileshnarkhede/job-application-assistant/tree/master/subgraphs/skill_matcher"
click node_selection "https://github.com/nikhileshnarkhede/job-application-assistant/tree/master/subgraphs/experience_selector"
click node_github "https://github.com/nikhileshnarkhede/job-application-assistant/tree/master/subgraphs/github_ranker"
click node_rewriter "https://github.com/nikhileshnarkhede/job-application-assistant/tree/master/subgraphs/experience_rewriter"
click node_resume "https://github.com/nikhileshnarkhede/job-application-assistant/tree/master/subgraphs/resume_builder"
click node_ats "https://github.com/nikhileshnarkhede/job-application-assistant/tree/master/subgraphs/ats_optimizer"
click node_compliance "https://github.com/nikhileshnarkhede/job-application-assistant/tree/master/subgraphs/resource_compliance"
click node_cover "https://github.com/nikhileshnarkhede/job-application-assistant/tree/master/subgraphs/cover_letter_generator"
click node_covercheck "https://github.com/nikhileshnarkhede/job-application-assistant/tree/master/subgraphs/cover_letter_compliance"
click node_email "https://github.com/nikhileshnarkhede/job-application-assistant/tree/master/subgraphs/email_generator"
click node_tracker "https://github.com/nikhileshnarkhede/job-application-assistant/tree/master/subgraphs/excel_writer"
click node_pdf "https://github.com/nikhileshnarkhede/job-application-assistant/blob/master/files/generate_resume.py"
click node_state_models "https://github.com/nikhileshnarkhede/job-application-assistant/blob/master/state/state_models.py"
click node_checkpoint "https://github.com/nikhileshnarkhede/job-application-assistant/blob/master/pipeline/runner.py"
click node_mcp "https://github.com/nikhileshnarkhede/job-application-assistant/blob/master/mcp_server/server.py"
click node_candidate "https://github.com/nikhileshnarkhede/job-application-assistant/blob/master/mcp_server/tools/candidate_loader.py"
click node_github_loader "https://github.com/nikhileshnarkhede/job-application-assistant/blob/master/mcp_server/tools/github_project_loader.py"
click node_rule_engine "https://github.com/nikhileshnarkhede/job-application-assistant/blob/master/mcp_server/tools/rule_engine.py"
click node_ats_scoring "https://github.com/nikhileshnarkhede/job-application-assistant/blob/master/mcp_server/tools/ats_scoring.py"
click node_resources "https://github.com/nikhileshnarkhede/job-application-assistant/blob/master/mcp_server/tools/resource_loader.py"
click node_threads "https://github.com/nikhileshnarkhede/job-application-assistant/blob/master/mcp_server/tools/thread_manager.py"
click node_rag "https://github.com/nikhileshnarkhede/job-application-assistant/blob/master/mcp_server/tools/rag_vectorstore.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_cli,node_gui,node_runpage toneBlue
class node_orchestrator,node_stages,node_jd,node_skills,node_selection,node_github,node_rewriter toneAmber
class node_resume,node_ats,node_compliance,node_cover,node_covercheck,node_email,node_tracker,node_pdf toneMint
class node_mcp,node_candidate,node_github_loader,node_rule_engine,node_ats_scoring,node_resources,node_rag toneRose
class node_state_models,node_checkpoint,node_threads,node_user toneIndigo
```

## Components

### User Interfaces

- [CLI](https://github.com/nikhileshnarkhede/job-application-assistant/blob/master/main.py): `main.py`
- [Streamlit GUI](https://github.com/nikhileshnarkhede/job-application-assistant/tree/master/streamlit_app): `streamlit_app`
- [Run Pipeline Page](https://github.com/nikhileshnarkhede/job-application-assistant/blob/master/streamlit_app/pages/2_%F0%9F%9A%80_Run_Pipeline.py): `streamlit_app/pages/2_🚀_Run_Pipeline.py`

### Application Pipeline

- [Parent Graph](https://github.com/nikhileshnarkhede/job-application-assistant/blob/master/pipeline/graph.py): `pipeline/graph.py`
- [Pipeline Nodes](https://github.com/nikhileshnarkhede/job-application-assistant/blob/master/pipeline/nodes.py): `pipeline/nodes.py`
- [JD Extraction](https://github.com/nikhileshnarkhede/job-application-assistant/tree/master/subgraphs/jd_extractor): `subgraphs/jd_extractor`
- [Skill Matching](https://github.com/nikhileshnarkhede/job-application-assistant/tree/master/subgraphs/skill_matcher): `subgraphs/skill_matcher`
- [Experience Selection](https://github.com/nikhileshnarkhede/job-application-assistant/tree/master/subgraphs/experience_selector): `subgraphs/experience_selector`
- [Project Ranking](https://github.com/nikhileshnarkhede/job-application-assistant/tree/master/subgraphs/github_ranker): `subgraphs/github_ranker`
- [Experience Rewriting](https://github.com/nikhileshnarkhede/job-application-assistant/tree/master/subgraphs/experience_rewriter): `subgraphs/experience_rewriter`

### Document Generation

- [Resume Builder](https://github.com/nikhileshnarkhede/job-application-assistant/tree/master/subgraphs/resume_builder): `subgraphs/resume_builder`
- [ATS Optimization](https://github.com/nikhileshnarkhede/job-application-assistant/tree/master/subgraphs/ats_optimizer): `subgraphs/ats_optimizer`
- [Resume Compliance](https://github.com/nikhileshnarkhede/job-application-assistant/tree/master/subgraphs/resource_compliance): `subgraphs/resource_compliance`
- [Cover Letter Generator](https://github.com/nikhileshnarkhede/job-application-assistant/tree/master/subgraphs/cover_letter_generator): `subgraphs/cover_letter_generator`
- [Cover Letter Compliance](https://github.com/nikhileshnarkhede/job-application-assistant/tree/master/subgraphs/cover_letter_compliance): `subgraphs/cover_letter_compliance`
- [Recruiter Email](https://github.com/nikhileshnarkhede/job-application-assistant/tree/master/subgraphs/email_generator): `subgraphs/email_generator`
- [Application Tracker](https://github.com/nikhileshnarkhede/job-application-assistant/tree/master/subgraphs/excel_writer): `subgraphs/excel_writer`
- [PDF Export](https://github.com/nikhileshnarkhede/job-application-assistant/blob/master/files/generate_resume.py): `files/generate_resume.py`

### Tools and Integrations

- [MCP Tool Server](https://github.com/nikhileshnarkhede/job-application-assistant/blob/master/mcp_server/server.py): `mcp_server/server.py`
- [Candidate Loader](https://github.com/nikhileshnarkhede/job-application-assistant/blob/master/mcp_server/tools/candidate_loader.py): `mcp_server/tools/candidate_loader.py`
- [GitHub Project Loader](https://github.com/nikhileshnarkhede/job-application-assistant/blob/master/mcp_server/tools/github_project_loader.py): `mcp_server/tools/github_project_loader.py`
- [Rule Engine](https://github.com/nikhileshnarkhede/job-application-assistant/blob/master/mcp_server/tools/rule_engine.py): `mcp_server/tools/rule_engine.py`
- [ATS Scoring](https://github.com/nikhileshnarkhede/job-application-assistant/blob/master/mcp_server/tools/ats_scoring.py): `mcp_server/tools/ats_scoring.py`
- [Resource Loader](https://github.com/nikhileshnarkhede/job-application-assistant/blob/master/mcp_server/tools/resource_loader.py): `mcp_server/tools/resource_loader.py`
- [RAG Vector Store](https://github.com/nikhileshnarkhede/job-application-assistant/blob/master/mcp_server/tools/rag_vectorstore.py): `mcp_server/tools/rag_vectorstore.py`

### State and Persistence

- [Shared State Models](https://github.com/nikhileshnarkhede/job-application-assistant/blob/master/state/state_models.py): `state/state_models.py`
- [Checkpoint Runner](https://github.com/nikhileshnarkhede/job-application-assistant/blob/master/pipeline/runner.py): `pipeline/runner.py`
- [Thread Manager](https://github.com/nikhileshnarkhede/job-application-assistant/blob/master/mcp_server/tools/thread_manager.py): `mcp_server/tools/thread_manager.py`

### Other components

- **Applicant**

## Connections

- Applicant → CLI: starts run (evidence: `main.py`)
- Applicant → Streamlit GUI: opens app (evidence: `README.md`)
- Streamlit GUI → Run Pipeline Page: navigates to (evidence: `streamlit_app/app.py`)
- CLI → Parent Graph: runs pipeline (evidence: `main.py`)
- Run Pipeline Page → Parent Graph: runs pipeline (evidence: `streamlit_app/pages/2_🚀_Run_Pipeline.py`)
- Parent Graph → Pipeline Nodes: dispatches stages (evidence: `README.md`)
- Pipeline Nodes → JD Extraction: extracts JD (evidence: `README.md`)
- Pipeline Nodes → Skill Matching: matches skills (evidence: `README.md`)
- Pipeline Nodes → Experience Selection: selects experience (evidence: `README.md`)
- Pipeline Nodes → Project Ranking: ranks projects (evidence: `README.md`)
- Pipeline Nodes → Experience Rewriting: rewrites content (evidence: `README.md`)
- Pipeline Nodes → Resume Builder: builds resume (evidence: `README.md`)
- Pipeline Nodes → ATS Optimization: optimizes resume (evidence: `README.md`)
- Pipeline Nodes → Resume Compliance: checks resume (evidence: `README.md`)
- Pipeline Nodes → Cover Letter Generator: generates letter (evidence: `README.md`)
- Pipeline Nodes → Cover Letter Compliance: checks letter (evidence: `README.md`)
- Pipeline Nodes → Recruiter Email: generates email (evidence: `README.md`)
- Pipeline Nodes → Application Tracker: records application (evidence: `README.md`)
- Pipeline Nodes → PDF Export: exports PDF
- Parent Graph → Checkpoint Runner: checkpoints runs (evidence: `pipeline/__init__.py`)
- Pipeline Nodes → Shared State Models: uses shared models (evidence: `pipeline/nodes.py`)
- MCP Tool Server → Candidate Loader: registers tools (evidence: `mcp_server/server.py`)
- MCP Tool Server → GitHub Project Loader: registers tools
- MCP Tool Server → Resource Loader: registers tools (evidence: `mcp_server/server.py`)
- MCP Tool Server → Thread Manager: registers tools (evidence: `mcp_server/server.py`)
- MCP Tool Server → RAG Vector Store: registers tools (evidence: `mcp_server/server.py`)
- MCP Tool Server → Rule Engine: registers tools (evidence: `mcp_server/server.py`)
- MCP Tool Server → ATS Scoring: registers tools (evidence: `mcp_server/server.py`)
- Experience Selection → Candidate Loader: loads candidate data (evidence: `subgraphs/experience_selector/nodes.py`)
- Project Ranking → GitHub Project Loader: loads projects (evidence: `subgraphs/github_ranker/nodes.py`)
- Experience Rewriting → Resource Loader: loads resources (evidence: `subgraphs/experience_rewriter/nodes.py`)
- ATS Optimization → Shared State Models: uses shared models (evidence: `subgraphs/ats_optimizer/nodes.py`)
- Cover Letter Compliance → Shared State Models: uses shared models (evidence: `subgraphs/cover_letter_compliance/state.py`)
