# utkukilincsoy/flybycv architecture

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

- Interactive diagram: https://gitdiagram.com/utkukilincsoy/flybycv
- Repository: https://github.com/utkukilincsoy/flybycv

## Overview

FlybyCV is a local Windows desktop job-application assistant: users configure a profile and mail account, discover companies, prepare tailored application materials, send through their own account, and review replies. The graph emphasizes that user workflow and the autopilot’s documented stages, plus the internal sending and inbox orchestration layers. Several connections are based on README behavior because the relevant source was not excerpted; those limits are reflected by avoiding unsupported internal call details.

Main entry points: [`src/autopilot/runner.py`](https://github.com/utkukilincsoy/flybycv/blob/main/src/autopilot/runner.py) (Autopilot runner), [`src/inbox/service.py`](https://github.com/utkukilincsoy/flybycv/blob/main/src/inbox/service.py) (Inbox service), [`src/cv_builder/application_builder.py`](https://github.com/utkukilincsoy/flybycv/blob/main/src/cv_builder/application_builder.py) (Application builder), [`src/sender/worker.py`](https://github.com/utkukilincsoy/flybycv/blob/main/src/sender/worker.py) (Queue worker)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["Desktop experience"]
  node_desktop["Desktop UI<br/>[main_window.py]"]
  node_onboarding["Setup wizard"]
  node_reply_ui["Replies tab<br/>[replies_tab.py]"]
end

subgraph group_discovery["Company discovery"]
  node_company_sources["Company sources"]
  node_csv_import["CSV import<br/>[csv_import.py]"]
  node_site_crawl["Site crawler<br/>[site_crawler.py]"]
  node_email_extract["Email extraction<br/>[email_extractor.py]"]
  node_company_enrich["Company enrichment<br/>[enricher.py]"]
end

subgraph group_applications["Application workflow"]
  node_autopilot["Autopilot runner<br/>[runner.py]"]
  node_profile["Profile data<br/>[profile_loader.py]"]
  node_application_builder["Application builder"]
  node_mail_template["Mail templates<br/>[mail_template.py]"]
  node_cv_renderer["CV renderer<br/>[renderer.py]"]
  node_llm["LLM providers"]
end

subgraph group_operations["Sending and replies"]
  node_database[("Local database<br/>[db.py]")]
  node_settings["Settings<br/>[settings.py]"]
  node_blocklist["Domain blocklist<br/>[blocklist.py]"]
  node_send_worker["Queue worker<br/>[worker.py]"]
  node_send_queue["Application queue<br/>[queue.py]"]
  node_rate_limiter["Send safeguards<br/>[rate_limiter.py]"]
  node_smtp["SMTP sender<br/>[smtp_sender.py]"]
  node_mail_account["Mail providers<br/>[mail_providers.py]"]
  node_inbox_service["Inbox service<br/>[service.py]"]
  node_imap["IMAP reader<br/>[imap_reader.py]"]
  node_reply_classifier["Reply classifier<br/>[classifier.py]"]
  node_reply_matcher["Reply matcher<br/>[reply_matcher.py]"]
end

node_user(("User"))
node_web{{"Company websites and map services"}}
node_mail_services{{"User mail provider"}}

node_user -->|"uses"| node_desktop
node_desktop -->|"opens setup"| node_onboarding
node_user -->|"configures"| node_onboarding
node_desktop -.->|"starts"| node_autopilot
node_autopilot -->|"discovers companies"| node_company_sources
node_company_sources -.->|"imports lists"| node_csv_import
node_autopilot -->|"enriches companies"| node_company_enrich
node_company_enrich -.->|"scans websites"| node_site_crawl
node_site_crawl -->|"fetches pages"| node_web
node_site_crawl -->|"extracts addresses"| node_email_extract
node_autopilot -->|"prepares applications"| node_application_builder
node_application_builder -->|"loads profile"| node_profile
node_application_builder -->|"fills template"| node_mail_template
node_application_builder -->|"renders CV"| node_cv_renderer
node_application_builder -.->|"uses optionally"| node_llm
node_autopilot -->|"runs sending"| node_send_worker
node_send_worker -->|"selects applications"| node_send_queue
node_send_worker -->|"checks limits"| node_rate_limiter
node_send_worker -->|"sends application"| node_smtp
node_smtp -->|"loads connection"| node_mail_account
node_smtp -->|"sends mail"| node_mail_services
node_autopilot -.->|"stores workflow data"| node_database
node_settings -->|"reads and writes"| node_database
node_inbox_service -->|"reads messages"| node_imap
node_inbox_service -->|"matches replies"| node_reply_matcher
node_inbox_service -->|"classifies replies"| node_reply_classifier
node_inbox_service -->|"blocks opt-outs"| node_blocklist
node_inbox_service -->|"records replies"| node_database
node_reply_ui -.->|"checks inbox"| node_inbox_service
node_user -->|"reviews replies"| node_reply_ui
node_imap -->|"fetches messages"| node_mail_services

click node_desktop "https://github.com/utkukilincsoy/flybycv/blob/main/src/ui/main_window.py"
click node_onboarding "https://github.com/utkukilincsoy/flybycv/blob/main/src/ui/onboarding_wizard.py"
click node_autopilot "https://github.com/utkukilincsoy/flybycv/blob/main/src/autopilot/runner.py"
click node_company_sources "https://github.com/utkukilincsoy/flybycv/tree/main/src/company_finder"
click node_csv_import "https://github.com/utkukilincsoy/flybycv/blob/main/src/company_finder/csv_import.py"
click node_site_crawl "https://github.com/utkukilincsoy/flybycv/blob/main/src/company_finder/site_crawler.py"
click node_email_extract "https://github.com/utkukilincsoy/flybycv/blob/main/src/company_finder/email_extractor.py"
click node_company_enrich "https://github.com/utkukilincsoy/flybycv/blob/main/src/company_finder/enricher.py"
click node_profile "https://github.com/utkukilincsoy/flybycv/blob/main/src/cv_builder/profile_loader.py"
click node_application_builder "https://github.com/utkukilincsoy/flybycv/blob/main/src/cv_builder/application_builder.py"
click node_mail_template "https://github.com/utkukilincsoy/flybycv/blob/main/src/cv_builder/mail_template.py"
click node_cv_renderer "https://github.com/utkukilincsoy/flybycv/blob/main/src/cv_builder/renderer.py"
click node_llm "https://github.com/utkukilincsoy/flybycv/tree/main/src/llm"
click node_database "https://github.com/utkukilincsoy/flybycv/blob/main/src/core/db.py"
click node_settings "https://github.com/utkukilincsoy/flybycv/blob/main/src/core/settings.py"
click node_blocklist "https://github.com/utkukilincsoy/flybycv/blob/main/src/core/blocklist.py"
click node_send_worker "https://github.com/utkukilincsoy/flybycv/blob/main/src/sender/worker.py"
click node_send_queue "https://github.com/utkukilincsoy/flybycv/blob/main/src/sender/queue.py"
click node_rate_limiter "https://github.com/utkukilincsoy/flybycv/blob/main/src/sender/rate_limiter.py"
click node_smtp "https://github.com/utkukilincsoy/flybycv/blob/main/src/sender/smtp_sender.py"
click node_mail_account "https://github.com/utkukilincsoy/flybycv/blob/main/src/core/mail_providers.py"
click node_inbox_service "https://github.com/utkukilincsoy/flybycv/blob/main/src/inbox/service.py"
click node_imap "https://github.com/utkukilincsoy/flybycv/blob/main/src/inbox/imap_reader.py"
click node_reply_classifier "https://github.com/utkukilincsoy/flybycv/blob/main/src/inbox/classifier.py"
click node_reply_matcher "https://github.com/utkukilincsoy/flybycv/blob/main/src/inbox/reply_matcher.py"
click node_reply_ui "https://github.com/utkukilincsoy/flybycv/blob/main/src/ui/replies_tab.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_desktop,node_onboarding,node_reply_ui,node_user,node_mail_services toneBlue
class node_company_sources,node_csv_import,node_site_crawl,node_email_extract,node_company_enrich toneAmber
class node_autopilot,node_profile,node_application_builder,node_mail_template,node_cv_renderer,node_llm toneMint
class node_database,node_settings,node_blocklist,node_send_worker,node_send_queue,node_rate_limiter,node_smtp,node_mail_account,node_inbox_service,node_imap,node_reply_classifier,node_reply_matcher toneRose
class node_web toneIndigo
```

## Components

### Desktop experience

- [Desktop UI](https://github.com/utkukilincsoy/flybycv/blob/main/src/ui/main_window.py): `src/ui/main_window.py`
- [Setup wizard](https://github.com/utkukilincsoy/flybycv/blob/main/src/ui/onboarding_wizard.py): `src/ui/onboarding_wizard.py`
- [Replies tab](https://github.com/utkukilincsoy/flybycv/blob/main/src/ui/replies_tab.py): `src/ui/replies_tab.py`

### Company discovery

- [Company sources](https://github.com/utkukilincsoy/flybycv/tree/main/src/company_finder): `src/company_finder`
- [CSV import](https://github.com/utkukilincsoy/flybycv/blob/main/src/company_finder/csv_import.py): `src/company_finder/csv_import.py`
- [Site crawler](https://github.com/utkukilincsoy/flybycv/blob/main/src/company_finder/site_crawler.py): `src/company_finder/site_crawler.py`
- [Email extraction](https://github.com/utkukilincsoy/flybycv/blob/main/src/company_finder/email_extractor.py): `src/company_finder/email_extractor.py`
- [Company enrichment](https://github.com/utkukilincsoy/flybycv/blob/main/src/company_finder/enricher.py): `src/company_finder/enricher.py`

### Application workflow

- [Autopilot runner](https://github.com/utkukilincsoy/flybycv/blob/main/src/autopilot/runner.py): `src/autopilot/runner.py`
- [Profile data](https://github.com/utkukilincsoy/flybycv/blob/main/src/cv_builder/profile_loader.py): `src/cv_builder/profile_loader.py`
- [Application builder](https://github.com/utkukilincsoy/flybycv/blob/main/src/cv_builder/application_builder.py): `src/cv_builder/application_builder.py`
- [Mail templates](https://github.com/utkukilincsoy/flybycv/blob/main/src/cv_builder/mail_template.py): `src/cv_builder/mail_template.py`
- [CV renderer](https://github.com/utkukilincsoy/flybycv/blob/main/src/cv_builder/renderer.py): `src/cv_builder/renderer.py`
- [LLM providers](https://github.com/utkukilincsoy/flybycv/tree/main/src/llm): `src/llm`

### Sending and replies

- [Local database](https://github.com/utkukilincsoy/flybycv/blob/main/src/core/db.py): `src/core/db.py`
- [Settings](https://github.com/utkukilincsoy/flybycv/blob/main/src/core/settings.py): `src/core/settings.py`
- [Domain blocklist](https://github.com/utkukilincsoy/flybycv/blob/main/src/core/blocklist.py): `src/core/blocklist.py`
- [Queue worker](https://github.com/utkukilincsoy/flybycv/blob/main/src/sender/worker.py): `src/sender/worker.py`
- [Application queue](https://github.com/utkukilincsoy/flybycv/blob/main/src/sender/queue.py): `src/sender/queue.py`
- [Send safeguards](https://github.com/utkukilincsoy/flybycv/blob/main/src/sender/rate_limiter.py): `src/sender/rate_limiter.py`
- [SMTP sender](https://github.com/utkukilincsoy/flybycv/blob/main/src/sender/smtp_sender.py): `src/sender/smtp_sender.py`
- [Mail providers](https://github.com/utkukilincsoy/flybycv/blob/main/src/core/mail_providers.py): `src/core/mail_providers.py`
- [Inbox service](https://github.com/utkukilincsoy/flybycv/blob/main/src/inbox/service.py): `src/inbox/service.py`
- [IMAP reader](https://github.com/utkukilincsoy/flybycv/blob/main/src/inbox/imap_reader.py): `src/inbox/imap_reader.py`
- [Reply classifier](https://github.com/utkukilincsoy/flybycv/blob/main/src/inbox/classifier.py): `src/inbox/classifier.py`
- [Reply matcher](https://github.com/utkukilincsoy/flybycv/blob/main/src/inbox/reply_matcher.py): `src/inbox/reply_matcher.py`

### Other components

- **User**
- **Company websites and map services**
- **User mail provider**

## Connections

- User → Desktop UI: uses (evidence: `README.md`)
- Desktop UI → Setup wizard: opens setup (evidence: `main.py`)
- User → Setup wizard: configures (evidence: `README.md`)
- Desktop UI → Autopilot runner: starts
- Autopilot runner → Company sources: discovers companies (evidence: `README.md`)
- Company sources → CSV import: imports lists (evidence: `src/company_finder/teknokent_source.py`)
- Autopilot runner → Company enrichment: enriches companies (evidence: `README.md`)
- Company enrichment → Site crawler: scans websites
- Site crawler → Company websites and map services: fetches pages (evidence: `src/company_finder/site_crawler.py`)
- Site crawler → Email extraction: extracts addresses (evidence: `src/company_finder/site_crawler.py`)
- Autopilot runner → Application builder: prepares applications (evidence: `README.md`)
- Application builder → Profile data: loads profile (evidence: `src/cv_builder/application_builder.py`)
- Application builder → Mail templates: fills template (evidence: `src/cv_builder/application_builder.py`)
- Application builder → CV renderer: renders CV (evidence: `src/cv_builder/application_builder.py`)
- Application builder → LLM providers: uses optionally (evidence: `src/cv_builder/application_builder.py`)
- Autopilot runner → Queue worker: runs sending (evidence: `README.md`)
- Queue worker → Application queue: selects applications (evidence: `src/sender/worker.py`)
- Queue worker → Send safeguards: checks limits (evidence: `src/sender/worker.py`)
- Queue worker → SMTP sender: sends application (evidence: `src/sender/worker.py`)
- SMTP sender → Mail providers: loads connection (evidence: `src/sender/smtp_sender.py`)
- SMTP sender → User mail provider: sends mail (evidence: `README.md`)
- Autopilot runner → Local database: stores workflow data (evidence: `src/autopilot/runner.py`)
- Settings → Local database: reads and writes (evidence: `src/core/settings.py`)
- Inbox service → IMAP reader: reads messages (evidence: `src/inbox/service.py`)
- Inbox service → Reply matcher: matches replies (evidence: `src/inbox/service.py`)
- Inbox service → Reply classifier: classifies replies (evidence: `src/inbox/service.py`)
- Inbox service → Domain blocklist: blocks opt-outs (evidence: `src/inbox/service.py`)
- Inbox service → Local database: records replies (evidence: `src/inbox/service.py`)
- Replies tab → Inbox service: checks inbox
- User → Replies tab: reviews replies (evidence: `README.md`)
- IMAP reader → User mail provider: fetches messages (evidence: `README.md`)
