# break-into-data/ai-engineer-toolkit architecture

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

- Interactive diagram: https://gitdiagram.com/break-into-data/ai-engineer-toolkit
- Repository: https://github.com/break-into-data/ai-engineer-toolkit

## Overview

This repository is an AI engineering toolkit whose README presents learning resources and example projects; the sampled runtime architecture is represented by two sandbox applications. The hiring agent accepts a job description and resumes, parses and scores candidates, ranks them, and prepares email templates. It has both a Streamlit/Python flow and a Next.js screening flow, plus a FastAPI implementation with additional endpoints. The separate cover-letter app turns a resume and job-posting URL into a downloadable letter. Links are limited to relationships shown in excerpts or documented configuration; unsampled internals are not inferred.

Main entry points: [`sandbox/hiring-agent/components/resume-screening-app.tsx`](https://github.com/break-into-data/ai-engineer-toolkit/blob/main/sandbox/hiring-agent/components/resume-screening-app.tsx) (Screening UI), [`sandbox/hiring-agent/src/app/api/screen-resumes/route.ts`](https://github.com/break-into-data/ai-engineer-toolkit/blob/main/sandbox/hiring-agent/src/app/api/screen-resumes/route.ts) (Screening Route), [`sandbox/hiring-agent/app.py`](https://github.com/break-into-data/ai-engineer-toolkit/blob/main/sandbox/hiring-agent/app.py) (Streamlit Screening), [`sandbox/hiring-agent/backend/main.py`](https://github.com/break-into-data/ai-engineer-toolkit/blob/main/sandbox/hiring-agent/backend/main.py) (FastAPI Hiring API)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_hiring_ui["Hiring Interfaces"]
  node_streamlit_hiring["Streamlit Screening<br/>[app.py]"]
  node_resume_ui["Screening UI"]
  node_upload_ui["Resume Upload<br/>[file-uploader.tsx]"]
  node_progress_ui["Progress Display"]
  node_results_ui["Candidate Results<br/>[results-table.tsx]"]
  node_email_ui["Email Modal<br/>[email-modal.tsx]"]
end

subgraph group_hiring_pipeline["Hiring Processing"]
  node_screen_api["Screening Route<br/>[route.ts]"]
  node_job_processor["Job Parsing"]
  node_resume_processor["Resume Parsing<br/>[resumeProcessor.ts]"]
  node_resume_scorer["Resume Scoring<br/>[resumeScorer.ts]"]
  node_candidate_ranker["Candidate Ranking<br/>[candidateRanker.ts]"]
  node_python_backend["FastAPI Hiring API<br/>[main.py]"]
  node_python_workflow["Python Hiring Logic<br/>[utils.py]"]
end

subgraph group_letter_app["Cover Letter"]
  node_cover_ui["Cover Letter Form<br/>[app.py]"]
  node_cover_processor["Letter Processing<br/>[core.py]"]
end

subgraph group_external_services["External Services"]
  node_openai{{"OpenAI API"}}
  node_firecrawl{{"Firecrawl"}}
end

node_recruiter(("Recruiter"))
node_applicant(("Applicant"))

node_recruiter -->|"submits inputs"| node_streamlit_hiring
node_streamlit_hiring -->|"runs screening steps"| node_python_workflow
node_streamlit_hiring -.->|"uses API"| node_python_backend
node_recruiter -.->|"uses screening app"| node_resume_ui
node_resume_ui -.->|"renders upload"| node_upload_ui
node_resume_ui -.->|"renders progress"| node_progress_ui
node_resume_ui -.->|"renders results"| node_results_ui
node_resume_ui -.->|"renders email"| node_email_ui
node_resume_ui -.->|"submits screening"| node_screen_api
node_screen_api -->|"processes job"| node_job_processor
node_screen_api -->|"processes resumes"| node_resume_processor
node_screen_api -->|"scores resumes"| node_resume_scorer
node_screen_api -->|"ranks candidates"| node_candidate_ranker
node_python_workflow -->|"scrapes job URL"| node_firecrawl
node_python_workflow -->|"requests LLM output"| node_openai
node_python_backend -->|"scrapes job URL"| node_firecrawl
node_python_backend -.->|"requests LLM output"| node_openai
node_applicant -->|"provides resume and URL"| node_cover_ui
node_cover_ui -->|"processes request"| node_cover_processor
node_cover_processor -->|"extracts and drafts"| node_openai
node_cover_processor -->|"scrapes posting"| node_firecrawl

click node_streamlit_hiring "https://github.com/break-into-data/ai-engineer-toolkit/blob/main/sandbox/hiring-agent/app.py"
click node_resume_ui "https://github.com/break-into-data/ai-engineer-toolkit/blob/main/sandbox/hiring-agent/components/resume-screening-app.tsx"
click node_upload_ui "https://github.com/break-into-data/ai-engineer-toolkit/blob/main/sandbox/hiring-agent/components/file-uploader.tsx"
click node_progress_ui "https://github.com/break-into-data/ai-engineer-toolkit/blob/main/sandbox/hiring-agent/components/progress-tracker.tsx"
click node_results_ui "https://github.com/break-into-data/ai-engineer-toolkit/blob/main/sandbox/hiring-agent/components/results-table.tsx"
click node_email_ui "https://github.com/break-into-data/ai-engineer-toolkit/blob/main/sandbox/hiring-agent/components/email-modal.tsx"
click node_screen_api "https://github.com/break-into-data/ai-engineer-toolkit/blob/main/sandbox/hiring-agent/src/app/api/screen-resumes/route.ts"
click node_job_processor "https://github.com/break-into-data/ai-engineer-toolkit/blob/main/sandbox/hiring-agent/src/lib/jobDescriptionProcessor.ts"
click node_resume_processor "https://github.com/break-into-data/ai-engineer-toolkit/blob/main/sandbox/hiring-agent/src/lib/resumeProcessor.ts"
click node_resume_scorer "https://github.com/break-into-data/ai-engineer-toolkit/blob/main/sandbox/hiring-agent/src/lib/resumeScorer.ts"
click node_candidate_ranker "https://github.com/break-into-data/ai-engineer-toolkit/blob/main/sandbox/hiring-agent/src/lib/candidateRanker.ts"
click node_python_backend "https://github.com/break-into-data/ai-engineer-toolkit/blob/main/sandbox/hiring-agent/backend/main.py"
click node_python_workflow "https://github.com/break-into-data/ai-engineer-toolkit/blob/main/sandbox/hiring-agent/utils/utils.py"
click node_cover_ui "https://github.com/break-into-data/ai-engineer-toolkit/blob/main/sandbox/cover-letter-generator/app.py"
click node_cover_processor "https://github.com/break-into-data/ai-engineer-toolkit/blob/main/sandbox/cover-letter-generator/src/core.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_streamlit_hiring,node_resume_ui,node_upload_ui,node_progress_ui,node_results_ui,node_email_ui toneBlue
class node_screen_api,node_job_processor,node_resume_processor,node_resume_scorer,node_candidate_ranker,node_python_backend,node_python_workflow toneAmber
class node_cover_ui,node_cover_processor toneMint
class node_openai,node_firecrawl toneRose
class node_recruiter,node_applicant toneIndigo
```

## Components

### Hiring Interfaces

- [Streamlit Screening](https://github.com/break-into-data/ai-engineer-toolkit/blob/main/sandbox/hiring-agent/app.py): `sandbox/hiring-agent/app.py`
- [Screening UI](https://github.com/break-into-data/ai-engineer-toolkit/blob/main/sandbox/hiring-agent/components/resume-screening-app.tsx): `sandbox/hiring-agent/components/resume-screening-app.tsx`
- [Resume Upload](https://github.com/break-into-data/ai-engineer-toolkit/blob/main/sandbox/hiring-agent/components/file-uploader.tsx): `sandbox/hiring-agent/components/file-uploader.tsx`
- [Progress Display](https://github.com/break-into-data/ai-engineer-toolkit/blob/main/sandbox/hiring-agent/components/progress-tracker.tsx): `sandbox/hiring-agent/components/progress-tracker.tsx`
- [Candidate Results](https://github.com/break-into-data/ai-engineer-toolkit/blob/main/sandbox/hiring-agent/components/results-table.tsx): `sandbox/hiring-agent/components/results-table.tsx`
- [Email Modal](https://github.com/break-into-data/ai-engineer-toolkit/blob/main/sandbox/hiring-agent/components/email-modal.tsx): `sandbox/hiring-agent/components/email-modal.tsx`

### Hiring Processing

- [Screening Route](https://github.com/break-into-data/ai-engineer-toolkit/blob/main/sandbox/hiring-agent/src/app/api/screen-resumes/route.ts): `sandbox/hiring-agent/src/app/api/screen-resumes/route.ts`
- [Job Parsing](https://github.com/break-into-data/ai-engineer-toolkit/blob/main/sandbox/hiring-agent/src/lib/jobDescriptionProcessor.ts): `sandbox/hiring-agent/src/lib/jobDescriptionProcessor.ts`
- [Resume Parsing](https://github.com/break-into-data/ai-engineer-toolkit/blob/main/sandbox/hiring-agent/src/lib/resumeProcessor.ts): `sandbox/hiring-agent/src/lib/resumeProcessor.ts`
- [Resume Scoring](https://github.com/break-into-data/ai-engineer-toolkit/blob/main/sandbox/hiring-agent/src/lib/resumeScorer.ts): `sandbox/hiring-agent/src/lib/resumeScorer.ts`
- [Candidate Ranking](https://github.com/break-into-data/ai-engineer-toolkit/blob/main/sandbox/hiring-agent/src/lib/candidateRanker.ts): `sandbox/hiring-agent/src/lib/candidateRanker.ts`
- [FastAPI Hiring API](https://github.com/break-into-data/ai-engineer-toolkit/blob/main/sandbox/hiring-agent/backend/main.py): `sandbox/hiring-agent/backend/main.py`
- [Python Hiring Logic](https://github.com/break-into-data/ai-engineer-toolkit/blob/main/sandbox/hiring-agent/utils/utils.py): `sandbox/hiring-agent/utils/utils.py`

### Cover Letter

- [Cover Letter Form](https://github.com/break-into-data/ai-engineer-toolkit/blob/main/sandbox/cover-letter-generator/app.py): `sandbox/cover-letter-generator/app.py`
- [Letter Processing](https://github.com/break-into-data/ai-engineer-toolkit/blob/main/sandbox/cover-letter-generator/src/core.py): `sandbox/cover-letter-generator/src/core.py`

### External Services

- **OpenAI API**
- **Firecrawl**

### Other components

- **Recruiter**
- **Applicant**

## Connections

- Recruiter → Streamlit Screening: submits inputs (evidence: `sandbox/hiring-agent/app.py`)
- Streamlit Screening → Python Hiring Logic: runs screening steps (evidence: `sandbox/hiring-agent/app.py`)
- Streamlit Screening → FastAPI Hiring API: uses API
- Recruiter → Screening UI: uses screening app
- Screening UI → Resume Upload: renders upload
- Screening UI → Progress Display: renders progress
- Screening UI → Candidate Results: renders results
- Screening UI → Email Modal: renders email
- Screening UI → Screening Route: submits screening
- Screening Route → Job Parsing: processes job (evidence: `sandbox/hiring-agent/src/app/api/screen-resumes/route.ts`)
- Screening Route → Resume Parsing: processes resumes (evidence: `sandbox/hiring-agent/src/app/api/screen-resumes/route.ts`)
- Screening Route → Resume Scoring: scores resumes (evidence: `sandbox/hiring-agent/src/app/api/screen-resumes/route.ts`)
- Screening Route → Candidate Ranking: ranks candidates (evidence: `sandbox/hiring-agent/src/app/api/screen-resumes/route.ts`)
- Python Hiring Logic → Firecrawl: scrapes job URL (evidence: `sandbox/hiring-agent/utils/utils.py`)
- Python Hiring Logic → OpenAI API: requests LLM output (evidence: `sandbox/hiring-agent/utils/utils.py`)
- FastAPI Hiring API → Firecrawl: scrapes job URL (evidence: `sandbox/hiring-agent/backend/main.py`)
- FastAPI Hiring API → OpenAI API: requests LLM output
- Applicant → Cover Letter Form: provides resume and URL (evidence: `sandbox/cover-letter-generator/app.py`)
- Cover Letter Form → Letter Processing: processes request (evidence: `sandbox/cover-letter-generator/app.py`)
- Letter Processing → OpenAI API: extracts and drafts (evidence: `sandbox/cover-letter-generator/src/core.py`)
- Letter Processing → Firecrawl: scrapes posting (evidence: `sandbox/cover-letter-generator/src/core.py`)
