# strawhat8/hireflow architecture

> Architecture diagram of the GitHub repository strawhat8/hireflow, 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/strawhat8/hireflow
- Repository: https://github.com/strawhat8/hireflow

## Overview

HireFlow is a recruiting and job-application app with candidate and recruiter workflows, plus employee workspace and team-progress features. Users enter through the React app, sign in, browse or post jobs, and manage applications; recruiters review candidates and update application status. A Hono worker exposes application and employee-task APIs backed by Cloudflare D1, while a separate Express service parses uploaded documents. The README does not describe product behavior, and several page and worker excerpts are incomplete, so unverified API and parser connections are omitted.

Main entry points: [`src/react-app/App.tsx`](https://github.com/strawhat8/hireflow/blob/main/src/react-app/App.tsx) (Routes and shell), [`src/data/jobs.ts`](https://github.com/strawhat8/hireflow/blob/main/src/data/jobs.ts) (Job data), [`src/react-app/pages/RecruiterDashboard.tsx`](https://github.com/strawhat8/hireflow/blob/main/src/react-app/pages/RecruiterDashboard.tsx) (Recruiter dashboard), [`src/react-app/pages/JobApplications.tsx`](https://github.com/strawhat8/hireflow/blob/main/src/react-app/pages/JobApplications.tsx) (Application review)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web application"]
  node_entry["React entry<br/>[main.tsx]"]
  node_router["Routes and shell<br/>[App.tsx]"]
  node_auth["Authentication state<br/>[AuthContext.tsx]"]
end

subgraph group_recruiting["Hiring workflows"]
  node_home["Job discovery<br/>[Home.tsx]"]
  node_jobdetail["Job details<br/>[JobDetail.tsx]"]
  node_candidate["Candidate dashboard<br/>[UserDashboard.tsx]"]
  node_profile["Candidate profile<br/>[Profile.tsx]"]
  node_recruiter["Recruiter dashboard"]
  node_newjob["Job posting<br/>[NewJob.tsx]"]
  node_applications["Application review"]
  node_appchat["Application chat"]
  node_chatbot["Job assistant<br/>[ChatbotWidget.tsx]"]
  node_jobsdata["Job data<br/>[jobs.ts]"]
  node_appdata["Application data<br/>[applications.ts]"]
end

subgraph group_employee["Employee tracking"]
  node_workspace["Employee workspace"]
  node_team["Team progress<br/>[TeamProgress.tsx]"]
  node_tracking["Employee tracking"]
end

subgraph group_services["Backend services"]
  node_worker["API worker<br/>[index.ts]"]
  node_database[("Cloudflare D1")]
  node_parser["Document parser<br/>[index.js]"]
end

node_visitor(("User"))

node_visitor -->|"opens"| node_entry
node_entry -->|"renders"| node_router
node_router -->|"provides"| node_auth
node_router -->|"routes to"| node_home
node_router -->|"routes to"| node_jobdetail
node_router -->|"routes to"| node_candidate
node_router -->|"routes to"| node_profile
node_router -->|"routes to"| node_recruiter
node_router -->|"routes to"| node_newjob
node_router -->|"routes to"| node_applications
node_router -->|"routes to"| node_workspace
node_router -->|"routes to"| node_team
node_router -->|"routes to"| node_appchat
node_router -->|"renders"| node_chatbot
node_home -.->|"reads"| node_jobsdata
node_jobdetail -.->|"reads"| node_jobsdata
node_candidate -.->|"reads"| node_appdata
node_recruiter -->|"uses"| node_jobsdata
node_recruiter -->|"uses"| node_appdata
node_applications -->|"uses"| node_jobsdata
node_applications -->|"uses"| node_appdata
node_applications -->|"uses"| node_tracking
node_recruiter -->|"uses"| node_tracking
node_tracking -->|"imports"| node_appdata
node_tracking -->|"imports"| node_jobsdata
node_chatbot -->|"searches"| node_jobsdata
node_chatbot -->|"reads role"| node_auth
node_worker -->|"queries"| node_database

click node_entry "https://github.com/strawhat8/hireflow/blob/main/src/react-app/main.tsx"
click node_router "https://github.com/strawhat8/hireflow/blob/main/src/react-app/App.tsx"
click node_auth "https://github.com/strawhat8/hireflow/blob/main/src/react-app/context/AuthContext.tsx"
click node_home "https://github.com/strawhat8/hireflow/blob/main/src/react-app/pages/Home.tsx"
click node_jobdetail "https://github.com/strawhat8/hireflow/blob/main/src/react-app/pages/JobDetail.tsx"
click node_candidate "https://github.com/strawhat8/hireflow/blob/main/src/react-app/pages/UserDashboard.tsx"
click node_profile "https://github.com/strawhat8/hireflow/blob/main/src/react-app/pages/Profile.tsx"
click node_recruiter "https://github.com/strawhat8/hireflow/blob/main/src/react-app/pages/RecruiterDashboard.tsx"
click node_newjob "https://github.com/strawhat8/hireflow/blob/main/src/react-app/pages/NewJob.tsx"
click node_applications "https://github.com/strawhat8/hireflow/blob/main/src/react-app/pages/JobApplications.tsx"
click node_appchat "https://github.com/strawhat8/hireflow/blob/main/src/react-app/pages/ApplicationChat.tsx"
click node_chatbot "https://github.com/strawhat8/hireflow/blob/main/src/react-app/components/ChatbotWidget.tsx"
click node_jobsdata "https://github.com/strawhat8/hireflow/blob/main/src/data/jobs.ts"
click node_appdata "https://github.com/strawhat8/hireflow/blob/main/src/data/applications.ts"
click node_workspace "https://github.com/strawhat8/hireflow/blob/main/src/react-app/pages/EmployeeWorkspace.tsx"
click node_team "https://github.com/strawhat8/hireflow/blob/main/src/react-app/pages/TeamProgress.tsx"
click node_tracking "https://github.com/strawhat8/hireflow/blob/main/src/react-app/lib/employeeTracking.ts"
click node_worker "https://github.com/strawhat8/hireflow/blob/main/src/worker/index.ts"
click node_parser "https://github.com/strawhat8/hireflow/blob/main/parser/index.js"

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_entry,node_router,node_auth,node_visitor toneBlue
class node_home,node_jobdetail,node_candidate,node_profile,node_recruiter,node_newjob,node_applications,node_appchat,node_chatbot,node_jobsdata,node_appdata toneAmber
class node_workspace,node_team,node_tracking toneMint
class node_worker,node_database,node_parser toneRose
```

## Components

### Web application

- [React entry](https://github.com/strawhat8/hireflow/blob/main/src/react-app/main.tsx): `src/react-app/main.tsx`
- [Routes and shell](https://github.com/strawhat8/hireflow/blob/main/src/react-app/App.tsx): `src/react-app/App.tsx`
- [Authentication state](https://github.com/strawhat8/hireflow/blob/main/src/react-app/context/AuthContext.tsx): `src/react-app/context/AuthContext.tsx`

### Hiring workflows

- [Job discovery](https://github.com/strawhat8/hireflow/blob/main/src/react-app/pages/Home.tsx): `src/react-app/pages/Home.tsx`
- [Job details](https://github.com/strawhat8/hireflow/blob/main/src/react-app/pages/JobDetail.tsx): `src/react-app/pages/JobDetail.tsx`
- [Candidate dashboard](https://github.com/strawhat8/hireflow/blob/main/src/react-app/pages/UserDashboard.tsx): `src/react-app/pages/UserDashboard.tsx`
- [Candidate profile](https://github.com/strawhat8/hireflow/blob/main/src/react-app/pages/Profile.tsx): `src/react-app/pages/Profile.tsx`
- [Recruiter dashboard](https://github.com/strawhat8/hireflow/blob/main/src/react-app/pages/RecruiterDashboard.tsx): `src/react-app/pages/RecruiterDashboard.tsx`
- [Job posting](https://github.com/strawhat8/hireflow/blob/main/src/react-app/pages/NewJob.tsx): `src/react-app/pages/NewJob.tsx`
- [Application review](https://github.com/strawhat8/hireflow/blob/main/src/react-app/pages/JobApplications.tsx): `src/react-app/pages/JobApplications.tsx`
- [Application chat](https://github.com/strawhat8/hireflow/blob/main/src/react-app/pages/ApplicationChat.tsx): `src/react-app/pages/ApplicationChat.tsx`
- [Job assistant](https://github.com/strawhat8/hireflow/blob/main/src/react-app/components/ChatbotWidget.tsx): `src/react-app/components/ChatbotWidget.tsx`
- [Job data](https://github.com/strawhat8/hireflow/blob/main/src/data/jobs.ts): `src/data/jobs.ts`
- [Application data](https://github.com/strawhat8/hireflow/blob/main/src/data/applications.ts): `src/data/applications.ts`

### Employee tracking

- [Employee workspace](https://github.com/strawhat8/hireflow/blob/main/src/react-app/pages/EmployeeWorkspace.tsx): `src/react-app/pages/EmployeeWorkspace.tsx`
- [Team progress](https://github.com/strawhat8/hireflow/blob/main/src/react-app/pages/TeamProgress.tsx): `src/react-app/pages/TeamProgress.tsx`
- [Employee tracking](https://github.com/strawhat8/hireflow/blob/main/src/react-app/lib/employeeTracking.ts): `src/react-app/lib/employeeTracking.ts`

### Backend services

- [API worker](https://github.com/strawhat8/hireflow/blob/main/src/worker/index.ts): `src/worker/index.ts`
- **Cloudflare D1**
- [Document parser](https://github.com/strawhat8/hireflow/blob/main/parser/index.js): `parser/index.js`

### Other components

- **User**

## Connections

- User → React entry: opens (evidence: `src/react-app/main.tsx`)
- React entry → Routes and shell: renders (evidence: `src/react-app/main.tsx`)
- Routes and shell → Authentication state: provides (evidence: `src/react-app/App.tsx`)
- Routes and shell → Job discovery: routes to (evidence: `src/react-app/App.tsx`)
- Routes and shell → Job details: routes to (evidence: `src/react-app/App.tsx`)
- Routes and shell → Candidate dashboard: routes to (evidence: `src/react-app/App.tsx`)
- Routes and shell → Candidate profile: routes to (evidence: `src/react-app/App.tsx`)
- Routes and shell → Recruiter dashboard: routes to (evidence: `src/react-app/App.tsx`)
- Routes and shell → Job posting: routes to (evidence: `src/react-app/App.tsx`)
- Routes and shell → Application review: routes to (evidence: `src/react-app/App.tsx`)
- Routes and shell → Employee workspace: routes to (evidence: `src/react-app/App.tsx`)
- Routes and shell → Team progress: routes to (evidence: `src/react-app/App.tsx`)
- Routes and shell → Application chat: routes to (evidence: `src/react-app/App.tsx`)
- Routes and shell → Job assistant: renders (evidence: `src/react-app/App.tsx`)
- Job discovery → Job data: reads
- Job details → Job data: reads
- Candidate dashboard → Application data: reads
- Recruiter dashboard → Job data: uses (evidence: `src/react-app/pages/RecruiterDashboard.tsx`)
- Recruiter dashboard → Application data: uses (evidence: `src/react-app/pages/RecruiterDashboard.tsx`)
- Application review → Job data: uses (evidence: `src/react-app/pages/JobApplications.tsx`)
- Application review → Application data: uses (evidence: `src/react-app/pages/JobApplications.tsx`)
- Application review → Employee tracking: uses (evidence: `src/react-app/pages/JobApplications.tsx`)
- Recruiter dashboard → Employee tracking: uses (evidence: `src/react-app/pages/RecruiterDashboard.tsx`)
- Employee tracking → Application data: imports (evidence: `src/react-app/lib/employeeTracking.ts`)
- Employee tracking → Job data: imports (evidence: `src/react-app/lib/employeeTracking.ts`)
- Job assistant → Job data: searches (evidence: `src/react-app/components/ChatbotWidget.tsx`)
- Job assistant → Authentication state: reads role (evidence: `src/react-app/components/ChatbotWidget.tsx`)
- API worker → Cloudflare D1: queries (evidence: `src/worker/index.ts`)
