# aniru18/job-search-crew architecture

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

- Interactive diagram: https://gitdiagram.com/aniru18/job-search-crew
- Repository: https://github.com/aniru18/job-search-crew

## Overview

Dispatch is a resume-driven job-search service: a candidate uploads a PDF and provides an email, then the service analyzes the resume, gathers and deduplicates postings, removes recently sent jobs, ranks suitable roles, summarizes the shortlist, and emails it. The API exposes asynchronous run and status endpoints, while the frontend presents the upload-and-results flow. The graph preserves the documented caching and external-source capabilities. Some modules, including the email sender and frontend implementation, were not sampled; their links are included only where the README or an excerpt establishes them.

Main entry points: [`pipeline.py`](https://github.com/aniru18/job-search-crew/blob/main/pipeline.py) (Search Orchestrator), [`job_aggregator.py`](https://github.com/aniru18/job-search-crew/blob/main/job_aggregator.py) (Job Aggregator), [`main.py`](https://github.com/aniru18/job-search-crew/blob/main/main.py) (FastAPI Service), [`resume_parser.py`](https://github.com/aniru18/job-search-crew/blob/main/resume_parser.py) (Resume Analyzer)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interface["User Interface"]
  node_frontend["Upload And Results<br/>[index.html]"]
  node_api["FastAPI Service<br/>[main.py]"]
end

subgraph group_workflow["Search Workflow"]
  node_pipeline["Search Orchestrator<br/>[pipeline.py]"]
  node_resume["Resume Analyzer<br/>[resume_parser.py]"]
  node_ranker["Experience-Aware Ranker<br/>[matcher.py]"]
  node_summarizer["Job Summaries<br/>[summarizer.py]"]
end

subgraph group_sources["Job Discovery"]
  node_aggregator["Job Aggregator<br/>[job_aggregator.py]"]
  node_company_boards["Company Board Registry<br/>[companies.json]"]
  node_ats["ATS Fetcher<br/>[ats_fetcher.py]"]
  node_adzuna_fetcher["Adzuna Fetcher<br/>[adzuna_fetcher.py]"]
end

subgraph group_support["Persistence And Integrations"]
  node_resume_cache[("Resume Profile Cache<br/>[resume_cache.py]")]
  node_sent_cache[("Sent Job History<br/>[sent_jobs_cache.py]")]
  node_sent_file[("History File")]
  node_emailer["Digest Email Sender<br/>[emailer.py]"]
  node_config["Runtime Configuration<br/>[config.py]"]
end

node_candidate(("Candidate"))
node_ats_service{{"Greenhouse And Lever"}}
node_adzuna_service{{"Adzuna Search"}}
node_gmail{{"Gmail SMTP"}}
node_llm{{"Groq LLM"}}

node_candidate -->|"uploads resume"| node_frontend
node_frontend -->|"submits search"| node_api
node_api -->|"starts background run"| node_pipeline
node_api -->|"serves page"| node_frontend
node_pipeline -->|"gets profile"| node_resume
node_resume -->|"checks and saves"| node_resume_cache
node_pipeline -->|"collects postings"| node_aggregator
node_aggregator -->|"loads companies"| node_company_boards
node_aggregator -->|"fetches board jobs"| node_ats
node_aggregator -->|"searches keywords"| node_adzuna_fetcher
node_ats -->|"requests postings"| node_ats_service
node_adzuna_fetcher -->|"requests search"| node_adzuna_service
node_pipeline -->|"filters repeats"| node_sent_cache
node_pipeline -->|"ranks new jobs"| node_ranker
node_pipeline -->|"summarizes shortlist"| node_summarizer
node_summarizer -->|"generates summaries"| node_llm
node_resume -->|"analyzes resume"| node_llm
node_pipeline -->|"sends digest"| node_emailer
node_pipeline -->|"marks emailed jobs"| node_sent_cache
node_sent_cache -->|"reads and writes"| node_sent_file
node_emailer -.->|"sends via SMTP"| node_gmail
node_config -->|"provides API settings"| node_adzuna_fetcher

click node_frontend "https://github.com/aniru18/job-search-crew/blob/main/static/index.html"
click node_api "https://github.com/aniru18/job-search-crew/blob/main/main.py"
click node_pipeline "https://github.com/aniru18/job-search-crew/blob/main/pipeline.py"
click node_resume "https://github.com/aniru18/job-search-crew/blob/main/resume_parser.py"
click node_ranker "https://github.com/aniru18/job-search-crew/blob/main/matcher.py"
click node_summarizer "https://github.com/aniru18/job-search-crew/blob/main/summarizer.py"
click node_aggregator "https://github.com/aniru18/job-search-crew/blob/main/job_aggregator.py"
click node_company_boards "https://github.com/aniru18/job-search-crew/blob/main/companies.json"
click node_ats "https://github.com/aniru18/job-search-crew/blob/main/tools/ats_fetcher.py"
click node_adzuna_fetcher "https://github.com/aniru18/job-search-crew/blob/main/tools/adzuna_fetcher.py"
click node_resume_cache "https://github.com/aniru18/job-search-crew/blob/main/resume_cache.py"
click node_sent_cache "https://github.com/aniru18/job-search-crew/blob/main/sent_jobs_cache.py"
click node_sent_file "https://github.com/aniru18/job-search-crew/blob/main/sent_jobs_cache.json"
click node_emailer "https://github.com/aniru18/job-search-crew/blob/main/tools/emailer.py"
click node_config "https://github.com/aniru18/job-search-crew/blob/main/config.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_frontend,node_api toneBlue
class node_pipeline,node_resume,node_ranker,node_summarizer toneAmber
class node_aggregator,node_company_boards,node_ats,node_adzuna_fetcher toneMint
class node_resume_cache,node_sent_cache,node_sent_file,node_emailer,node_config toneRose
class node_candidate,node_ats_service,node_adzuna_service,node_gmail,node_llm toneIndigo
```

## Components

### User Interface

- [Upload And Results](https://github.com/aniru18/job-search-crew/blob/main/static/index.html): `static/index.html`
- [FastAPI Service](https://github.com/aniru18/job-search-crew/blob/main/main.py): `main.py`

### Search Workflow

- [Search Orchestrator](https://github.com/aniru18/job-search-crew/blob/main/pipeline.py): `pipeline.py`
- [Resume Analyzer](https://github.com/aniru18/job-search-crew/blob/main/resume_parser.py): `resume_parser.py`
- [Experience-Aware Ranker](https://github.com/aniru18/job-search-crew/blob/main/matcher.py): `matcher.py`
- [Job Summaries](https://github.com/aniru18/job-search-crew/blob/main/summarizer.py): `summarizer.py`

### Job Discovery

- [Job Aggregator](https://github.com/aniru18/job-search-crew/blob/main/job_aggregator.py): `job_aggregator.py`
- [Company Board Registry](https://github.com/aniru18/job-search-crew/blob/main/companies.json): `companies.json`
- [ATS Fetcher](https://github.com/aniru18/job-search-crew/blob/main/tools/ats_fetcher.py): `tools/ats_fetcher.py`
- [Adzuna Fetcher](https://github.com/aniru18/job-search-crew/blob/main/tools/adzuna_fetcher.py): `tools/adzuna_fetcher.py`

### Persistence And Integrations

- [Resume Profile Cache](https://github.com/aniru18/job-search-crew/blob/main/resume_cache.py): `resume_cache.py`
- [Sent Job History](https://github.com/aniru18/job-search-crew/blob/main/sent_jobs_cache.py): `sent_jobs_cache.py`
- [History File](https://github.com/aniru18/job-search-crew/blob/main/sent_jobs_cache.json): `sent_jobs_cache.json`
- [Digest Email Sender](https://github.com/aniru18/job-search-crew/blob/main/tools/emailer.py): `tools/emailer.py`
- [Runtime Configuration](https://github.com/aniru18/job-search-crew/blob/main/config.py): `config.py`

### Other components

- **Candidate**
- **Greenhouse And Lever**
- **Adzuna Search**
- **Gmail SMTP**
- **Groq LLM**

## Connections

- Candidate → Upload And Results: uploads resume (evidence: `README.md`)
- Upload And Results → FastAPI Service: submits search (evidence: `README.md`)
- FastAPI Service → Search Orchestrator: starts background run (evidence: `main.py`)
- FastAPI Service → Upload And Results: serves page (evidence: `main.py`)
- Search Orchestrator → Resume Analyzer: gets profile (evidence: `pipeline.py`)
- Resume Analyzer → Resume Profile Cache: checks and saves (evidence: `resume_parser.py`)
- Search Orchestrator → Job Aggregator: collects postings (evidence: `pipeline.py`)
- Job Aggregator → Company Board Registry: loads companies (evidence: `job_aggregator.py`)
- Job Aggregator → ATS Fetcher: fetches board jobs (evidence: `job_aggregator.py`)
- Job Aggregator → Adzuna Fetcher: searches keywords (evidence: `job_aggregator.py`)
- ATS Fetcher → Greenhouse And Lever: requests postings (evidence: `tools/ats_fetcher.py`)
- Adzuna Fetcher → Adzuna Search: requests search (evidence: `tools/adzuna_fetcher.py`)
- Search Orchestrator → Sent Job History: filters repeats (evidence: `pipeline.py`)
- Search Orchestrator → Experience-Aware Ranker: ranks new jobs (evidence: `pipeline.py`)
- Search Orchestrator → Job Summaries: summarizes shortlist (evidence: `pipeline.py`)
- Job Summaries → Groq LLM: generates summaries (evidence: `summarizer.py`)
- Resume Analyzer → Groq LLM: analyzes resume (evidence: `resume_parser.py`)
- Search Orchestrator → Digest Email Sender: sends digest (evidence: `pipeline.py`)
- Search Orchestrator → Sent Job History: marks emailed jobs (evidence: `pipeline.py`)
- Sent Job History → History File: reads and writes (evidence: `sent_jobs_cache.py`)
- Digest Email Sender → Gmail SMTP: sends via SMTP (evidence: `README.md`)
- Runtime Configuration → Adzuna Fetcher: provides API settings (evidence: `tools/adzuna_fetcher.py`)
