# abhishekmandapmalvi/autoapply architecture

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

## Overview

AutoApply is a local job-search and application platform with a dashboard and desktop shell. Its main workflow searches LinkedIn and Indeed, scores and filters jobs, creates tailored documents, submits applications through platform-specific adapters, and records outcomes. The graph also includes the knowledge-base/resume tools, application tracking, portal-login support, scheduling, and dashboard entry points. Several subsystems are represented from README or SOURCE INDEX references rather than inspected implementation; their links are limited to documented or indexed relationships.

Main entry points: [`bot/bot.py`](https://github.com/abhishekmandapmalvi/autoapply/blob/master/bot/bot.py) (Bot orchestrator), [`app.py`](https://github.com/abhishekmandapmalvi/autoapply/blob/master/app.py) (Flask app), [`db/database.py`](https://github.com/abhishekmandapmalvi/autoapply/blob/master/db/database.py) (SQLite database), [`static/js/app.js`](https://github.com/abhishekmandapmalvi/autoapply/blob/master/static/js/app.js) (Dashboard UI)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_dashboard["Dashboard"]
  node_dashboard_ui["Dashboard UI<br/>[app.js]"]
  node_application_ui["Application views<br/>[applications.js]"]
  node_locale_ui["UI translations<br/>[i18n.js]"]
end

subgraph group_backend["Backend API"]
  node_flask_app["Flask app<br/>[app.py]"]
  node_application_routes["Application routes<br/>[applications.py]"]
  node_bot_routes["Bot controls<br/>[bot.py]"]
  node_knowledge_routes["Knowledge and resume routes<br/>[knowledge_base.py]"]
  node_portal_routes["Portal credential routes<br/>[portal_auth.py]"]
end

subgraph group_automation["Job automation"]
  node_bot_loop["Bot orchestrator<br/>[bot.py]"]
  node_searchers["Job searchers"]
  node_job_filter["Scoring and filtering<br/>[filter.py]"]
  node_browser["Browser manager<br/>[browser.py]"]
  node_appliers["Application adapters"]
  node_scheduler["Bot scheduler<br/>[scheduler.py]"]
  node_portal_auth["Portal authentication<br/>[portal_auth.py]"]
end

subgraph group_documents["Documents and knowledge"]
  node_knowledge_base["Knowledge base<br/>[knowledge_base.py]"]
  node_resume_assembler["Resume assembly"]
  node_ai_engine["AI document generation<br/>[ai_engine.py]"]
  node_resume_renderer["Resume rendering<br/>[resume_renderer.py]"]
end

subgraph group_data["State and storage"]
  node_database[("SQLite database<br/>[database.py]")]
  node_app_state["Shared application state<br/>[app_state.py]"]
end

node_user(("User"))
node_linkedin{{"LinkedIn"}}
node_indeed{{"Indeed"}}
node_ats_sites{{"ATS application sites"}}
node_llm_providers{{"LLM providers"}}
node_desktop_shell["Desktop shell<br/>[main.py]"]

node_user -->|"uses"| node_dashboard_ui
node_dashboard_ui -->|"dispatches"| node_application_ui
node_application_ui -->|"fetches"| node_application_routes
node_dashboard_ui -.->|"sends requests"| node_flask_app
node_flask_app -->|"registers"| node_application_routes
node_flask_app -->|"registers"| node_bot_routes
node_flask_app -->|"registers"| node_knowledge_routes
node_flask_app -->|"registers"| node_portal_routes
node_bot_routes -->|"starts"| node_bot_loop
node_bot_routes -->|"configures"| node_scheduler
node_bot_loop -->|"dispatches"| node_searchers
node_searchers -->|"searches"| node_linkedin
node_searchers -->|"searches"| node_indeed
node_bot_loop -->|"scores and filters"| node_job_filter
node_bot_loop -->|"assembles documents"| node_resume_assembler
node_bot_loop -->|"generates documents"| node_ai_engine
node_resume_assembler -->|"selects entries"| node_knowledge_base
node_resume_assembler -->|"renders resumes"| node_resume_renderer
node_ai_engine -->|"calls"| node_llm_providers
node_bot_loop -->|"dispatches"| node_appliers
node_appliers -->|"submits applications"| node_ats_sites
node_bot_loop -->|"uses"| node_browser
node_bot_loop -->|"records outcomes"| node_database
node_application_routes -->|"reads and updates"| node_database
node_knowledge_routes -->|"invokes"| node_knowledge_base
node_portal_routes -->|"invokes"| node_portal_auth
node_portal_auth -->|"reads and writes credentials"| node_database
node_app_state -->|"holds"| node_database
node_app_state -->|"holds"| node_scheduler
node_flask_app -->|"initializes"| node_app_state
node_user -->|"launches"| node_desktop_shell

click node_dashboard_ui "https://github.com/abhishekmandapmalvi/autoapply/blob/master/static/js/app.js"
click node_application_ui "https://github.com/abhishekmandapmalvi/autoapply/blob/master/static/js/applications.js"
click node_locale_ui "https://github.com/abhishekmandapmalvi/autoapply/blob/master/static/js/i18n.js"
click node_flask_app "https://github.com/abhishekmandapmalvi/autoapply/blob/master/app.py"
click node_application_routes "https://github.com/abhishekmandapmalvi/autoapply/blob/master/routes/applications.py"
click node_bot_routes "https://github.com/abhishekmandapmalvi/autoapply/blob/master/routes/bot.py"
click node_knowledge_routes "https://github.com/abhishekmandapmalvi/autoapply/blob/master/routes/knowledge_base.py"
click node_portal_routes "https://github.com/abhishekmandapmalvi/autoapply/blob/master/routes/portal_auth.py"
click node_bot_loop "https://github.com/abhishekmandapmalvi/autoapply/blob/master/bot/bot.py"
click node_searchers "https://github.com/abhishekmandapmalvi/autoapply/tree/master/bot/search"
click node_job_filter "https://github.com/abhishekmandapmalvi/autoapply/blob/master/core/filter.py"
click node_browser "https://github.com/abhishekmandapmalvi/autoapply/blob/master/bot/browser.py"
click node_appliers "https://github.com/abhishekmandapmalvi/autoapply/tree/master/bot/apply"
click node_scheduler "https://github.com/abhishekmandapmalvi/autoapply/blob/master/core/scheduler.py"
click node_portal_auth "https://github.com/abhishekmandapmalvi/autoapply/blob/master/core/portal_auth.py"
click node_knowledge_base "https://github.com/abhishekmandapmalvi/autoapply/blob/master/core/knowledge_base.py"
click node_resume_assembler "https://github.com/abhishekmandapmalvi/autoapply/blob/master/core/resume_assembler.py"
click node_ai_engine "https://github.com/abhishekmandapmalvi/autoapply/blob/master/core/ai_engine.py"
click node_resume_renderer "https://github.com/abhishekmandapmalvi/autoapply/blob/master/core/resume_renderer.py"
click node_database "https://github.com/abhishekmandapmalvi/autoapply/blob/master/db/database.py"
click node_app_state "https://github.com/abhishekmandapmalvi/autoapply/blob/master/app_state.py"
click node_desktop_shell "https://github.com/abhishekmandapmalvi/autoapply/blob/master/shell/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_dashboard_ui,node_application_ui,node_locale_ui,node_user toneBlue
class node_flask_app,node_application_routes,node_bot_routes,node_knowledge_routes,node_portal_routes toneAmber
class node_bot_loop,node_searchers,node_job_filter,node_browser,node_appliers,node_scheduler,node_portal_auth toneMint
class node_knowledge_base,node_resume_assembler,node_ai_engine,node_resume_renderer toneRose
class node_database,node_app_state,node_linkedin,node_indeed,node_ats_sites,node_llm_providers toneIndigo
class node_desktop_shell toneTeal
```

## Components

### Dashboard

- [Dashboard UI](https://github.com/abhishekmandapmalvi/autoapply/blob/master/static/js/app.js): `static/js/app.js`
- [Application views](https://github.com/abhishekmandapmalvi/autoapply/blob/master/static/js/applications.js): `static/js/applications.js`
- [UI translations](https://github.com/abhishekmandapmalvi/autoapply/blob/master/static/js/i18n.js): `static/js/i18n.js`

### Backend API

- [Flask app](https://github.com/abhishekmandapmalvi/autoapply/blob/master/app.py): `app.py`
- [Application routes](https://github.com/abhishekmandapmalvi/autoapply/blob/master/routes/applications.py): `routes/applications.py`
- [Bot controls](https://github.com/abhishekmandapmalvi/autoapply/blob/master/routes/bot.py): `routes/bot.py`
- [Knowledge and resume routes](https://github.com/abhishekmandapmalvi/autoapply/blob/master/routes/knowledge_base.py): `routes/knowledge_base.py`
- [Portal credential routes](https://github.com/abhishekmandapmalvi/autoapply/blob/master/routes/portal_auth.py): `routes/portal_auth.py`

### Job automation

- [Bot orchestrator](https://github.com/abhishekmandapmalvi/autoapply/blob/master/bot/bot.py): `bot/bot.py`
- [Job searchers](https://github.com/abhishekmandapmalvi/autoapply/tree/master/bot/search): `bot/search`
- [Scoring and filtering](https://github.com/abhishekmandapmalvi/autoapply/blob/master/core/filter.py): `core/filter.py`
- [Browser manager](https://github.com/abhishekmandapmalvi/autoapply/blob/master/bot/browser.py): `bot/browser.py`
- [Application adapters](https://github.com/abhishekmandapmalvi/autoapply/tree/master/bot/apply): `bot/apply`
- [Bot scheduler](https://github.com/abhishekmandapmalvi/autoapply/blob/master/core/scheduler.py): `core/scheduler.py`
- [Portal authentication](https://github.com/abhishekmandapmalvi/autoapply/blob/master/core/portal_auth.py): `core/portal_auth.py`

### Documents and knowledge

- [Knowledge base](https://github.com/abhishekmandapmalvi/autoapply/blob/master/core/knowledge_base.py): `core/knowledge_base.py`
- [Resume assembly](https://github.com/abhishekmandapmalvi/autoapply/blob/master/core/resume_assembler.py): `core/resume_assembler.py`
- [AI document generation](https://github.com/abhishekmandapmalvi/autoapply/blob/master/core/ai_engine.py): `core/ai_engine.py`
- [Resume rendering](https://github.com/abhishekmandapmalvi/autoapply/blob/master/core/resume_renderer.py): `core/resume_renderer.py`

### State and storage

- [SQLite database](https://github.com/abhishekmandapmalvi/autoapply/blob/master/db/database.py): `db/database.py`
- [Shared application state](https://github.com/abhishekmandapmalvi/autoapply/blob/master/app_state.py): `app_state.py`

### Other components

- **User**
- **LinkedIn**
- **Indeed**
- **ATS application sites**
- **LLM providers**
- [Desktop shell](https://github.com/abhishekmandapmalvi/autoapply/blob/master/shell/main.py): `shell/main.py`

## Connections

- User → Dashboard UI: uses
- Dashboard UI → Application views: dispatches (evidence: `static/js/app.js`)
- Application views → Application routes: fetches (evidence: `static/js/applications.js`)
- Dashboard UI → Flask app: sends requests
- Flask app → Application routes: registers (evidence: `app.py`)
- Flask app → Bot controls: registers (evidence: `app.py`)
- Flask app → Knowledge and resume routes: registers (evidence: `app.py`)
- Flask app → Portal credential routes: registers (evidence: `app.py`)
- Bot controls → Bot orchestrator: starts (evidence: `routes/bot.py`)
- Bot controls → Bot scheduler: configures (evidence: `routes/bot.py`)
- Bot orchestrator → Job searchers: dispatches (evidence: `bot/bot.py`)
- Job searchers → LinkedIn: searches
- Job searchers → Indeed: searches
- Bot orchestrator → Scoring and filtering: scores and filters (evidence: `bot/bot.py`)
- Bot orchestrator → Resume assembly: assembles documents (evidence: `bot/bot.py`)
- Bot orchestrator → AI document generation: generates documents (evidence: `bot/bot.py`)
- Resume assembly → Knowledge base: selects entries (evidence: `core/resume_assembler.py`)
- Resume assembly → Resume rendering: renders resumes (evidence: `core/resume_assembler.py`)
- AI document generation → LLM providers: calls (evidence: `core/ai_engine.py`)
- Bot orchestrator → Application adapters: dispatches (evidence: `bot/bot.py`)
- Application adapters → ATS application sites: submits applications
- Bot orchestrator → Browser manager: uses (evidence: `bot/bot.py`)
- Bot orchestrator → SQLite database: records outcomes (evidence: `bot/bot.py`)
- Application routes → SQLite database: reads and updates (evidence: `routes/applications.py`)
- Knowledge and resume routes → Knowledge base: invokes (evidence: `routes/knowledge_base.py`)
- Portal credential routes → Portal authentication: invokes (evidence: `routes/portal_auth.py`)
- Portal authentication → SQLite database: reads and writes credentials (evidence: `core/portal_auth.py`)
- Shared application state → SQLite database: holds (evidence: `app_state.py`)
- Shared application state → Bot scheduler: holds (evidence: `app_state.py`)
- Flask app → Shared application state: initializes (evidence: `app.py`)
- User → Desktop shell: launches
