# farhatsamir/linkedin-auto-apply architecture

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

- Interactive diagram: https://gitdiagram.com/farhatsamir/linkedin-auto-apply
- Repository: https://github.com/farhatsamir/linkedin-auto-apply

## Overview

LinkedIn Auto Apply is a React dashboard and FastAPI backend for configuring and tracking automated LinkedIn applications. Users authenticate, connect a LinkedIn session through a local desktop helper, manage settings and CV information, then launch runs whose work executes in a Celery worker. The worker searches jobs, screens relevance, automates Easy Apply, and records outcomes and logs. Major supporting capabilities include AI-assisted CV/job processing, administration, and encrypted session storage. The task excerpt documents the overall orchestration; some subsystem internals were not sampled, so uncertain implementation links are omitted.

Main entry points: [`app/tasks/auto_apply_task.py`](https://github.com/farhatsamir/linkedin-auto-apply/blob/main/app/tasks/auto_apply_task.py) (Run orchestrator), [`frontend/src/App.tsx`](https://github.com/farhatsamir/linkedin-auto-apply/blob/main/frontend/src/App.tsx) (Dashboard routes), [`app/main.py`](https://github.com/farhatsamir/linkedin-auto-apply/blob/main/app/main.py) (FastAPI routes), [`app/routers/auth_router.py`](https://github.com/farhatsamir/linkedin-auto-apply/blob/main/app/routers/auth_router.py) (Authentication)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_dashboard["Dashboard"]
  node_webapp["Dashboard routes<br/>[App.tsx]"]
  node_login["Sign in<br/>[LoginPage.tsx]"]
  node_settings_ui["Settings<br/>[SettingsPage.tsx]"]
  node_connect_ui["Connection flow"]
  node_auto_ui["Run controls<br/>[AutoApplyPage.tsx]"]
  node_applications_ui["Applications view"]
  node_admin_ui["Admin console<br/>[AdminPage.tsx]"]
end

subgraph group_api["API and identity"]
  node_api_app["FastAPI routes<br/>[main.py]"]
  node_auth["Authentication<br/>[auth_router.py]"]
  node_auth_guard["Auth and roles"]
end

subgraph group_automation["Application automation"]
  node_run_api["Run requests"]
  node_task["Run orchestrator<br/>[auto_apply_task.py]"]
  node_search["Job search<br/>[search_service.py]"]
  node_relevance["Relevance screening"]
  node_apply["Easy Apply loop"]
  node_browser["Browser automation"]
  node_applications["Application records"]
  node_logs["Run logs<br/>[log_service.py]"]
  node_celery["Celery worker<br/>[celery_app.py]"]
end

subgraph group_account["User data"]
  node_database[("SQL database<br/>[database.py]")]
  node_user_service["User accounts<br/>[user_service.py]"]
  node_settings_service["User settings and CV"]
  node_cv_ai["CV and AI summaries"]
  node_job_ai["Job Q&amp;A"]
end

subgraph group_connections["LinkedIn connection"]
  node_session_api["Session connection API"]
  node_session_service["Encrypted session storage"]
  node_helper["Desktop session helper<br/>[main.py]"]
end

node_user(("Dashboard user"))
node_linkedin["LinkedIn"]
node_ollama["Ollama service"]
node_redis[("Redis")]

node_user -->|"uses"| node_webapp
node_webapp -->|"routes to"| node_login
node_webapp -->|"routes to"| node_settings_ui
node_webapp -->|"routes to"| node_connect_ui
node_webapp -->|"routes to"| node_auto_ui
node_webapp -->|"routes to"| node_applications_ui
node_webapp -->|"routes to"| node_admin_ui
node_login -->|"authenticates via"| node_auth
node_auth -->|"authenticates user"| node_user_service
node_auth -->|"uses token checks"| node_auth_guard
node_api_app -->|"registers"| node_auth
node_api_app -->|"registers"| node_run_api
node_api_app -->|"registers"| node_session_api
node_settings_ui -.->|"manages"| node_settings_service
node_settings_ui -.->|"uploads CV for"| node_cv_ai
node_auto_ui -.->|"starts runs"| node_run_api
node_applications_ui -.->|"views results"| node_applications
node_connect_ui -.->|"requests connection"| node_session_api
node_session_api -->|"saves session"| node_session_service
node_helper -->|"uploads session state"| node_session_api
node_user -->|"signs in locally"| node_helper
node_helper -->|"captures browser session"| node_linkedin
node_run_api -->|"queues run"| node_task
node_task -->|"runs in"| node_celery
node_celery -->|"uses broker"| node_redis
node_task -->|"loads settings"| node_settings_service
node_task -->|"loads session"| node_session_service
node_task -->|"searches jobs"| node_search
node_task -->|"scores jobs"| node_relevance
node_task -->|"runs application loop"| node_apply
node_task -->|"starts browser"| node_browser
node_browser -->|"automates applications"| node_linkedin
node_task -->|"records outcomes"| node_applications
node_task -->|"writes run logs"| node_logs
node_database -->|"provides database sessions"| node_api_app
node_session_service -->|"stores encrypted state"| node_database
node_cv_ai -.->|"uses AI"| node_ollama
node_job_ai -.->|"uses AI"| node_ollama

click node_webapp "https://github.com/farhatsamir/linkedin-auto-apply/blob/main/frontend/src/App.tsx"
click node_login "https://github.com/farhatsamir/linkedin-auto-apply/blob/main/frontend/src/features/auth/LoginPage.tsx"
click node_settings_ui "https://github.com/farhatsamir/linkedin-auto-apply/blob/main/frontend/src/features/settings/SettingsPage.tsx"
click node_connect_ui "https://github.com/farhatsamir/linkedin-auto-apply/blob/main/frontend/src/features/linkedin-connection/LinkedInConnectionPage.tsx"
click node_auto_ui "https://github.com/farhatsamir/linkedin-auto-apply/blob/main/frontend/src/features/auto-apply/AutoApplyPage.tsx"
click node_applications_ui "https://github.com/farhatsamir/linkedin-auto-apply/blob/main/frontend/src/features/applications/ApplicationsPage.tsx"
click node_admin_ui "https://github.com/farhatsamir/linkedin-auto-apply/blob/main/frontend/src/features/admin/AdminPage.tsx"
click node_api_app "https://github.com/farhatsamir/linkedin-auto-apply/blob/main/app/main.py"
click node_auth "https://github.com/farhatsamir/linkedin-auto-apply/blob/main/app/routers/auth_router.py"
click node_auth_guard "https://github.com/farhatsamir/linkedin-auto-apply/blob/main/app/dependencies/auth_dependencies.py"
click node_database "https://github.com/farhatsamir/linkedin-auto-apply/blob/main/app/database/database.py"
click node_user_service "https://github.com/farhatsamir/linkedin-auto-apply/blob/main/app/services/user_service.py"
click node_settings_service "https://github.com/farhatsamir/linkedin-auto-apply/blob/main/app/services/settings_service.py"
click node_cv_ai "https://github.com/farhatsamir/linkedin-auto-apply/blob/main/app/services/ai_summary_service.py"
click node_job_ai "https://github.com/farhatsamir/linkedin-auto-apply/blob/main/app/services/ai_job_qa_service.py"
click node_run_api "https://github.com/farhatsamir/linkedin-auto-apply/blob/main/app/routers/auto_apply_router.py"
click node_task "https://github.com/farhatsamir/linkedin-auto-apply/blob/main/app/tasks/auto_apply_task.py"
click node_search "https://github.com/farhatsamir/linkedin-auto-apply/blob/main/app/services/search_service.py"
click node_relevance "https://github.com/farhatsamir/linkedin-auto-apply/blob/main/app/services/relevance_service.py"
click node_apply "https://github.com/farhatsamir/linkedin-auto-apply/blob/main/app/services/apply_loop_service.py"
click node_browser "https://github.com/farhatsamir/linkedin-auto-apply/blob/main/app/services/playwright_service.py"
click node_applications "https://github.com/farhatsamir/linkedin-auto-apply/blob/main/app/services/application_service.py"
click node_logs "https://github.com/farhatsamir/linkedin-auto-apply/blob/main/app/services/log_service.py"
click node_session_api "https://github.com/farhatsamir/linkedin-auto-apply/blob/main/app/routers/linkedin_session_router.py"
click node_session_service "https://github.com/farhatsamir/linkedin-auto-apply/blob/main/app/services/linkedin_session_service.py"
click node_helper "https://github.com/farhatsamir/linkedin-auto-apply/blob/main/helper_app/main.py"
click node_celery "https://github.com/farhatsamir/linkedin-auto-apply/blob/main/app/workers/celery_app.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_webapp,node_login,node_settings_ui,node_connect_ui,node_auto_ui,node_applications_ui,node_admin_ui,node_user toneBlue
class node_api_app,node_auth,node_auth_guard,node_redis toneAmber
class node_run_api,node_task,node_search,node_relevance,node_apply,node_browser,node_applications,node_logs,node_celery toneMint
class node_database,node_user_service,node_settings_service,node_cv_ai,node_job_ai toneRose
class node_session_api,node_session_service,node_helper,node_linkedin,node_ollama toneIndigo
```

## Components

### Dashboard

- [Dashboard routes](https://github.com/farhatsamir/linkedin-auto-apply/blob/main/frontend/src/App.tsx): `frontend/src/App.tsx`
- [Sign in](https://github.com/farhatsamir/linkedin-auto-apply/blob/main/frontend/src/features/auth/LoginPage.tsx): `frontend/src/features/auth/LoginPage.tsx`
- [Settings](https://github.com/farhatsamir/linkedin-auto-apply/blob/main/frontend/src/features/settings/SettingsPage.tsx): `frontend/src/features/settings/SettingsPage.tsx`
- [Connection flow](https://github.com/farhatsamir/linkedin-auto-apply/blob/main/frontend/src/features/linkedin-connection/LinkedInConnectionPage.tsx): `frontend/src/features/linkedin-connection/LinkedInConnectionPage.tsx`
- [Run controls](https://github.com/farhatsamir/linkedin-auto-apply/blob/main/frontend/src/features/auto-apply/AutoApplyPage.tsx): `frontend/src/features/auto-apply/AutoApplyPage.tsx`
- [Applications view](https://github.com/farhatsamir/linkedin-auto-apply/blob/main/frontend/src/features/applications/ApplicationsPage.tsx): `frontend/src/features/applications/ApplicationsPage.tsx`
- [Admin console](https://github.com/farhatsamir/linkedin-auto-apply/blob/main/frontend/src/features/admin/AdminPage.tsx): `frontend/src/features/admin/AdminPage.tsx`

### API and identity

- [FastAPI routes](https://github.com/farhatsamir/linkedin-auto-apply/blob/main/app/main.py): `app/main.py`
- [Authentication](https://github.com/farhatsamir/linkedin-auto-apply/blob/main/app/routers/auth_router.py): `app/routers/auth_router.py`
- [Auth and roles](https://github.com/farhatsamir/linkedin-auto-apply/blob/main/app/dependencies/auth_dependencies.py): `app/dependencies/auth_dependencies.py`

### Application automation

- [Run requests](https://github.com/farhatsamir/linkedin-auto-apply/blob/main/app/routers/auto_apply_router.py): `app/routers/auto_apply_router.py`
- [Run orchestrator](https://github.com/farhatsamir/linkedin-auto-apply/blob/main/app/tasks/auto_apply_task.py): `app/tasks/auto_apply_task.py`
- [Job search](https://github.com/farhatsamir/linkedin-auto-apply/blob/main/app/services/search_service.py): `app/services/search_service.py`
- [Relevance screening](https://github.com/farhatsamir/linkedin-auto-apply/blob/main/app/services/relevance_service.py): `app/services/relevance_service.py`
- [Easy Apply loop](https://github.com/farhatsamir/linkedin-auto-apply/blob/main/app/services/apply_loop_service.py): `app/services/apply_loop_service.py`
- [Browser automation](https://github.com/farhatsamir/linkedin-auto-apply/blob/main/app/services/playwright_service.py): `app/services/playwright_service.py`
- [Application records](https://github.com/farhatsamir/linkedin-auto-apply/blob/main/app/services/application_service.py): `app/services/application_service.py`
- [Run logs](https://github.com/farhatsamir/linkedin-auto-apply/blob/main/app/services/log_service.py): `app/services/log_service.py`
- [Celery worker](https://github.com/farhatsamir/linkedin-auto-apply/blob/main/app/workers/celery_app.py): `app/workers/celery_app.py`

### User data

- [SQL database](https://github.com/farhatsamir/linkedin-auto-apply/blob/main/app/database/database.py): `app/database/database.py`
- [User accounts](https://github.com/farhatsamir/linkedin-auto-apply/blob/main/app/services/user_service.py): `app/services/user_service.py`
- [User settings and CV](https://github.com/farhatsamir/linkedin-auto-apply/blob/main/app/services/settings_service.py): `app/services/settings_service.py`
- [CV and AI summaries](https://github.com/farhatsamir/linkedin-auto-apply/blob/main/app/services/ai_summary_service.py): `app/services/ai_summary_service.py`
- [Job Q&A](https://github.com/farhatsamir/linkedin-auto-apply/blob/main/app/services/ai_job_qa_service.py): `app/services/ai_job_qa_service.py`

### LinkedIn connection

- [Session connection API](https://github.com/farhatsamir/linkedin-auto-apply/blob/main/app/routers/linkedin_session_router.py): `app/routers/linkedin_session_router.py`
- [Encrypted session storage](https://github.com/farhatsamir/linkedin-auto-apply/blob/main/app/services/linkedin_session_service.py): `app/services/linkedin_session_service.py`
- [Desktop session helper](https://github.com/farhatsamir/linkedin-auto-apply/blob/main/helper_app/main.py): `helper_app/main.py`

### Other components

- **Dashboard user**
- **LinkedIn**
- **Ollama service**
- **Redis**

## Connections

- Dashboard user → Dashboard routes: uses (evidence: `README.md`)
- Dashboard routes → Sign in: routes to (evidence: `frontend/src/App.tsx`)
- Dashboard routes → Settings: routes to (evidence: `frontend/src/App.tsx`)
- Dashboard routes → Connection flow: routes to (evidence: `frontend/src/App.tsx`)
- Dashboard routes → Run controls: routes to (evidence: `frontend/src/App.tsx`)
- Dashboard routes → Applications view: routes to (evidence: `frontend/src/App.tsx`)
- Dashboard routes → Admin console: routes to (evidence: `frontend/src/App.tsx`)
- Sign in → Authentication: authenticates via (evidence: `app/routers/auth_router.py`)
- Authentication → User accounts: authenticates user (evidence: `app/routers/auth_router.py`)
- Authentication → Auth and roles: uses token checks (evidence: `app/routers/auth_router.py`)
- FastAPI routes → Authentication: registers (evidence: `app/main.py`)
- FastAPI routes → Run requests: registers (evidence: `app/main.py`)
- FastAPI routes → Session connection API: registers (evidence: `app/main.py`)
- Settings → User settings and CV: manages (evidence: `README.md`)
- Settings → CV and AI summaries: uploads CV for (evidence: `README.md`)
- Run controls → Run requests: starts runs (evidence: `README.md`)
- Applications view → Application records: views results (evidence: `README.md`)
- Connection flow → Session connection API: requests connection (evidence: `app/routers/linkedin_session_router.py`)
- Session connection API → Encrypted session storage: saves session (evidence: `app/routers/linkedin_session_router.py`)
- Desktop session helper → Session connection API: uploads session state (evidence: `README.md`)
- Dashboard user → Desktop session helper: signs in locally (evidence: `README.md`)
- Desktop session helper → LinkedIn: captures browser session (evidence: `README.md`)
- Run requests → Run orchestrator: queues run (evidence: `app/routers/auto_apply_router.py`)
- Run orchestrator → Celery worker: runs in (evidence: `app/tasks/auto_apply_task.py`)
- Celery worker → Redis: uses broker (evidence: `README.md`)
- Run orchestrator → User settings and CV: loads settings (evidence: `app/tasks/auto_apply_task.py`)
- Run orchestrator → Encrypted session storage: loads session (evidence: `app/tasks/auto_apply_task.py`)
- Run orchestrator → Job search: searches jobs (evidence: `app/tasks/auto_apply_task.py`)
- Run orchestrator → Relevance screening: scores jobs (evidence: `app/tasks/auto_apply_task.py`)
- Run orchestrator → Easy Apply loop: runs application loop (evidence: `app/tasks/auto_apply_task.py`)
- Run orchestrator → Browser automation: starts browser (evidence: `app/tasks/auto_apply_task.py`)
- Browser automation → LinkedIn: automates applications (evidence: `README.md`)
- Run orchestrator → Application records: records outcomes (evidence: `app/tasks/auto_apply_task.py`)
- Run orchestrator → Run logs: writes run logs (evidence: `app/tasks/auto_apply_task.py`)
- SQL database → FastAPI routes: provides database sessions (evidence: `app/main.py`)
- Encrypted session storage → SQL database: stores encrypted state (evidence: `app/services/linkedin_session_service.py`)
- CV and AI summaries → Ollama service: uses AI (evidence: `README.md`)
- Job Q&A → Ollama service: uses AI (evidence: `README.md`)
