# varunsai1930/resuapply architecture

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

- Interactive diagram: https://gitdiagram.com/varunsai1930/resuapply
- Repository: https://github.com/varunsai1930/resuapply

## Overview

ResuApply is a local job-application copilot. Its primary workflow starts with a user-maintained profile and job posting, then supports requirement review, evidence-backed resume tailoring, answer drafting, package approval, manual submission, and outcome tracking. The graph follows those product stages and includes the local persistence and AI-safety layers. Several links are supported by README workflow statements or SOURCE INDEX references; unsampled implementation details are not inferred.

Main entry points: [`app/routes/jobs.py`](https://github.com/varunsai1930/resuapply/blob/main/app/routes/jobs.py) (Job workspace), [`app/routes/profile.py`](https://github.com/varunsai1930/resuapply/blob/main/app/routes/profile.py) (Profile editing), [`app/main.py`](https://github.com/varunsai1930/resuapply/blob/main/app/main.py) (Web application), [`app/ai/operations.py`](https://github.com/varunsai1930/resuapply/blob/main/app/ai/operations.py) (AI operations)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workflow["Application workflow"]
  node_job_workspace["Job workspace<br/>[jobs.py]"]
  node_greenhouse["Greenhouse import<br/>[greenhouse.py]"]
  node_requirements["Job requirements<br/>[requirements.py]"]
  node_checklist["Evidence checklist<br/>[checklist.py]"]
  node_resume["Resume proposals<br/>[resume.py]"]
  node_questions["Application questions<br/>[questions.py]"]
  node_answers["Answers and answer bank<br/>[answers.py]"]
  node_package["Package approval<br/>[package.py]"]
  node_tracking["Application tracking<br/>[tracking.py]"]
end

subgraph group_profile["Candidate profile"]
  node_profile_edit["Profile editing<br/>[profile.py]"]
  node_profile_rules["Profile validation<br/>[profile.py]"]
  node_profile_import["Profile import<br/>[resume_import.py]"]
  node_shared_rules["Text and skill rules<br/>[text.py]"]
end

subgraph group_ai["AI and sharing"]
  node_sharing["Sharing approval<br/>[outbound.py]"]
  node_ai_operations["AI operations<br/>[operations.py]"]
  node_ai_client["OpenRouter client<br/>[client.py]"]
  node_resume_ai["AI resume tailoring<br/>[resume.py]"]
end

subgraph group_presentation["Web experience"]
  node_web["Web application<br/>[main.py]"]
  node_pages["Page rendering<br/>[templating.py]"]
end

subgraph group_storage["Local persistence"]
  node_db_models["Domain records<br/>[models.py]"]
  node_database[("SQLite database<br/>[db.py]")]
end

node_user(("Applicant"))

node_user -->|"uses"| node_web
node_web -->|"routes requests"| node_job_workspace
node_web -->|"routes requests"| node_profile_edit
node_web -->|"renders pages"| node_pages
node_user -->|"maintains profile"| node_profile_edit
node_profile_edit -->|"validates profile"| node_profile_rules
node_profile_edit -->|"imports locally"| node_profile_import
node_user -->|"adds job"| node_job_workspace
node_job_workspace -->|"imports posting"| node_greenhouse
node_user -->|"reviews requirements"| node_requirements
node_user -->|"reviews evidence"| node_checklist
node_job_workspace -.->|"handles job review"| node_requirements
node_requirements -->|"informs assessment"| node_checklist
node_user -->|"approves context"| node_sharing
node_sharing -->|"provides reduced context"| node_ai_operations
node_ai_operations -->|"requests completion"| node_ai_client
node_ai_client -.->|"calls model"| node_user
node_user -->|"reviews proposal"| node_resume
node_resume_ai -->|"uses AI operations"| node_ai_operations
node_user -->|"provides questions"| node_questions
node_user -->|"reviews answers"| node_answers
node_questions -->|"supplies questions"| node_answers
node_user -->|"approves package"| node_package
node_user -->|"records outcome"| node_tracking
node_job_workspace -.->|"serves workspace"| node_package
node_profile_rules -->|"uses normalization"| node_shared_rules
node_profile_edit -.->|"saves profile"| node_database
node_job_workspace -.->|"persists job state"| node_database
node_database -->|"stores records"| node_db_models
node_ai_operations -->|"stores AI results"| node_db_models
node_package -->|"freezes submitted state"| node_tracking

click node_web "https://github.com/varunsai1930/resuapply/blob/main/app/main.py"
click node_pages "https://github.com/varunsai1930/resuapply/blob/main/app/templating.py"
click node_profile_edit "https://github.com/varunsai1930/resuapply/blob/main/app/routes/profile.py"
click node_profile_rules "https://github.com/varunsai1930/resuapply/blob/main/app/services/profile.py"
click node_profile_import "https://github.com/varunsai1930/resuapply/blob/main/app/services/resume_import.py"
click node_job_workspace "https://github.com/varunsai1930/resuapply/blob/main/app/routes/jobs.py"
click node_greenhouse "https://github.com/varunsai1930/resuapply/blob/main/app/services/greenhouse.py"
click node_requirements "https://github.com/varunsai1930/resuapply/blob/main/app/services/requirements.py"
click node_checklist "https://github.com/varunsai1930/resuapply/blob/main/app/services/checklist.py"
click node_sharing "https://github.com/varunsai1930/resuapply/blob/main/app/services/outbound.py"
click node_ai_operations "https://github.com/varunsai1930/resuapply/blob/main/app/ai/operations.py"
click node_ai_client "https://github.com/varunsai1930/resuapply/blob/main/app/ai/client.py"
click node_resume "https://github.com/varunsai1930/resuapply/blob/main/app/services/resume.py"
click node_resume_ai "https://github.com/varunsai1930/resuapply/blob/main/app/ai/resume.py"
click node_questions "https://github.com/varunsai1930/resuapply/blob/main/app/services/questions.py"
click node_answers "https://github.com/varunsai1930/resuapply/blob/main/app/services/answers.py"
click node_package "https://github.com/varunsai1930/resuapply/blob/main/app/services/package.py"
click node_tracking "https://github.com/varunsai1930/resuapply/blob/main/app/services/tracking.py"
click node_db_models "https://github.com/varunsai1930/resuapply/blob/main/app/models.py"
click node_database "https://github.com/varunsai1930/resuapply/blob/main/app/db.py"
click node_shared_rules "https://github.com/varunsai1930/resuapply/blob/main/app/services/text.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_job_workspace,node_greenhouse,node_requirements,node_checklist,node_resume,node_questions,node_answers,node_package,node_tracking toneBlue
class node_profile_edit,node_profile_rules,node_profile_import,node_shared_rules toneAmber
class node_sharing,node_ai_operations,node_ai_client,node_resume_ai toneMint
class node_web,node_pages toneRose
class node_db_models,node_database,node_user toneIndigo
```

## Components

### Application workflow

- [Job workspace](https://github.com/varunsai1930/resuapply/blob/main/app/routes/jobs.py): `app/routes/jobs.py`
- [Greenhouse import](https://github.com/varunsai1930/resuapply/blob/main/app/services/greenhouse.py): `app/services/greenhouse.py`
- [Job requirements](https://github.com/varunsai1930/resuapply/blob/main/app/services/requirements.py): `app/services/requirements.py`
- [Evidence checklist](https://github.com/varunsai1930/resuapply/blob/main/app/services/checklist.py): `app/services/checklist.py`
- [Resume proposals](https://github.com/varunsai1930/resuapply/blob/main/app/services/resume.py): `app/services/resume.py`
- [Application questions](https://github.com/varunsai1930/resuapply/blob/main/app/services/questions.py): `app/services/questions.py`
- [Answers and answer bank](https://github.com/varunsai1930/resuapply/blob/main/app/services/answers.py): `app/services/answers.py`
- [Package approval](https://github.com/varunsai1930/resuapply/blob/main/app/services/package.py): `app/services/package.py`
- [Application tracking](https://github.com/varunsai1930/resuapply/blob/main/app/services/tracking.py): `app/services/tracking.py`

### Candidate profile

- [Profile editing](https://github.com/varunsai1930/resuapply/blob/main/app/routes/profile.py): `app/routes/profile.py`
- [Profile validation](https://github.com/varunsai1930/resuapply/blob/main/app/services/profile.py): `app/services/profile.py`
- [Profile import](https://github.com/varunsai1930/resuapply/blob/main/app/services/resume_import.py): `app/services/resume_import.py`
- [Text and skill rules](https://github.com/varunsai1930/resuapply/blob/main/app/services/text.py): `app/services/text.py`

### AI and sharing

- [Sharing approval](https://github.com/varunsai1930/resuapply/blob/main/app/services/outbound.py): `app/services/outbound.py`
- [AI operations](https://github.com/varunsai1930/resuapply/blob/main/app/ai/operations.py): `app/ai/operations.py`
- [OpenRouter client](https://github.com/varunsai1930/resuapply/blob/main/app/ai/client.py): `app/ai/client.py`
- [AI resume tailoring](https://github.com/varunsai1930/resuapply/blob/main/app/ai/resume.py): `app/ai/resume.py`

### Web experience

- [Web application](https://github.com/varunsai1930/resuapply/blob/main/app/main.py): `app/main.py`
- [Page rendering](https://github.com/varunsai1930/resuapply/blob/main/app/templating.py): `app/templating.py`

### Local persistence

- [Domain records](https://github.com/varunsai1930/resuapply/blob/main/app/models.py): `app/models.py`
- [SQLite database](https://github.com/varunsai1930/resuapply/blob/main/app/db.py): `app/db.py`

### Other components

- **Applicant**

## Connections

- Applicant → Web application: uses
- Web application → Job workspace: routes requests (evidence: `app/main.py`)
- Web application → Profile editing: routes requests (evidence: `app/main.py`)
- Web application → Page rendering: renders pages (evidence: `app/main.py`)
- Applicant → Profile editing: maintains profile
- Profile editing → Profile validation: validates profile (evidence: `app/routes/profile.py`)
- Profile editing → Profile import: imports locally (evidence: `app/routes/profile.py`)
- Applicant → Job workspace: adds job
- Job workspace → Greenhouse import: imports posting (evidence: `app/routes/jobs.py`)
- Applicant → Job requirements: reviews requirements
- Applicant → Evidence checklist: reviews evidence
- Job workspace → Job requirements: handles job review
- Job requirements → Evidence checklist: informs assessment (evidence: `app/services/checklist.py`)
- Applicant → Sharing approval: approves context
- Sharing approval → AI operations: provides reduced context (evidence: `app/ai/operations.py`)
- AI operations → OpenRouter client: requests completion (evidence: `app/ai/operations.py`)
- OpenRouter client → Applicant: calls model
- Applicant → Resume proposals: reviews proposal
- AI resume tailoring → AI operations: uses AI operations (evidence: `app/ai/resume.py`)
- Applicant → Application questions: provides questions
- Applicant → Answers and answer bank: reviews answers
- Application questions → Answers and answer bank: supplies questions (evidence: `app/services/answers.py`)
- Applicant → Package approval: approves package
- Applicant → Application tracking: records outcome
- Job workspace → Package approval: serves workspace (evidence: `app/routes/jobs.py`)
- Profile validation → Text and skill rules: uses normalization (evidence: `app/services/profile.py`)
- Profile editing → SQLite database: saves profile (evidence: `app/routes/profile.py`)
- Job workspace → SQLite database: persists job state (evidence: `app/routes/jobs.py`)
- SQLite database → Domain records: stores records (evidence: `app/db.py`)
- AI operations → Domain records: stores AI results (evidence: `app/ai/operations.py`)
- Package approval → Application tracking: freezes submitted state (evidence: `app/services/package.py`)
