# ibrahimyksl55/kamu-ilan-takip architecture

> Architecture diagram of the GitHub repository ibrahimyksl55/kamu-ilan-takip, 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/ibrahimyksl55/kamu-ilan-takip
- Repository: https://github.com/ibrahimyksl55/kamu-ilan-takip

## Overview

Kamu Alım Takip is a public-job announcement monitor with a FastAPI backend and Flutter client. Its documented workflow scans official listings, stores new announcements without duplicate links, matches them against user criteria, and sends Telegram alerts; users can also manage criteria and browse filtered listings and favorites in the client. The README documents the API and client behavior, while excerpts show scraping and persistence details. Some listed modules, including the API implementation and Flutter screen, were not excerpted, so their internal relationships are shown only where documented.

Main entry points: [`scraper.py`](https://github.com/ibrahimyksl55/kamu-ilan-takip/blob/main/scraper.py) (Listing scraper), [`main.py`](https://github.com/ibrahimyksl55/kamu-ilan-takip/blob/main/main.py) (FastAPI endpoints), [`database.py`](https://github.com/ibrahimyksl55/kamu-ilan-takip/blob/main/database.py) (Database operations), [`kamu_ilan_mobil/lib/main.dart`](https://github.com/ibrahimyksl55/kamu-ilan-takip/blob/main/kamu_ilan_mobil/lib/main.dart) (Listings and settings UI)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_collection["Collection and alerts"]
  node_scheduler["Scan launcher"]
  node_scraper["Listing scraper<br/>[scraper.py]"]
  node_matcher["Criteria matching<br/>[scraper.py]"]
  node_telegram["Telegram delivery<br/>[scraper.py]"]
  node_notification_module["Notification helper<br/>[bildirim.py]"]
end

subgraph group_backend["Backend and storage"]
  node_api["FastAPI endpoints<br/>[main.py]"]
  node_database_logic["Database operations<br/>[database.py]"]
  node_sqlite[("SQLite records<br/>[kamu_ilanlari.db]")]
end

subgraph group_client["Flutter client"]
  node_mobile["Listings and settings UI<br/>[main.dart]"]
end

node_user(("Job seeker"))
node_sbb["SBB listings"]
node_telegram_service["Telegram Bot API"]

node_scheduler -->|"invokes"| node_scraper
node_scraper -->|"fetches listings"| node_sbb
node_scraper -->|"stores new listings"| node_database_logic
node_database_logic -->|"reads and writes"| node_sqlite
node_scraper -->|"matches criteria"| node_matcher
node_scraper -->|"sends alerts"| node_telegram
node_telegram -->|"posts messages"| node_telegram_service
node_user -.->|"sets criteria"| node_mobile
node_mobile -->|"requests listings and settings"| node_api
node_api -->|"queries records"| node_database_logic
node_api -->|"returns filtered listings"| node_mobile
node_user -->|"receives alerts"| node_telegram

click node_scheduler "https://github.com/ibrahimyksl55/kamu-ilan-takip/blob/main/otomatik_tarayici.py"
click node_scraper "https://github.com/ibrahimyksl55/kamu-ilan-takip/blob/main/scraper.py"
click node_matcher "https://github.com/ibrahimyksl55/kamu-ilan-takip/blob/main/scraper.py"
click node_telegram "https://github.com/ibrahimyksl55/kamu-ilan-takip/blob/main/scraper.py"
click node_notification_module "https://github.com/ibrahimyksl55/kamu-ilan-takip/blob/main/bildirim.py"
click node_api "https://github.com/ibrahimyksl55/kamu-ilan-takip/blob/main/main.py"
click node_database_logic "https://github.com/ibrahimyksl55/kamu-ilan-takip/blob/main/database.py"
click node_sqlite "https://github.com/ibrahimyksl55/kamu-ilan-takip/blob/main/kamu_ilanlari.db"
click node_mobile "https://github.com/ibrahimyksl55/kamu-ilan-takip/blob/main/kamu_ilan_mobil/lib/main.dart"

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_scheduler,node_scraper,node_matcher,node_telegram,node_notification_module toneBlue
class node_api,node_database_logic,node_sqlite toneAmber
class node_mobile,node_telegram_service toneMint
class node_user,node_sbb toneIndigo
```

## Components

### Collection and alerts

- [Scan launcher](https://github.com/ibrahimyksl55/kamu-ilan-takip/blob/main/otomatik_tarayici.py): `otomatik_tarayici.py`
- [Listing scraper](https://github.com/ibrahimyksl55/kamu-ilan-takip/blob/main/scraper.py): `scraper.py`
- [Criteria matching](https://github.com/ibrahimyksl55/kamu-ilan-takip/blob/main/scraper.py): `scraper.py`
- [Telegram delivery](https://github.com/ibrahimyksl55/kamu-ilan-takip/blob/main/scraper.py): `scraper.py`
- [Notification helper](https://github.com/ibrahimyksl55/kamu-ilan-takip/blob/main/bildirim.py): `bildirim.py`

### Backend and storage

- [FastAPI endpoints](https://github.com/ibrahimyksl55/kamu-ilan-takip/blob/main/main.py): `main.py`
- [Database operations](https://github.com/ibrahimyksl55/kamu-ilan-takip/blob/main/database.py): `database.py`
- [SQLite records](https://github.com/ibrahimyksl55/kamu-ilan-takip/blob/main/kamu_ilanlari.db): `kamu_ilanlari.db`

### Flutter client

- [Listings and settings UI](https://github.com/ibrahimyksl55/kamu-ilan-takip/blob/main/kamu_ilan_mobil/lib/main.dart): `kamu_ilan_mobil/lib/main.dart`

### Other components

- **Job seeker**
- **SBB listings**
- **Telegram Bot API**

## Connections

- Scan launcher → Listing scraper: invokes (evidence: `otomatik_tarayici.py`)
- Listing scraper → SBB listings: fetches listings (evidence: `scraper.py`)
- Listing scraper → Database operations: stores new listings (evidence: `scraper.py`)
- Database operations → SQLite records: reads and writes (evidence: `database.py`)
- Listing scraper → Criteria matching: matches criteria (evidence: `scraper.py`)
- Listing scraper → Telegram delivery: sends alerts (evidence: `scraper.py`)
- Telegram delivery → Telegram Bot API: posts messages (evidence: `scraper.py`)
- Job seeker → Listings and settings UI: sets criteria (evidence: `README.md`)
- Listings and settings UI → FastAPI endpoints: requests listings and settings (evidence: `README.md`)
- FastAPI endpoints → Database operations: queries records (evidence: `README.md`)
- FastAPI endpoints → Listings and settings UI: returns filtered listings (evidence: `README.md`)
- Job seeker → Telegram delivery: receives alerts (evidence: `README.md`)
