# olcayalkan/notdefteri architecture

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

## Overview

NotDefteri, macOS ve Linux için Türkçe bir not defteri uygulamasıdır. Temel akış: kullanıcı sayfa ağacından bir not açar veya oluşturur, editörde biçimli içerik yazar; uygulama bunu düz dosyalara kaydeder ve ana sayfa, arama, bağlantılar gibi özelliklerle yeniden bulmayı sağlar. Grafik iki platformun arayüzlerini, ortak not biçimi ve dosya yeteneklerini ve README’de belirtilen önemli özellikleri kapsar. Bazı özelliklerin kaynakları örneklenmediğinden ilgili bağlantılar belgelenen davranışa dayanır; belirsiz ilişkileri eklemedim.

Main entry points: [`Sources/NotDefteri/Gorunum/NotMetinGorunumu.swift`](https://github.com/olcayalkan/notdefteri/blob/main/Sources/NotDefteri/Gorunum/NotMetinGorunumu.swift) (Not editörü), [`Sources/NotDefteriLinux/LinuxEklentiler.swift`](https://github.com/olcayalkan/notdefteri/blob/main/Sources/NotDefteriLinux/LinuxEklentiler.swift) (Linux özellikleri), [`Sources/NotDefteri/Pencere/NotPenceresi.swift`](https://github.com/olcayalkan/notdefteri/blob/main/Sources/NotDefteri/Pencere/NotPenceresi.swift) (Not penceresi), [`Sources/NotDefteriLinux/LinuxEditor.swift`](https://github.com/olcayalkan/notdefteri/blob/main/Sources/NotDefteriLinux/LinuxEditor.swift) (Linux editörü)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Uygulama başlangıcı"]
  node_launcher["Ortak çalıştırıcı<br/>[main.swift]"]
  node_macapp["macOS uygulaması<br/>[Ana.swift]"]
  node_linuxapp["Linux uygulaması"]
end

subgraph group_shared["Ortak not çekirdeği"]
  node_textmodel["Blok biçimi<br/>[MetinBlogu.swift]"]
  node_markdown["Markdown dönüştürme"]
  node_tree["Sayfa ağacı modeli<br/>[SayfaAgaci.swift]"]
  node_files["Sayfa dosyaları"]
  node_saving["Otomatik kayıt<br/>[NotKaydedici.swift]"]
end

subgraph group_mac["macOS arayüzü"]
  node_window["Not penceresi<br/>[NotPenceresi.swift]"]
  node_sidebar["Sayfa ağacı<br/>[KenarPaneli.swift]"]
  node_maceditor["Not editörü"]
  node_macadapter["Belge adaptörü"]
end

subgraph group_linux["Linux arayüzü"]
  node_linuxwindow["Linux penceresi<br/>[LinuxPencere.swift]"]
  node_linuxpanel["Linux sayfa ağacı"]
  node_linuxeditor["Linux editörü<br/>[LinuxEditor.swift]"]
  node_gtk["GTK köprüsü<br/>[GtkKoprusu.swift]"]
  node_plugins["Linux özellikleri"]
end

subgraph group_features["Not özellikleri"]
  node_links["Sayfa bağlantıları"]
  node_home["Ana sayfa ve görevler<br/>[AnaSayfa.swift]"]
  node_finder["Hızlı bulucu<br/>[HizliBulucu.swift]"]
  node_history["Sayfa geçmişi<br/>[SayfaGecmisi.swift]"]
  node_trash[("Çöp kutusu<br/>[CopKutusu.swift]")]
  node_export["Dışa aktarma"]
  node_images["Görseller"]
  node_externalfiles[("Yerel not dosyaları")]
end

node_user(("Kullanıcı"))

node_user -->|"başlatır"| node_launcher
node_launcher -->|"başlatır"| node_macapp
node_launcher -->|"başlatır"| node_linuxapp
node_macapp -->|"oluşturur"| node_window
node_window -->|"barındırır"| node_sidebar
node_window -->|"barındırır"| node_maceditor
node_window -->|"açar"| node_home
node_window -->|"barındırır"| node_finder
node_maceditor -->|"aktarır"| node_macadapter
node_maceditor -->|"biçimlendirir"| node_textmodel
node_macadapter -->|"kullanır"| node_textmodel
node_maceditor -->|"otomatik kaydeder"| node_saving
node_saving -.->|"yazar"| node_externalfiles
node_sidebar -->|"gösterir"| node_tree
node_sidebar -->|"kullanır"| node_links
node_maceditor -.->|"bağlantı kurar"| node_links
node_home -.->|"görevleri gösterir"| node_externalfiles
node_maceditor -.->|"dönüştürür"| node_markdown
node_user -->|"kullanır"| node_linuxwindow
node_linuxwindow -->|"barındırır"| node_linuxeditor
node_linuxwindow -->|"barındırır"| node_linuxpanel
node_linuxeditor -->|"kullanır"| node_gtk
node_linuxeditor -->|"otomatik kaydeder"| node_saving
node_linuxeditor -->|"düzenler"| node_textmodel
node_linuxeditor -->|"özellikleri kurar"| node_plugins
node_linuxpanel -.->|"gösterir"| node_tree
node_linuxpanel -->|"kullanır"| node_links
node_plugins -->|"kurar"| node_finder
node_plugins -->|"kurar"| node_images
node_plugins -->|"kurar"| node_history
node_plugins -->|"kurar"| node_trash
node_plugins -->|"kurar"| node_export
node_user -->|"dosyaları bulur"| node_externalfiles
node_user -.->|"önceki sürümü açar"| node_history
node_user -.->|"sayfayı geri alır"| node_trash
node_user -.->|"dışa aktarır"| node_export

click node_launcher "https://github.com/olcayalkan/notdefteri/blob/main/Sources/Calistirici/main.swift"
click node_macapp "https://github.com/olcayalkan/notdefteri/blob/main/Sources/NotDefteri/Uygulama/Ana.swift"
click node_linuxapp "https://github.com/olcayalkan/notdefteri/blob/main/Sources/NotDefteriLinux/LinuxUygulamasi.swift"
click node_window "https://github.com/olcayalkan/notdefteri/blob/main/Sources/NotDefteri/Pencere/NotPenceresi.swift"
click node_sidebar "https://github.com/olcayalkan/notdefteri/blob/main/Sources/NotDefteri/KenarPanel/KenarPaneli.swift"
click node_maceditor "https://github.com/olcayalkan/notdefteri/blob/main/Sources/NotDefteri/Gorunum/NotMetinGorunumu.swift"
click node_macadapter "https://github.com/olcayalkan/notdefteri/blob/main/Sources/NotDefteri/Gorunum/MacBelgeAdaptoru.swift"
click node_linuxwindow "https://github.com/olcayalkan/notdefteri/blob/main/Sources/NotDefteriLinux/LinuxPencere.swift"
click node_linuxpanel "https://github.com/olcayalkan/notdefteri/blob/main/Sources/NotDefteriLinux/LinuxKenarPaneli.swift"
click node_linuxeditor "https://github.com/olcayalkan/notdefteri/blob/main/Sources/NotDefteriLinux/LinuxEditor.swift"
click node_gtk "https://github.com/olcayalkan/notdefteri/blob/main/Sources/NotDefteriLinux/GtkKoprusu.swift"
click node_plugins "https://github.com/olcayalkan/notdefteri/blob/main/Sources/NotDefteriLinux/LinuxEklentiler.swift"
click node_textmodel "https://github.com/olcayalkan/notdefteri/blob/main/Sources/NotDefteri/Cekirdek/MetinBlogu.swift"
click node_markdown "https://github.com/olcayalkan/notdefteri/blob/main/Sources/NotDefteri/Cekirdek/MarkdownCevirici.swift"
click node_tree "https://github.com/olcayalkan/notdefteri/blob/main/Sources/NotDefteri/Cekirdek/SayfaAgaci.swift"
click node_files "https://github.com/olcayalkan/notdefteri/blob/main/Sources/NotDefteri/Cekirdek/SayfaDosyalari.swift"
click node_saving "https://github.com/olcayalkan/notdefteri/blob/main/Sources/NotDefteri/Cekirdek/NotKaydedici.swift"
click node_links "https://github.com/olcayalkan/notdefteri/blob/main/Sources/NotDefteri/Cekirdek/SayfaBaglantilari.swift"
click node_home "https://github.com/olcayalkan/notdefteri/blob/main/Sources/NotDefteri/Gorunum/AnaSayfa.swift"
click node_finder "https://github.com/olcayalkan/notdefteri/blob/main/Sources/NotDefteri/Gorunum/HizliBulucu.swift"
click node_history "https://github.com/olcayalkan/notdefteri/blob/main/Sources/NotDefteri/Cekirdek/SayfaGecmisi.swift"
click node_trash "https://github.com/olcayalkan/notdefteri/blob/main/Sources/NotDefteri/Cekirdek/CopKutusu.swift"
click node_export "https://github.com/olcayalkan/notdefteri/blob/main/Sources/NotDefteri/Cekirdek/MarkdownDisaAktar.swift"
click node_images "https://github.com/olcayalkan/notdefteri/blob/main/Sources/NotDefteriLinux/LinuxGorseller.swift"

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_launcher,node_macapp,node_linuxapp toneBlue
class node_textmodel,node_markdown,node_tree,node_files,node_saving toneAmber
class node_window,node_sidebar,node_maceditor,node_macadapter toneMint
class node_linuxwindow,node_linuxpanel,node_linuxeditor,node_gtk,node_plugins toneRose
class node_links,node_home,node_finder,node_history,node_trash,node_export,node_images,node_externalfiles,node_user toneIndigo
```

## Components

### Uygulama başlangıcı

- [Ortak çalıştırıcı](https://github.com/olcayalkan/notdefteri/blob/main/Sources/Calistirici/main.swift): `Sources/Calistirici/main.swift`
- [macOS uygulaması](https://github.com/olcayalkan/notdefteri/blob/main/Sources/NotDefteri/Uygulama/Ana.swift): `Sources/NotDefteri/Uygulama/Ana.swift`
- [Linux uygulaması](https://github.com/olcayalkan/notdefteri/blob/main/Sources/NotDefteriLinux/LinuxUygulamasi.swift): `Sources/NotDefteriLinux/LinuxUygulamasi.swift`

### Ortak not çekirdeği

- [Blok biçimi](https://github.com/olcayalkan/notdefteri/blob/main/Sources/NotDefteri/Cekirdek/MetinBlogu.swift): `Sources/NotDefteri/Cekirdek/MetinBlogu.swift`
- [Markdown dönüştürme](https://github.com/olcayalkan/notdefteri/blob/main/Sources/NotDefteri/Cekirdek/MarkdownCevirici.swift): `Sources/NotDefteri/Cekirdek/MarkdownCevirici.swift`
- [Sayfa ağacı modeli](https://github.com/olcayalkan/notdefteri/blob/main/Sources/NotDefteri/Cekirdek/SayfaAgaci.swift): `Sources/NotDefteri/Cekirdek/SayfaAgaci.swift`
- [Sayfa dosyaları](https://github.com/olcayalkan/notdefteri/blob/main/Sources/NotDefteri/Cekirdek/SayfaDosyalari.swift): `Sources/NotDefteri/Cekirdek/SayfaDosyalari.swift`
- [Otomatik kayıt](https://github.com/olcayalkan/notdefteri/blob/main/Sources/NotDefteri/Cekirdek/NotKaydedici.swift): `Sources/NotDefteri/Cekirdek/NotKaydedici.swift`

### macOS arayüzü

- [Not penceresi](https://github.com/olcayalkan/notdefteri/blob/main/Sources/NotDefteri/Pencere/NotPenceresi.swift): `Sources/NotDefteri/Pencere/NotPenceresi.swift`
- [Sayfa ağacı](https://github.com/olcayalkan/notdefteri/blob/main/Sources/NotDefteri/KenarPanel/KenarPaneli.swift): `Sources/NotDefteri/KenarPanel/KenarPaneli.swift`
- [Not editörü](https://github.com/olcayalkan/notdefteri/blob/main/Sources/NotDefteri/Gorunum/NotMetinGorunumu.swift): `Sources/NotDefteri/Gorunum/NotMetinGorunumu.swift`
- [Belge adaptörü](https://github.com/olcayalkan/notdefteri/blob/main/Sources/NotDefteri/Gorunum/MacBelgeAdaptoru.swift): `Sources/NotDefteri/Gorunum/MacBelgeAdaptoru.swift`

### Linux arayüzü

- [Linux penceresi](https://github.com/olcayalkan/notdefteri/blob/main/Sources/NotDefteriLinux/LinuxPencere.swift): `Sources/NotDefteriLinux/LinuxPencere.swift`
- [Linux sayfa ağacı](https://github.com/olcayalkan/notdefteri/blob/main/Sources/NotDefteriLinux/LinuxKenarPaneli.swift): `Sources/NotDefteriLinux/LinuxKenarPaneli.swift`
- [Linux editörü](https://github.com/olcayalkan/notdefteri/blob/main/Sources/NotDefteriLinux/LinuxEditor.swift): `Sources/NotDefteriLinux/LinuxEditor.swift`
- [GTK köprüsü](https://github.com/olcayalkan/notdefteri/blob/main/Sources/NotDefteriLinux/GtkKoprusu.swift): `Sources/NotDefteriLinux/GtkKoprusu.swift`
- [Linux özellikleri](https://github.com/olcayalkan/notdefteri/blob/main/Sources/NotDefteriLinux/LinuxEklentiler.swift): `Sources/NotDefteriLinux/LinuxEklentiler.swift`

### Not özellikleri

- [Sayfa bağlantıları](https://github.com/olcayalkan/notdefteri/blob/main/Sources/NotDefteri/Cekirdek/SayfaBaglantilari.swift): `Sources/NotDefteri/Cekirdek/SayfaBaglantilari.swift`
- [Ana sayfa ve görevler](https://github.com/olcayalkan/notdefteri/blob/main/Sources/NotDefteri/Gorunum/AnaSayfa.swift): `Sources/NotDefteri/Gorunum/AnaSayfa.swift`
- [Hızlı bulucu](https://github.com/olcayalkan/notdefteri/blob/main/Sources/NotDefteri/Gorunum/HizliBulucu.swift): `Sources/NotDefteri/Gorunum/HizliBulucu.swift`
- [Sayfa geçmişi](https://github.com/olcayalkan/notdefteri/blob/main/Sources/NotDefteri/Cekirdek/SayfaGecmisi.swift): `Sources/NotDefteri/Cekirdek/SayfaGecmisi.swift`
- [Çöp kutusu](https://github.com/olcayalkan/notdefteri/blob/main/Sources/NotDefteri/Cekirdek/CopKutusu.swift): `Sources/NotDefteri/Cekirdek/CopKutusu.swift`
- [Dışa aktarma](https://github.com/olcayalkan/notdefteri/blob/main/Sources/NotDefteri/Cekirdek/MarkdownDisaAktar.swift): `Sources/NotDefteri/Cekirdek/MarkdownDisaAktar.swift`
- [Görseller](https://github.com/olcayalkan/notdefteri/blob/main/Sources/NotDefteriLinux/LinuxGorseller.swift): `Sources/NotDefteriLinux/LinuxGorseller.swift`
- **Yerel not dosyaları**

### Other components

- **Kullanıcı**

## Connections

- Kullanıcı → Ortak çalıştırıcı: başlatır (evidence: `README.md`)
- Ortak çalıştırıcı → macOS uygulaması: başlatır (evidence: `Sources/Calistirici/main.swift`)
- Ortak çalıştırıcı → Linux uygulaması: başlatır (evidence: `Sources/Calistirici/main.swift`)
- macOS uygulaması → Not penceresi: oluşturur (evidence: `Sources/NotDefteri/Uygulama/Ana.swift`)
- Not penceresi → Sayfa ağacı: barındırır (evidence: `Sources/NotDefteri/Pencere/NotPenceresi.swift`)
- Not penceresi → Not editörü: barındırır (evidence: `Sources/NotDefteri/Pencere/NotPenceresi.swift`)
- Not penceresi → Ana sayfa ve görevler: açar (evidence: `Sources/NotDefteri/Pencere/NotPenceresi.swift`)
- Not penceresi → Hızlı bulucu: barındırır (evidence: `Sources/NotDefteri/Pencere/NotPenceresi.swift`)
- Not editörü → Belge adaptörü: aktarır (evidence: `Sources/NotDefteri/Gorunum/NotMetinGorunumu.swift`)
- Not editörü → Blok biçimi: biçimlendirir (evidence: `Sources/NotDefteri/Gorunum/NotMetinGorunumu.swift`)
- Belge adaptörü → Blok biçimi: kullanır (evidence: `Sources/NotDefteri/Gorunum/MacBelgeAdaptoru.swift`)
- Not editörü → Otomatik kayıt: otomatik kaydeder (evidence: `Sources/NotDefteri/Pencere/NotPenceresi.swift`)
- Otomatik kayıt → Yerel not dosyaları: yazar (evidence: `README.md`)
- Sayfa ağacı → Sayfa ağacı modeli: gösterir (evidence: `Sources/NotDefteri/KenarPanel/KenarPaneli.swift`)
- Sayfa ağacı → Sayfa bağlantıları: kullanır (evidence: `Sources/NotDefteri/KenarPanel/KenarPaneli.swift`)
- Not editörü → Sayfa bağlantıları: bağlantı kurar (evidence: `README.md`)
- Ana sayfa ve görevler → Yerel not dosyaları: görevleri gösterir (evidence: `README.md`)
- Not editörü → Markdown dönüştürme: dönüştürür (evidence: `README.md`)
- Kullanıcı → Linux penceresi: kullanır (evidence: `README.md`)
- Linux penceresi → Linux editörü: barındırır (evidence: `Sources/NotDefteriLinux/LinuxPencere.swift`)
- Linux penceresi → Linux sayfa ağacı: barındırır (evidence: `Sources/NotDefteriLinux/LinuxPencere.swift`)
- Linux editörü → GTK köprüsü: kullanır (evidence: `Sources/NotDefteriLinux/LinuxEditor.swift`)
- Linux editörü → Otomatik kayıt: otomatik kaydeder (evidence: `Sources/NotDefteriLinux/LinuxEditor.swift`)
- Linux editörü → Blok biçimi: düzenler (evidence: `Sources/NotDefteriLinux/LinuxEditor.swift`)
- Linux editörü → Linux özellikleri: özellikleri kurar (evidence: `Sources/NotDefteriLinux/LinuxEklentiler.swift`)
- Linux sayfa ağacı → Sayfa ağacı modeli: gösterir
- Linux sayfa ağacı → Sayfa bağlantıları: kullanır (evidence: `Sources/NotDefteriLinux/LinuxKenarPaneli.swift`)
- Linux özellikleri → Hızlı bulucu: kurar (evidence: `Sources/NotDefteriLinux/LinuxEklentiler.swift`)
- Linux özellikleri → Görseller: kurar (evidence: `Sources/NotDefteriLinux/LinuxEklentiler.swift`)
- Linux özellikleri → Sayfa geçmişi: kurar (evidence: `Sources/NotDefteriLinux/LinuxEklentiler.swift`)
- Linux özellikleri → Çöp kutusu: kurar (evidence: `Sources/NotDefteriLinux/LinuxEklentiler.swift`)
- Linux özellikleri → Dışa aktarma: kurar (evidence: `Sources/NotDefteriLinux/LinuxEklentiler.swift`)
- Kullanıcı → Yerel not dosyaları: dosyaları bulur (evidence: `README.md`)
- Kullanıcı → Sayfa geçmişi: önceki sürümü açar (evidence: `README.md`)
- Kullanıcı → Çöp kutusu: sayfayı geri alır (evidence: `README.md`)
- Kullanıcı → Dışa aktarma: dışa aktarır (evidence: `README.md`)
