# err2/job-radar-ai architecture

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

- Interactive diagram: https://gitdiagram.com/err2/job-radar-ai
- Repository: https://github.com/err2/job-radar-ai

## Overview

JOB-RADAR AI is a local, single-user career workspace. The main workflow runs from the browser through the loopback server: CV and preferences are prepared, the AI plans and triages searches, LinkedIn listings and selected descriptions are retrieved, and jobs receive separate career-fit, ATS, and HR assessments. Results, feedback, application history, and reports persist locally; scheduling can start searches while the server runs or through an explicitly created Windows task. The graph combines sampled calls and imports with README-documented capabilities; unsampled feature internals are represented only at their supported module boundary.

Main entry points: [`job_radar_ai/server.py`](https://github.com/err2/job-radar-ai/blob/main/job_radar_ai/server.py) (Loopback API), [`job_radar_ai/hunter.py`](https://github.com/err2/job-radar-ai/blob/main/job_radar_ai/hunter.py) (Search and assessment), [`job_radar_ai/store.py`](https://github.com/err2/job-radar-ai/blob/main/job_radar_ai/store.py) (SQLite workspace), [`job_radar_ai/__main__.py`](https://github.com/err2/job-radar-ai/blob/main/job_radar_ai/__main__.py) (Local runtime)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["Workspace"]
  node_browser["Browser workspace<br/>[app.js]"]
  node_http["Loopback API<br/>[server.py]"]
end

subgraph group_career["Career intelligence"]
  node_profile["CV and profile<br/>[profile.py]"]
  node_cv_worker["CV worker<br/>[cv_worker.py]"]
  node_hunter["Search and assessment<br/>[hunter.py]"]
  node_contracts["AI result contracts<br/>[contracts.py]"]
end

subgraph group_sources["Sources and AI"]
  node_linkedin_transport["LinkedIn transport<br/>[linkedin.py]"]
  node_cli["LinkedIn CLI<br/>[cli.ts]"]
  node_search_command["Job search command<br/>[search.ts]"]
  node_detail_command["Job detail command<br/>[detail.ts]"]
  node_html_helpers["Guest HTML parsing<br/>[helpers.ts]"]
  node_provider["Subscription AI provider<br/>[providers.py]"]
end

subgraph group_state["Local state and scheduling"]
  node_store[("SQLite workspace<br/>[store.py]")]
  node_schedule["Search scheduling<br/>[schedule.py]"]
  node_runtime["Local runtime<br/>[__main__.py]"]
end

node_user(("Career user"))
node_ai_service(("Codex or Claude"))
node_linkedin(("LinkedIn guest source"))
node_os_task(("Windows Task Scheduler"))

node_user -->|"uses"| node_browser
node_browser -.->|"requests state"| node_http
node_http -->|"validates profile"| node_profile
node_http -->|"starts searches"| node_hunter
node_http -->|"checks providers"| node_provider
node_http -->|"reads and writes"| node_store
node_http -->|"checks schedule"| node_schedule
node_cv_worker -->|"delegates to"| node_profile
node_profile -->|"persists profile"| node_store
node_profile -->|"uses weights"| node_contracts
node_hunter -->|"retrieves listings"| node_linkedin_transport
node_hunter -->|"requests AI analysis"| node_provider
node_hunter -->|"records runs and jobs"| node_store
node_hunter -->|"validates results"| node_contracts
node_linkedin_transport -->|"invokes"| node_cli
node_cli -->|"dispatches"| node_search_command
node_cli -->|"dispatches"| node_detail_command
node_search_command -->|"fetches and parses"| node_html_helpers
node_detail_command -->|"fetches and parses"| node_html_helpers
node_linkedin_transport -->|"caches and tracks stops"| node_store
node_provider -->|"runs inference"| node_ai_service
node_provider -->|"uses structured schemas"| node_contracts
node_linkedin -->|"provides guest listings"| node_linkedin_transport
node_runtime -->|"starts server"| node_http
node_runtime -->|"opens database"| node_store
node_runtime -->|"runs scheduled search"| node_hunter
node_runtime -->|"checks due slot"| node_schedule
node_schedule -->|"creates task"| node_os_task
node_os_task -->|"launches runner"| node_runtime
node_browser -.->|"reviews applications and reports"| node_store

click node_browser "https://github.com/err2/job-radar-ai/blob/main/web/app.js"
click node_http "https://github.com/err2/job-radar-ai/blob/main/job_radar_ai/server.py"
click node_profile "https://github.com/err2/job-radar-ai/blob/main/job_radar_ai/profile.py"
click node_cv_worker "https://github.com/err2/job-radar-ai/blob/main/job_radar_ai/cv_worker.py"
click node_hunter "https://github.com/err2/job-radar-ai/blob/main/job_radar_ai/hunter.py"
click node_contracts "https://github.com/err2/job-radar-ai/blob/main/job_radar_ai/contracts.py"
click node_linkedin_transport "https://github.com/err2/job-radar-ai/blob/main/job_radar_ai/linkedin.py"
click node_cli "https://github.com/err2/job-radar-ai/blob/main/integrations/linkedin/cli/src/cli.ts"
click node_search_command "https://github.com/err2/job-radar-ai/blob/main/integrations/linkedin/cli/src/commands/search.ts"
click node_detail_command "https://github.com/err2/job-radar-ai/blob/main/integrations/linkedin/cli/src/commands/detail.ts"
click node_html_helpers "https://github.com/err2/job-radar-ai/blob/main/integrations/linkedin/cli/src/helpers.ts"
click node_provider "https://github.com/err2/job-radar-ai/blob/main/job_radar_ai/providers.py"
click node_store "https://github.com/err2/job-radar-ai/blob/main/job_radar_ai/store.py"
click node_schedule "https://github.com/err2/job-radar-ai/blob/main/job_radar_ai/schedule.py"
click node_runtime "https://github.com/err2/job-radar-ai/blob/main/job_radar_ai/__main__.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_browser,node_http,node_user toneBlue
class node_profile,node_cv_worker,node_hunter,node_contracts toneAmber
class node_linkedin_transport,node_cli,node_search_command,node_detail_command,node_html_helpers,node_provider toneMint
class node_store,node_schedule,node_runtime,node_os_task toneRose
class node_ai_service,node_linkedin toneIndigo
```

## Components

### Workspace

- [Browser workspace](https://github.com/err2/job-radar-ai/blob/main/web/app.js): `web/app.js`
- [Loopback API](https://github.com/err2/job-radar-ai/blob/main/job_radar_ai/server.py): `job_radar_ai/server.py`

### Career intelligence

- [CV and profile](https://github.com/err2/job-radar-ai/blob/main/job_radar_ai/profile.py): `job_radar_ai/profile.py`
- [CV worker](https://github.com/err2/job-radar-ai/blob/main/job_radar_ai/cv_worker.py): `job_radar_ai/cv_worker.py`
- [Search and assessment](https://github.com/err2/job-radar-ai/blob/main/job_radar_ai/hunter.py): `job_radar_ai/hunter.py`
- [AI result contracts](https://github.com/err2/job-radar-ai/blob/main/job_radar_ai/contracts.py): `job_radar_ai/contracts.py`

### Sources and AI

- [LinkedIn transport](https://github.com/err2/job-radar-ai/blob/main/job_radar_ai/linkedin.py): `job_radar_ai/linkedin.py`
- [LinkedIn CLI](https://github.com/err2/job-radar-ai/blob/main/integrations/linkedin/cli/src/cli.ts): `integrations/linkedin/cli/src/cli.ts`
- [Job search command](https://github.com/err2/job-radar-ai/blob/main/integrations/linkedin/cli/src/commands/search.ts): `integrations/linkedin/cli/src/commands/search.ts`
- [Job detail command](https://github.com/err2/job-radar-ai/blob/main/integrations/linkedin/cli/src/commands/detail.ts): `integrations/linkedin/cli/src/commands/detail.ts`
- [Guest HTML parsing](https://github.com/err2/job-radar-ai/blob/main/integrations/linkedin/cli/src/helpers.ts): `integrations/linkedin/cli/src/helpers.ts`
- [Subscription AI provider](https://github.com/err2/job-radar-ai/blob/main/job_radar_ai/providers.py): `job_radar_ai/providers.py`

### Local state and scheduling

- [SQLite workspace](https://github.com/err2/job-radar-ai/blob/main/job_radar_ai/store.py): `job_radar_ai/store.py`
- [Search scheduling](https://github.com/err2/job-radar-ai/blob/main/job_radar_ai/schedule.py): `job_radar_ai/schedule.py`
- [Local runtime](https://github.com/err2/job-radar-ai/blob/main/job_radar_ai/__main__.py): `job_radar_ai/__main__.py`

### Other components

- **Career user**
- **Codex or Claude**
- **LinkedIn guest source**
- **Windows Task Scheduler**

## Connections

- Career user → Browser workspace: uses (evidence: `README.md`)
- Browser workspace → Loopback API: requests state (evidence: `README.md`)
- Loopback API → CV and profile: validates profile (evidence: `job_radar_ai/server.py`)
- Loopback API → Search and assessment: starts searches (evidence: `job_radar_ai/server.py`)
- Loopback API → Subscription AI provider: checks providers (evidence: `job_radar_ai/server.py`)
- Loopback API → SQLite workspace: reads and writes (evidence: `job_radar_ai/server.py`)
- Loopback API → Search scheduling: checks schedule (evidence: `job_radar_ai/server.py`)
- CV worker → CV and profile: delegates to (evidence: `job_radar_ai/cv_worker.py`)
- CV and profile → SQLite workspace: persists profile (evidence: `job_radar_ai/profile.py`)
- CV and profile → AI result contracts: uses weights (evidence: `job_radar_ai/profile.py`)
- Search and assessment → LinkedIn transport: retrieves listings (evidence: `job_radar_ai/hunter.py`)
- Search and assessment → Subscription AI provider: requests AI analysis (evidence: `job_radar_ai/hunter.py`)
- Search and assessment → SQLite workspace: records runs and jobs (evidence: `job_radar_ai/hunter.py`)
- Search and assessment → AI result contracts: validates results (evidence: `job_radar_ai/hunter.py`)
- LinkedIn transport → LinkedIn CLI: invokes (evidence: `job_radar_ai/linkedin.py`)
- LinkedIn CLI → Job search command: dispatches (evidence: `integrations/linkedin/cli/src/cli.ts`)
- LinkedIn CLI → Job detail command: dispatches (evidence: `integrations/linkedin/cli/src/cli.ts`)
- Job search command → Guest HTML parsing: fetches and parses (evidence: `integrations/linkedin/cli/src/commands/search.ts`)
- Job detail command → Guest HTML parsing: fetches and parses (evidence: `integrations/linkedin/cli/src/commands/detail.ts`)
- LinkedIn transport → SQLite workspace: caches and tracks stops (evidence: `job_radar_ai/linkedin.py`)
- Subscription AI provider → Codex or Claude: runs inference (evidence: `README.md`)
- Subscription AI provider → AI result contracts: uses structured schemas (evidence: `job_radar_ai/providers.py`)
- LinkedIn guest source → LinkedIn transport: provides guest listings (evidence: `README.md`)
- Local runtime → Loopback API: starts server (evidence: `job_radar_ai/__main__.py`)
- Local runtime → SQLite workspace: opens database (evidence: `job_radar_ai/__main__.py`)
- Local runtime → Search and assessment: runs scheduled search (evidence: `job_radar_ai/__main__.py`)
- Local runtime → Search scheduling: checks due slot (evidence: `job_radar_ai/__main__.py`)
- Search scheduling → Windows Task Scheduler: creates task (evidence: `job_radar_ai/schedule.py`)
- Windows Task Scheduler → Local runtime: launches runner (evidence: `README.md`)
- Browser workspace → SQLite workspace: reviews applications and reports (evidence: `README.md`)
