# natizh/easytrack architecture

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

- Interactive diagram: https://gitdiagram.com/natizh/easytrack
- Repository: https://github.com/natizh/easytrack

## Overview

EasyTrack is a native, on-device personal finance ledger. The main flow is entering or capturing a transaction, managing it through the app’s store and SQLite ledger, then reviewing activity and reports or exporting data. Other major capabilities include recurring-payment reconciliation, reimbursements, budgets, notification automation, receipt and voice entry, and backup or historical import. Edges reflect the excerpts, source index, or README; unsampled feature wiring is represented conservatively.

Main entry points: [`EasyTrack/UI/RootView.swift`](https://github.com/natizh/easytrack/blob/main/EasyTrack/UI/RootView.swift) (Main interface), [`EasyTrack/Persistence/FinanceStore.swift`](https://github.com/natizh/easytrack/blob/main/EasyTrack/Persistence/FinanceStore.swift) (Finance store), [`EasyTrack/Persistence/SQLiteDatabase.swift`](https://github.com/natizh/easytrack/blob/main/EasyTrack/Persistence/SQLiteDatabase.swift) (SQLite ledger), [`EasyTrack/App/EasyTrackApp.swift`](https://github.com/natizh/easytrack/blob/main/EasyTrack/App/EasyTrackApp.swift) (App entry)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App experience"]
  node_app_entry["App entry<br/>[EasyTrackApp.swift]"]
  node_root_ui["Main interface<br/>[RootView.swift]"]
end

subgraph group_ledger["Ledger and insights"]
  node_store["Finance store<br/>[FinanceStore.swift]"]
  node_sqlite[("SQLite ledger")]
  node_transactions["Transaction models<br/>[Models.swift]"]
  node_analytics["Financial analytics"]
  node_dashboard["Dashboard reports"]
  node_merchant_reports["Merchant analytics"]
  node_budgets["Budgets and goals<br/>[BudgetViews.swift]"]
  node_reimbursements["Reimbursements"]
  node_recurring["Recurring plans"]
  node_reconciliation["Payment matching"]
end

subgraph group_capture["Entry and automation"]
  node_receipt["Receipt OCR<br/>[ReceiptOCR.swift]"]
  node_receipt_ui["Receipt scanner"]
  node_voice["Voice entry<br/>[VoiceEntry.swift]"]
  node_voice_ui["Voice entry view"]
  node_notification["Notification parsing"]
  node_automation["Automation setup"]
  node_intent["Capture intent"]
end

subgraph group_data["Data portability"]
  node_export_ui["Export controls"]
  node_export["Transaction export"]
  node_xlsx["XLSX writer<br/>[XLSXWriter.swift]"]
  node_backup["Backup and restore"]
  node_legacy["Legacy backup converter"]
  node_import_ui["Historical import"]
  node_coordinator["Seed import coordinator"]
  node_mapper["Seed mapping<br/>[SeedMapper.swift]"]
end

node_person(("User"))
node_shortcuts(("Shortcuts automation"))

node_person -->|"opens"| node_app_entry
node_app_entry -->|"shows"| node_root_ui
node_app_entry -->|"provides"| node_store
node_root_ui -->|"uses"| node_store
node_store -->|"reads and writes"| node_sqlite
node_person -->|"records and reviews"| node_root_ui
node_root_ui -->|"presents reports"| node_dashboard
node_root_ui -->|"manages budgets"| node_budgets
node_root_ui -->|"manages plans"| node_recurring
node_root_ui -->|"tracks repayments"| node_reimbursements
node_recurring -->|"updates plans"| node_store
node_recurring -->|"matches payments"| node_reconciliation
node_person -->|"scans receipt"| node_receipt_ui
node_receipt_ui -->|"extracts text"| node_receipt
node_person -->|"speaks entry"| node_voice_ui
node_voice_ui -->|"parses speech"| node_voice
node_shortcuts -->|"passes fields"| node_intent
node_intent -->|"captures event"| node_sqlite
node_automation -->|"configures capture"| node_store
node_automation -->|"tests formats"| node_notification
node_root_ui -->|"opens export"| node_export_ui
node_export_ui -->|"filters transactions"| node_export
node_export -.->|"writes workbook"| node_xlsx
node_person -->|"backs up ledger"| node_backup
node_root_ui -->|"restores snapshot"| node_backup
node_backup -->|"converts legacy data"| node_legacy
node_root_ui -->|"starts import"| node_import_ui
node_import_ui -->|"stages seed"| node_coordinator
node_coordinator -->|"validates seed"| node_mapper
node_coordinator -->|"previews and imports"| node_sqlite
node_sqlite -.->|"stores records"| node_transactions
node_dashboard -.->|"shows metrics"| node_analytics
node_dashboard -->|"shows merchant trends"| node_merchant_reports

click node_app_entry "https://github.com/natizh/easytrack/blob/main/EasyTrack/App/EasyTrackApp.swift"
click node_root_ui "https://github.com/natizh/easytrack/blob/main/EasyTrack/UI/RootView.swift"
click node_store "https://github.com/natizh/easytrack/blob/main/EasyTrack/Persistence/FinanceStore.swift"
click node_sqlite "https://github.com/natizh/easytrack/blob/main/EasyTrack/Persistence/SQLiteDatabase.swift"
click node_transactions "https://github.com/natizh/easytrack/blob/main/EasyTrack/Shared/Models.swift"
click node_analytics "https://github.com/natizh/easytrack/blob/main/EasyTrack/Shared/FinancialAnalytics.swift"
click node_dashboard "https://github.com/natizh/easytrack/blob/main/EasyTrack/UI/DashboardCharts.swift"
click node_merchant_reports "https://github.com/natizh/easytrack/blob/main/EasyTrack/Shared/MerchantAnalytics.swift"
click node_budgets "https://github.com/natizh/easytrack/blob/main/EasyTrack/UI/BudgetViews.swift"
click node_reimbursements "https://github.com/natizh/easytrack/blob/main/EasyTrack/Persistence/SQLiteDatabase%2BReimbursements.swift"
click node_recurring "https://github.com/natizh/easytrack/blob/main/EasyTrack/UI/RecurringViews.swift"
click node_reconciliation "https://github.com/natizh/easytrack/blob/main/EasyTrack/Persistence/SQLiteDatabase%2BReconciliation.swift"
click node_receipt "https://github.com/natizh/easytrack/blob/main/EasyTrack/Shared/ReceiptOCR.swift"
click node_receipt_ui "https://github.com/natizh/easytrack/blob/main/EasyTrack/UI/ReceiptScannerView.swift"
click node_voice "https://github.com/natizh/easytrack/blob/main/EasyTrack/Shared/VoiceEntry.swift"
click node_voice_ui "https://github.com/natizh/easytrack/blob/main/EasyTrack/UI/VoiceEntryView.swift"
click node_notification "https://github.com/natizh/easytrack/blob/main/EasyTrack/Shared/NotificationParser.swift"
click node_automation "https://github.com/natizh/easytrack/blob/main/EasyTrack/UI/AutomationBuilder.swift"
click node_intent "https://github.com/natizh/easytrack/blob/main/EasyTrack/Intake/CaptureNotificationIntent.swift"
click node_export_ui "https://github.com/natizh/easytrack/blob/main/EasyTrack/UI/TransactionExportView.swift"
click node_export "https://github.com/natizh/easytrack/blob/main/EasyTrack/Export/TransactionExport.swift"
click node_xlsx "https://github.com/natizh/easytrack/blob/main/EasyTrack/Export/XLSXWriter.swift"
click node_backup "https://github.com/natizh/easytrack/blob/main/EasyTrack/Persistence/SQLiteDatabase%2BBackup.swift"
click node_legacy "https://github.com/natizh/easytrack/blob/main/EasyTrack/Persistence/LegacyBackupConverter.swift"
click node_import_ui "https://github.com/natizh/easytrack/blob/main/EasyTrack/UI/HistoricalImportSection.swift"
click node_coordinator "https://github.com/natizh/easytrack/blob/main/EasyTrack/Import/SeedImportCoordinator.swift"
click node_mapper "https://github.com/natizh/easytrack/blob/main/EasyTrack/Import/SeedMapper.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_app_entry,node_root_ui,node_person toneBlue
class node_store,node_sqlite,node_transactions,node_analytics,node_dashboard,node_merchant_reports,node_budgets,node_reimbursements,node_recurring,node_reconciliation toneAmber
class node_receipt,node_receipt_ui,node_voice,node_voice_ui,node_notification,node_automation,node_intent toneMint
class node_export_ui,node_export,node_xlsx,node_backup,node_legacy,node_import_ui,node_coordinator,node_mapper toneRose
class node_shortcuts toneIndigo
```

## Components

### App experience

- [App entry](https://github.com/natizh/easytrack/blob/main/EasyTrack/App/EasyTrackApp.swift): `EasyTrack/App/EasyTrackApp.swift`
- [Main interface](https://github.com/natizh/easytrack/blob/main/EasyTrack/UI/RootView.swift): `EasyTrack/UI/RootView.swift`

### Ledger and insights

- [Finance store](https://github.com/natizh/easytrack/blob/main/EasyTrack/Persistence/FinanceStore.swift): `EasyTrack/Persistence/FinanceStore.swift`
- [SQLite ledger](https://github.com/natizh/easytrack/blob/main/EasyTrack/Persistence/SQLiteDatabase.swift): `EasyTrack/Persistence/SQLiteDatabase.swift`
- [Transaction models](https://github.com/natizh/easytrack/blob/main/EasyTrack/Shared/Models.swift): `EasyTrack/Shared/Models.swift`
- [Financial analytics](https://github.com/natizh/easytrack/blob/main/EasyTrack/Shared/FinancialAnalytics.swift): `EasyTrack/Shared/FinancialAnalytics.swift`
- [Dashboard reports](https://github.com/natizh/easytrack/blob/main/EasyTrack/UI/DashboardCharts.swift): `EasyTrack/UI/DashboardCharts.swift`
- [Merchant analytics](https://github.com/natizh/easytrack/blob/main/EasyTrack/Shared/MerchantAnalytics.swift): `EasyTrack/Shared/MerchantAnalytics.swift`
- [Budgets and goals](https://github.com/natizh/easytrack/blob/main/EasyTrack/UI/BudgetViews.swift): `EasyTrack/UI/BudgetViews.swift`
- [Reimbursements](https://github.com/natizh/easytrack/blob/main/EasyTrack/Persistence/SQLiteDatabase%2BReimbursements.swift): `EasyTrack/Persistence/SQLiteDatabase+Reimbursements.swift`
- [Recurring plans](https://github.com/natizh/easytrack/blob/main/EasyTrack/UI/RecurringViews.swift): `EasyTrack/UI/RecurringViews.swift`
- [Payment matching](https://github.com/natizh/easytrack/blob/main/EasyTrack/Persistence/SQLiteDatabase%2BReconciliation.swift): `EasyTrack/Persistence/SQLiteDatabase+Reconciliation.swift`

### Entry and automation

- [Receipt OCR](https://github.com/natizh/easytrack/blob/main/EasyTrack/Shared/ReceiptOCR.swift): `EasyTrack/Shared/ReceiptOCR.swift`
- [Receipt scanner](https://github.com/natizh/easytrack/blob/main/EasyTrack/UI/ReceiptScannerView.swift): `EasyTrack/UI/ReceiptScannerView.swift`
- [Voice entry](https://github.com/natizh/easytrack/blob/main/EasyTrack/Shared/VoiceEntry.swift): `EasyTrack/Shared/VoiceEntry.swift`
- [Voice entry view](https://github.com/natizh/easytrack/blob/main/EasyTrack/UI/VoiceEntryView.swift): `EasyTrack/UI/VoiceEntryView.swift`
- [Notification parsing](https://github.com/natizh/easytrack/blob/main/EasyTrack/Shared/NotificationParser.swift): `EasyTrack/Shared/NotificationParser.swift`
- [Automation setup](https://github.com/natizh/easytrack/blob/main/EasyTrack/UI/AutomationBuilder.swift): `EasyTrack/UI/AutomationBuilder.swift`
- [Capture intent](https://github.com/natizh/easytrack/blob/main/EasyTrack/Intake/CaptureNotificationIntent.swift): `EasyTrack/Intake/CaptureNotificationIntent.swift`

### Data portability

- [Export controls](https://github.com/natizh/easytrack/blob/main/EasyTrack/UI/TransactionExportView.swift): `EasyTrack/UI/TransactionExportView.swift`
- [Transaction export](https://github.com/natizh/easytrack/blob/main/EasyTrack/Export/TransactionExport.swift): `EasyTrack/Export/TransactionExport.swift`
- [XLSX writer](https://github.com/natizh/easytrack/blob/main/EasyTrack/Export/XLSXWriter.swift): `EasyTrack/Export/XLSXWriter.swift`
- [Backup and restore](https://github.com/natizh/easytrack/blob/main/EasyTrack/Persistence/SQLiteDatabase%2BBackup.swift): `EasyTrack/Persistence/SQLiteDatabase+Backup.swift`
- [Legacy backup converter](https://github.com/natizh/easytrack/blob/main/EasyTrack/Persistence/LegacyBackupConverter.swift): `EasyTrack/Persistence/LegacyBackupConverter.swift`
- [Historical import](https://github.com/natizh/easytrack/blob/main/EasyTrack/UI/HistoricalImportSection.swift): `EasyTrack/UI/HistoricalImportSection.swift`
- [Seed import coordinator](https://github.com/natizh/easytrack/blob/main/EasyTrack/Import/SeedImportCoordinator.swift): `EasyTrack/Import/SeedImportCoordinator.swift`
- [Seed mapping](https://github.com/natizh/easytrack/blob/main/EasyTrack/Import/SeedMapper.swift): `EasyTrack/Import/SeedMapper.swift`

### Other components

- **User**
- **Shortcuts automation**

## Connections

- User → App entry: opens (evidence: `README.md`)
- App entry → Main interface: shows (evidence: `EasyTrack/App/EasyTrackApp.swift`)
- App entry → Finance store: provides (evidence: `EasyTrack/App/EasyTrackApp.swift`)
- Main interface → Finance store: uses (evidence: `EasyTrack/UI/RootView.swift`)
- Finance store → SQLite ledger: reads and writes (evidence: `EasyTrack/Persistence/FinanceStore.swift`)
- User → Main interface: records and reviews (evidence: `README.md`)
- Main interface → Dashboard reports: presents reports (evidence: `README.md`)
- Main interface → Budgets and goals: manages budgets (evidence: `README.md`)
- Main interface → Recurring plans: manages plans (evidence: `EasyTrack/UI/RootView.swift`)
- Main interface → Reimbursements: tracks repayments (evidence: `EasyTrack/UI/RootView.swift`)
- Recurring plans → Finance store: updates plans (evidence: `EasyTrack/UI/RecurringViews.swift`)
- Recurring plans → Payment matching: matches payments (evidence: `README.md`)
- User → Receipt scanner: scans receipt (evidence: `README.md`)
- Receipt scanner → Receipt OCR: extracts text (evidence: `README.md`)
- User → Voice entry view: speaks entry (evidence: `README.md`)
- Voice entry view → Voice entry: parses speech (evidence: `README.md`)
- Shortcuts automation → Capture intent: passes fields (evidence: `README.md`)
- Capture intent → SQLite ledger: captures event (evidence: `EasyTrack/Intake/CaptureNotificationIntent.swift`)
- Automation setup → Finance store: configures capture (evidence: `EasyTrack/UI/AutomationBuilder.swift`)
- Automation setup → Notification parsing: tests formats (evidence: `EasyTrack/UI/AutomationBuilder.swift`)
- Main interface → Export controls: opens export (evidence: `EasyTrack/UI/RootView.swift`)
- Export controls → Transaction export: filters transactions (evidence: `EasyTrack/UI/TransactionExportView.swift`)
- Transaction export → XLSX writer: writes workbook
- User → Backup and restore: backs up ledger (evidence: `README.md`)
- Main interface → Backup and restore: restores snapshot (evidence: `EasyTrack/UI/RootView.swift`)
- Backup and restore → Legacy backup converter: converts legacy data (evidence: `EasyTrack/Persistence/SQLiteDatabase+Backup.swift`)
- Main interface → Historical import: starts import (evidence: `EasyTrack/UI/RootView.swift`)
- Historical import → Seed import coordinator: stages seed (evidence: `EasyTrack/UI/HistoricalImportSection.swift`)
- Seed import coordinator → Seed mapping: validates seed (evidence: `EasyTrack/Import/SeedImportCoordinator.swift`)
- Seed import coordinator → SQLite ledger: previews and imports (evidence: `EasyTrack/Import/SeedImportCoordinator.swift`)
- SQLite ledger → Transaction models: stores records
- Dashboard reports → Financial analytics: shows metrics
- Dashboard reports → Merchant analytics: shows merchant trends (evidence: `EasyTrack/UI/DashboardCharts.swift`)
