# adalettekno/com.adalettekno.udfarama architecture

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

## Overview

UDF Belge Arama is a GTK4 desktop app for finding text inside UYAP `.udf` documents. A user selects a folder and enters a phrase; the app scans that folder and its subfolders in a worker thread, extracts and normalizes document text, then displays matching paths for opening in the default application. Folder selection is saved for later use. The runtime is implemented in one source file, so nodes distinguish responsibilities rather than separate modules; relationships are supported by that file or the README.

Main entry points: [`src/udfarama.py`](https://github.com/adalettekno/com.adalettekno.udfarama/blob/main/src/udfarama.py) (Search worker)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interface["Desktop interface"]
  node_app["Application activation<br/>[udfarama.py]"]
  node_window["Search window<br/>[udfarama.py]"]
  node_folder_choice["Folder selection<br/>[udfarama.py]"]
  node_search_entry["Query entry<br/>[udfarama.py]"]
  node_results["Results and status<br/>[udfarama.py]"]
end

subgraph group_search["Search workflow"]
  node_search_worker["Search worker<br/>[udfarama.py]"]
  node_directory_scan["Directory scan<br/>[udfarama.py]"]
  node_udf_read["UDF content read<br/>[udfarama.py]"]
  node_text_match["Text normalization<br/>[udfarama.py]"]
  node_completion["Search completion<br/>[udfarama.py]"]
end

subgraph group_integration["Local integrations"]
  node_saved_folder["Saved folder<br/>[udfarama.py]"]
  node_local_files["Local folders and files"]
  node_default_app["Default file app"]
end

node_user(("User"))

node_user -->|"launches"| node_app
node_app -->|"activates"| node_window
node_user -->|"chooses folder"| node_folder_choice
node_folder_choice -->|"saves path"| node_saved_folder
node_saved_folder -->|"writes and reads"| node_local_files
node_user -->|"enters query"| node_search_entry
node_search_entry -->|"starts search"| node_search_worker
node_search_worker -->|"walks folders"| node_directory_scan
node_directory_scan -->|"reads paths"| node_local_files
node_search_worker -->|"reads candidates"| node_udf_read
node_udf_read -->|"opens documents"| node_local_files
node_search_worker -->|"normalizes and matches"| node_text_match
node_search_worker -->|"dispatches results"| node_completion
node_completion -->|"updates list and status"| node_results
node_user -->|"activates match"| node_results
node_results -->|"opens document"| node_default_app

click node_app "https://github.com/adalettekno/com.adalettekno.udfarama/blob/main/src/udfarama.py"
click node_window "https://github.com/adalettekno/com.adalettekno.udfarama/blob/main/src/udfarama.py"
click node_folder_choice "https://github.com/adalettekno/com.adalettekno.udfarama/blob/main/src/udfarama.py"
click node_search_entry "https://github.com/adalettekno/com.adalettekno.udfarama/blob/main/src/udfarama.py"
click node_results "https://github.com/adalettekno/com.adalettekno.udfarama/blob/main/src/udfarama.py"
click node_saved_folder "https://github.com/adalettekno/com.adalettekno.udfarama/blob/main/src/udfarama.py"
click node_search_worker "https://github.com/adalettekno/com.adalettekno.udfarama/blob/main/src/udfarama.py"
click node_directory_scan "https://github.com/adalettekno/com.adalettekno.udfarama/blob/main/src/udfarama.py"
click node_udf_read "https://github.com/adalettekno/com.adalettekno.udfarama/blob/main/src/udfarama.py"
click node_text_match "https://github.com/adalettekno/com.adalettekno.udfarama/blob/main/src/udfarama.py"
click node_completion "https://github.com/adalettekno/com.adalettekno.udfarama/blob/main/src/udfarama.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_app,node_window,node_folder_choice,node_search_entry,node_results,node_user toneBlue
class node_search_worker,node_directory_scan,node_udf_read,node_text_match,node_completion toneAmber
class node_saved_folder,node_local_files,node_default_app toneMint
```

## Components

### Desktop interface

- [Application activation](https://github.com/adalettekno/com.adalettekno.udfarama/blob/main/src/udfarama.py): `src/udfarama.py`
- [Search window](https://github.com/adalettekno/com.adalettekno.udfarama/blob/main/src/udfarama.py): `src/udfarama.py`
- [Folder selection](https://github.com/adalettekno/com.adalettekno.udfarama/blob/main/src/udfarama.py): `src/udfarama.py`
- [Query entry](https://github.com/adalettekno/com.adalettekno.udfarama/blob/main/src/udfarama.py): `src/udfarama.py`
- [Results and status](https://github.com/adalettekno/com.adalettekno.udfarama/blob/main/src/udfarama.py): `src/udfarama.py`

### Search workflow

- [Search worker](https://github.com/adalettekno/com.adalettekno.udfarama/blob/main/src/udfarama.py): `src/udfarama.py`
- [Directory scan](https://github.com/adalettekno/com.adalettekno.udfarama/blob/main/src/udfarama.py): `src/udfarama.py`
- [UDF content read](https://github.com/adalettekno/com.adalettekno.udfarama/blob/main/src/udfarama.py): `src/udfarama.py`
- [Text normalization](https://github.com/adalettekno/com.adalettekno.udfarama/blob/main/src/udfarama.py): `src/udfarama.py`
- [Search completion](https://github.com/adalettekno/com.adalettekno.udfarama/blob/main/src/udfarama.py): `src/udfarama.py`

### Local integrations

- [Saved folder](https://github.com/adalettekno/com.adalettekno.udfarama/blob/main/src/udfarama.py): `src/udfarama.py`
- **Local folders and files**
- **Default file app**

### Other components

- **User**

## Connections

- User → Application activation: launches (evidence: `README.md`)
- Application activation → Search window: activates (evidence: `src/udfarama.py`)
- User → Folder selection: chooses folder (evidence: `src/udfarama.py`)
- Folder selection → Saved folder: saves path (evidence: `src/udfarama.py`)
- Saved folder → Local folders and files: writes and reads (evidence: `src/udfarama.py`)
- User → Query entry: enters query (evidence: `src/udfarama.py`)
- Query entry → Search worker: starts search (evidence: `src/udfarama.py`)
- Search worker → Directory scan: walks folders (evidence: `src/udfarama.py`)
- Directory scan → Local folders and files: reads paths (evidence: `src/udfarama.py`)
- Search worker → UDF content read: reads candidates (evidence: `src/udfarama.py`)
- UDF content read → Local folders and files: opens documents (evidence: `src/udfarama.py`)
- Search worker → Text normalization: normalizes and matches (evidence: `src/udfarama.py`)
- Search worker → Search completion: dispatches results (evidence: `src/udfarama.py`)
- Search completion → Results and status: updates list and status (evidence: `src/udfarama.py`)
- User → Results and status: activates match (evidence: `src/udfarama.py`)
- Results and status → Default file app: opens document (evidence: `src/udfarama.py`)
