# mokshith1618/job-apply architecture

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

- Interactive diagram: https://gitdiagram.com/mokshith1618/job-apply
- Repository: https://github.com/mokshith1618/job-apply

## Overview

Job Apply Helper is a personal CLI for turning a job URL into a confirmed application record; it never submits the application. The main workflow detects the job board, retrieves available details and asks for missing fields, checks duplicates, waits for the user's applied/skipped choice, then writes to Google Sheets and Excel. The graph also preserves the documented pending-write recovery and each board-specific reader. Edges are grounded in the excerpts or README; unsampled implementation details are not expanded.

Main entry points: [`apply.py`](https://github.com/mokshith1618/job-apply/blob/master/apply.py) (Apply workflow), [`ats/__init__.py`](https://github.com/mokshith1618/job-apply/blob/master/ats/__init__.py) (ATS detection), [`ats/generic.py`](https://github.com/mokshith1618/job-apply/blob/master/ats/generic.py) (JSON-LD reader), [`sheet_tracker.py`](https://github.com/mokshith1618/job-apply/blob/master/sheet_tracker.py) (Google Sheets tracker)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_cli["CLI workflow"]
  node_entry["Apply workflow<br/>[apply.py]"]
end

subgraph group_jobdata["Job detail readers"]
  node_router["ATS detection<br/>[__init__.py]"]
  node_common["HTTP and job types<br/>[common.py]"]
  node_greenhouse["Greenhouse reader<br/>[greenhouse.py]"]
  node_ashby["Ashby reader<br/>[ashby.py]"]
  node_lever["Lever reader<br/>[lever.py]"]
  node_jsonld["JSON-LD reader<br/>[generic.py]"]
  node_workday["Workday reader<br/>[workday.py]"]
end

subgraph group_trackers["Application trackers"]
  node_excel[("Excel tracker<br/>[tracker.py]")]
  node_sheet[("Google Sheets tracker<br/>[sheet_tracker.py]")]
  node_pending["Pending row files<br/>[tracker.py]"]
end

node_user(("Applicant"))
node_jobboards["Public job-board APIs"]
node_jobpages["Job posting pages"]
node_google["Google Sheets API"]
node_excelstore[("Local Excel file")]

node_user -->|"provides URL"| node_entry
node_entry -->|"detects system"| node_router
node_entry -->|"fetches details"| node_router
node_router -->|"dispatches"| node_greenhouse
node_router -->|"dispatches"| node_ashby
node_router -->|"dispatches"| node_lever
node_router -->|"dispatches"| node_workday
node_router -->|"dispatches"| node_jsonld
node_greenhouse -->|"uses HTTP helpers"| node_common
node_ashby -->|"uses HTTP helpers"| node_common
node_lever -->|"uses HTTP helpers"| node_common
node_jsonld -->|"fetches page"| node_common
node_workday -->|"uses fallback"| node_jsonld
node_ashby -->|"merges page details"| node_jsonld
node_lever -->|"merges page details"| node_jsonld
node_greenhouse -->|"requests job data"| node_jobboards
node_ashby -->|"requests job data"| node_jobboards
node_lever -->|"requests job data"| node_jobboards
node_jsonld -->|"reads JSON-LD"| node_jobpages
node_entry -->|"asks missing details"| node_user
node_entry -->|"checks duplicates"| node_excel
node_entry -->|"checks duplicates"| node_sheet
node_entry -->|"confirms outcome"| node_user
node_entry -->|"writes row"| node_sheet
node_entry -->|"writes row"| node_excel
node_sheet -->|"shares row model"| node_excel
node_sheet -->|"reads and writes"| node_google
node_excel -->|"reads and writes"| node_excelstore
node_entry -->|"queues failed Sheet write"| node_pending
node_entry -->|"queues locked Excel write"| node_pending
node_entry -->|"flushes pending rows"| node_sheet
node_entry -->|"flushes pending rows"| node_excel

click node_entry "https://github.com/mokshith1618/job-apply/blob/master/apply.py"
click node_router "https://github.com/mokshith1618/job-apply/blob/master/ats/__init__.py"
click node_common "https://github.com/mokshith1618/job-apply/blob/master/ats/common.py"
click node_greenhouse "https://github.com/mokshith1618/job-apply/blob/master/ats/greenhouse.py"
click node_ashby "https://github.com/mokshith1618/job-apply/blob/master/ats/ashby.py"
click node_lever "https://github.com/mokshith1618/job-apply/blob/master/ats/lever.py"
click node_jsonld "https://github.com/mokshith1618/job-apply/blob/master/ats/generic.py"
click node_workday "https://github.com/mokshith1618/job-apply/blob/master/ats/workday.py"
click node_excel "https://github.com/mokshith1618/job-apply/blob/master/tracker.py"
click node_sheet "https://github.com/mokshith1618/job-apply/blob/master/sheet_tracker.py"
click node_pending "https://github.com/mokshith1618/job-apply/blob/master/tracker.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_entry toneBlue
class node_router,node_common,node_greenhouse,node_ashby,node_lever,node_jsonld,node_workday,node_excelstore toneAmber
class node_excel,node_sheet,node_pending,node_jobboards,node_google toneMint
class node_user,node_jobpages toneIndigo
```

## Components

### CLI workflow

- [Apply workflow](https://github.com/mokshith1618/job-apply/blob/master/apply.py): `apply.py`

### Job detail readers

- [ATS detection](https://github.com/mokshith1618/job-apply/blob/master/ats/__init__.py): `ats/__init__.py`
- [HTTP and job types](https://github.com/mokshith1618/job-apply/blob/master/ats/common.py): `ats/common.py`
- [Greenhouse reader](https://github.com/mokshith1618/job-apply/blob/master/ats/greenhouse.py): `ats/greenhouse.py`
- [Ashby reader](https://github.com/mokshith1618/job-apply/blob/master/ats/ashby.py): `ats/ashby.py`
- [Lever reader](https://github.com/mokshith1618/job-apply/blob/master/ats/lever.py): `ats/lever.py`
- [JSON-LD reader](https://github.com/mokshith1618/job-apply/blob/master/ats/generic.py): `ats/generic.py`
- [Workday reader](https://github.com/mokshith1618/job-apply/blob/master/ats/workday.py): `ats/workday.py`

### Application trackers

- [Excel tracker](https://github.com/mokshith1618/job-apply/blob/master/tracker.py): `tracker.py`
- [Google Sheets tracker](https://github.com/mokshith1618/job-apply/blob/master/sheet_tracker.py): `sheet_tracker.py`
- [Pending row files](https://github.com/mokshith1618/job-apply/blob/master/tracker.py): `tracker.py`

### Other components

- **Applicant**
- **Public job-board APIs**
- **Job posting pages**
- **Google Sheets API**
- **Local Excel file**

## Connections

- Applicant → Apply workflow: provides URL (evidence: `README.md`)
- Apply workflow → ATS detection: detects system (evidence: `apply.py`)
- Apply workflow → ATS detection: fetches details (evidence: `apply.py`)
- ATS detection → Greenhouse reader: dispatches (evidence: `ats/__init__.py`)
- ATS detection → Ashby reader: dispatches (evidence: `ats/__init__.py`)
- ATS detection → Lever reader: dispatches (evidence: `ats/__init__.py`)
- ATS detection → Workday reader: dispatches (evidence: `ats/__init__.py`)
- ATS detection → JSON-LD reader: dispatches (evidence: `ats/__init__.py`)
- Greenhouse reader → HTTP and job types: uses HTTP helpers (evidence: `ats/greenhouse.py`)
- Ashby reader → HTTP and job types: uses HTTP helpers (evidence: `ats/ashby.py`)
- Lever reader → HTTP and job types: uses HTTP helpers (evidence: `ats/lever.py`)
- JSON-LD reader → HTTP and job types: fetches page (evidence: `ats/generic.py`)
- Workday reader → JSON-LD reader: uses fallback (evidence: `ats/workday.py`)
- Ashby reader → JSON-LD reader: merges page details (evidence: `ats/ashby.py`)
- Lever reader → JSON-LD reader: merges page details (evidence: `ats/lever.py`)
- Greenhouse reader → Public job-board APIs: requests job data (evidence: `ats/greenhouse.py`)
- Ashby reader → Public job-board APIs: requests job data (evidence: `ats/ashby.py`)
- Lever reader → Public job-board APIs: requests job data (evidence: `ats/lever.py`)
- JSON-LD reader → Job posting pages: reads JSON-LD (evidence: `ats/generic.py`)
- Apply workflow → Applicant: asks missing details (evidence: `apply.py`)
- Apply workflow → Excel tracker: checks duplicates (evidence: `apply.py`)
- Apply workflow → Google Sheets tracker: checks duplicates (evidence: `apply.py`)
- Apply workflow → Applicant: confirms outcome (evidence: `apply.py`)
- Apply workflow → Google Sheets tracker: writes row (evidence: `apply.py`)
- Apply workflow → Excel tracker: writes row (evidence: `apply.py`)
- Google Sheets tracker → Excel tracker: shares row model (evidence: `sheet_tracker.py`)
- Google Sheets tracker → Google Sheets API: reads and writes (evidence: `sheet_tracker.py`)
- Excel tracker → Local Excel file: reads and writes (evidence: `tracker.py`)
- Apply workflow → Pending row files: queues failed Sheet write (evidence: `apply.py`)
- Apply workflow → Pending row files: queues locked Excel write (evidence: `apply.py`)
- Apply workflow → Google Sheets tracker: flushes pending rows (evidence: `apply.py`)
- Apply workflow → Excel tracker: flushes pending rows (evidence: `apply.py`)
