# iumer/uzee architecture

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

- Interactive diagram: https://gitdiagram.com/iumer/uzee
- Repository: https://github.com/iumer/uzee

## Overview

UZee is an iPhone/iPad personal-finance app. Its intended user flow is to enter or import financial activity, manage accounts and related plans, then review balances, budgets and reports; reminders, calendar, people/loans and voice are additional capabilities. The tree and excerpts show a SwiftUI app composed around injected clients, a domain-core package, and a SQLite data package. Some feature implementations were not sampled, so their internal call paths are not asserted here.

Main entry points: [`App/AppContainer.swift`](https://github.com/iumer/uzee/blob/claude/project-thread-m75ycs/App/AppContainer.swift) (Composition root), [`Packages/UZeeData/Sources/UZeeData/Ledger`](https://github.com/iumer/uzee/tree/claude/project-thread-m75ycs/Packages/UZeeData/Sources/UZeeData/Ledger) (Ledger stores), [`Packages/UZeeUI/Sources/UZeeUI/Shell/AppSession.swift`](https://github.com/iumer/uzee/blob/claude/project-thread-m75ycs/Packages/UZeeUI/Sources/UZeeUI/Shell/AppSession.swift) (App session), [`Packages/UZeeUI/Sources/UZeeUI/Ledger/SmartClient.swift`](https://github.com/iumer/uzee/blob/claude/project-thread-m75ycs/Packages/UZeeUI/Sources/UZeeUI/Ledger/SmartClient.swift) (Smart client)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App and UI"]
  node_app_entry["App entry<br/>[UZeeApp.swift]"]
  node_composition["Composition root<br/>[AppContainer.swift]"]
  node_session["App session<br/>[AppSession.swift]"]
  node_finance_ui["Finance screens"]
  node_people_ui["People screens"]
  node_smart_ui["Import and voice UI"]
  node_ledger_client["Ledger client<br/>[LedgerClient.swift]"]
  node_people_client["People client<br/>[PeopleClient.swift]"]
  node_smart_client["Smart client<br/>[SmartClient.swift]"]
end

subgraph group_domain["Finance domain"]
  node_transactions["Transactions"]
  node_accounts["Accounts and balances<br/>[Account.swift]"]
  node_money["Money and currency<br/>[Money.swift]"]
  node_activity["Activity filters"]
  node_splits["People and splits<br/>[Split.swift]"]
end

subgraph group_data["Persistence"]
  node_database[("SQLite database<br/>[AppDatabase.swift]")]
  node_ledger_store["Ledger stores"]
  node_backups["Backup service"]
end

subgraph group_system["Device services"]
  node_device_services["Device services"]
end

subgraph group_features["Planning and intelligence"]
  node_budget["Budgets and reports<br/>[Budget.swift]"]
  node_calendar["Calendar and reminders"]
  node_smart["Receipt and statement parsing"]
  node_voice["Voice understanding"]
end

node_user(("User"))
node_external_calendar["Device calendar"]

node_user -->|"opens"| node_app_entry
node_app_entry -->|"starts"| node_composition
node_app_entry -->|"shows"| node_session
node_composition -->|"creates"| node_database
node_composition -->|"configures"| node_session
node_composition -->|"wires"| node_ledger_client
node_composition -->|"wires"| node_people_client
node_composition -->|"wires"| node_smart_client
node_session -->|"uses"| node_ledger_client
node_session -->|"uses"| node_people_client
node_session -->|"uses"| node_smart_client
node_composition -->|"configures"| node_device_services
node_composition -->|"configures"| node_calendar
node_calendar -->|"exports to"| node_external_calendar
node_database -.->|"backs"| node_ledger_store
node_ledger_client -.->|"delegates to"| node_ledger_store
node_people_client -.->|"delegates to"| node_ledger_store
node_ledger_store -.->|"stores"| node_transactions
node_ledger_store -.->|"stores"| node_accounts
node_ledger_store -.->|"stores"| node_splits
node_activity -->|"filters"| node_transactions
node_smart_client -.->|"parses with"| node_smart
node_smart_client -.->|"understands with"| node_voice
node_composition -->|"configures"| node_backups
node_database -->|"models"| node_accounts

click node_app_entry "https://github.com/iumer/uzee/blob/claude/project-thread-m75ycs/App/UZeeApp.swift"
click node_composition "https://github.com/iumer/uzee/blob/claude/project-thread-m75ycs/App/AppContainer.swift"
click node_session "https://github.com/iumer/uzee/blob/claude/project-thread-m75ycs/Packages/UZeeUI/Sources/UZeeUI/Shell/AppSession.swift"
click node_finance_ui "https://github.com/iumer/uzee/tree/claude/project-thread-m75ycs/Packages/UZeeUI/Sources/UZeeUI/Tabs"
click node_people_ui "https://github.com/iumer/uzee/tree/claude/project-thread-m75ycs/Packages/UZeeUI/Sources/UZeeUI/People"
click node_smart_ui "https://github.com/iumer/uzee/tree/claude/project-thread-m75ycs/Packages/UZeeUI/Sources/UZeeUI/Import"
click node_ledger_client "https://github.com/iumer/uzee/blob/claude/project-thread-m75ycs/Packages/UZeeUI/Sources/UZeeUI/Ledger/LedgerClient.swift"
click node_people_client "https://github.com/iumer/uzee/blob/claude/project-thread-m75ycs/Packages/UZeeUI/Sources/UZeeUI/Ledger/PeopleClient.swift"
click node_smart_client "https://github.com/iumer/uzee/blob/claude/project-thread-m75ycs/Packages/UZeeUI/Sources/UZeeUI/Ledger/SmartClient.swift"
click node_transactions "https://github.com/iumer/uzee/blob/claude/project-thread-m75ycs/Packages/UZeeCore/Sources/UZeeCore/Transactions/MoneyTransaction.swift"
click node_accounts "https://github.com/iumer/uzee/blob/claude/project-thread-m75ycs/Packages/UZeeCore/Sources/UZeeCore/Accounts/Account.swift"
click node_money "https://github.com/iumer/uzee/blob/claude/project-thread-m75ycs/Packages/UZeeCore/Sources/UZeeCore/Money/Money.swift"
click node_activity "https://github.com/iumer/uzee/blob/claude/project-thread-m75ycs/Packages/UZeeCore/Sources/UZeeCore/Activity/ActivityQuery.swift"
click node_splits "https://github.com/iumer/uzee/blob/claude/project-thread-m75ycs/Packages/UZeeCore/Sources/UZeeCore/People/Split.swift"
click node_database "https://github.com/iumer/uzee/blob/claude/project-thread-m75ycs/Packages/UZeeData/Sources/UZeeData/Database/AppDatabase.swift"
click node_ledger_store "https://github.com/iumer/uzee/tree/claude/project-thread-m75ycs/Packages/UZeeData/Sources/UZeeData/Ledger"
click node_backups "https://github.com/iumer/uzee/blob/claude/project-thread-m75ycs/Packages/UZeeData/Sources/UZeeData/Backup/BackupService.swift"
click node_budget "https://github.com/iumer/uzee/blob/claude/project-thread-m75ycs/Packages/UZeeCore/Sources/UZeeCore/Budget/Budget.swift"
click node_calendar "https://github.com/iumer/uzee/blob/claude/project-thread-m75ycs/Packages/UZeeUI/Sources/UZeeUI/Ledger/CalendarClient.swift"
click node_smart "https://github.com/iumer/uzee/blob/claude/project-thread-m75ycs/Packages/UZeeCore/Sources/UZeeCore/Smart/StatementParser.swift"
click node_voice "https://github.com/iumer/uzee/blob/claude/project-thread-m75ycs/Packages/UZeeSystem/Sources/UZeeSystem/Voice/VoiceUnderstanding.swift"
click node_device_services "https://github.com/iumer/uzee/blob/claude/project-thread-m75ycs/Packages/UZeeSystem/Sources/UZeeSystem/Notifications/NotificationScheduler.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_composition,node_session,node_finance_ui,node_people_ui,node_smart_ui,node_ledger_client,node_people_client,node_smart_client,node_user toneBlue
class node_transactions,node_accounts,node_money,node_activity,node_splits toneAmber
class node_database,node_ledger_store,node_backups toneMint
class node_device_services toneRose
class node_budget,node_calendar,node_smart,node_voice,node_external_calendar toneIndigo
```

## Components

### App and UI

- [App entry](https://github.com/iumer/uzee/blob/claude/project-thread-m75ycs/App/UZeeApp.swift): `App/UZeeApp.swift`
- [Composition root](https://github.com/iumer/uzee/blob/claude/project-thread-m75ycs/App/AppContainer.swift): `App/AppContainer.swift`
- [App session](https://github.com/iumer/uzee/blob/claude/project-thread-m75ycs/Packages/UZeeUI/Sources/UZeeUI/Shell/AppSession.swift): `Packages/UZeeUI/Sources/UZeeUI/Shell/AppSession.swift`
- [Finance screens](https://github.com/iumer/uzee/tree/claude/project-thread-m75ycs/Packages/UZeeUI/Sources/UZeeUI/Tabs): `Packages/UZeeUI/Sources/UZeeUI/Tabs`
- [People screens](https://github.com/iumer/uzee/tree/claude/project-thread-m75ycs/Packages/UZeeUI/Sources/UZeeUI/People): `Packages/UZeeUI/Sources/UZeeUI/People`
- [Import and voice UI](https://github.com/iumer/uzee/tree/claude/project-thread-m75ycs/Packages/UZeeUI/Sources/UZeeUI/Import): `Packages/UZeeUI/Sources/UZeeUI/Import`
- [Ledger client](https://github.com/iumer/uzee/blob/claude/project-thread-m75ycs/Packages/UZeeUI/Sources/UZeeUI/Ledger/LedgerClient.swift): `Packages/UZeeUI/Sources/UZeeUI/Ledger/LedgerClient.swift`
- [People client](https://github.com/iumer/uzee/blob/claude/project-thread-m75ycs/Packages/UZeeUI/Sources/UZeeUI/Ledger/PeopleClient.swift): `Packages/UZeeUI/Sources/UZeeUI/Ledger/PeopleClient.swift`
- [Smart client](https://github.com/iumer/uzee/blob/claude/project-thread-m75ycs/Packages/UZeeUI/Sources/UZeeUI/Ledger/SmartClient.swift): `Packages/UZeeUI/Sources/UZeeUI/Ledger/SmartClient.swift`

### Finance domain

- [Transactions](https://github.com/iumer/uzee/blob/claude/project-thread-m75ycs/Packages/UZeeCore/Sources/UZeeCore/Transactions/MoneyTransaction.swift): `Packages/UZeeCore/Sources/UZeeCore/Transactions/MoneyTransaction.swift`
- [Accounts and balances](https://github.com/iumer/uzee/blob/claude/project-thread-m75ycs/Packages/UZeeCore/Sources/UZeeCore/Accounts/Account.swift): `Packages/UZeeCore/Sources/UZeeCore/Accounts/Account.swift`
- [Money and currency](https://github.com/iumer/uzee/blob/claude/project-thread-m75ycs/Packages/UZeeCore/Sources/UZeeCore/Money/Money.swift): `Packages/UZeeCore/Sources/UZeeCore/Money/Money.swift`
- [Activity filters](https://github.com/iumer/uzee/blob/claude/project-thread-m75ycs/Packages/UZeeCore/Sources/UZeeCore/Activity/ActivityQuery.swift): `Packages/UZeeCore/Sources/UZeeCore/Activity/ActivityQuery.swift`
- [People and splits](https://github.com/iumer/uzee/blob/claude/project-thread-m75ycs/Packages/UZeeCore/Sources/UZeeCore/People/Split.swift): `Packages/UZeeCore/Sources/UZeeCore/People/Split.swift`

### Persistence

- [SQLite database](https://github.com/iumer/uzee/blob/claude/project-thread-m75ycs/Packages/UZeeData/Sources/UZeeData/Database/AppDatabase.swift): `Packages/UZeeData/Sources/UZeeData/Database/AppDatabase.swift`
- [Ledger stores](https://github.com/iumer/uzee/tree/claude/project-thread-m75ycs/Packages/UZeeData/Sources/UZeeData/Ledger): `Packages/UZeeData/Sources/UZeeData/Ledger`
- [Backup service](https://github.com/iumer/uzee/blob/claude/project-thread-m75ycs/Packages/UZeeData/Sources/UZeeData/Backup/BackupService.swift): `Packages/UZeeData/Sources/UZeeData/Backup/BackupService.swift`

### Device services

- [Device services](https://github.com/iumer/uzee/blob/claude/project-thread-m75ycs/Packages/UZeeSystem/Sources/UZeeSystem/Notifications/NotificationScheduler.swift): `Packages/UZeeSystem/Sources/UZeeSystem/Notifications/NotificationScheduler.swift`

### Planning and intelligence

- [Budgets and reports](https://github.com/iumer/uzee/blob/claude/project-thread-m75ycs/Packages/UZeeCore/Sources/UZeeCore/Budget/Budget.swift): `Packages/UZeeCore/Sources/UZeeCore/Budget/Budget.swift`
- [Calendar and reminders](https://github.com/iumer/uzee/blob/claude/project-thread-m75ycs/Packages/UZeeUI/Sources/UZeeUI/Ledger/CalendarClient.swift): `Packages/UZeeUI/Sources/UZeeUI/Ledger/CalendarClient.swift`
- [Receipt and statement parsing](https://github.com/iumer/uzee/blob/claude/project-thread-m75ycs/Packages/UZeeCore/Sources/UZeeCore/Smart/StatementParser.swift): `Packages/UZeeCore/Sources/UZeeCore/Smart/StatementParser.swift`
- [Voice understanding](https://github.com/iumer/uzee/blob/claude/project-thread-m75ycs/Packages/UZeeSystem/Sources/UZeeSystem/Voice/VoiceUnderstanding.swift): `Packages/UZeeSystem/Sources/UZeeSystem/Voice/VoiceUnderstanding.swift`

### Other components

- **User**
- **Device calendar**

## Connections

- User → App entry: opens (evidence: `App/UZeeApp.swift`)
- App entry → Composition root: starts (evidence: `App/UZeeApp.swift`)
- App entry → App session: shows (evidence: `App/UZeeApp.swift`)
- Composition root → SQLite database: creates (evidence: `App/AppContainer.swift`)
- Composition root → App session: configures (evidence: `App/AppContainer.swift`)
- Composition root → Ledger client: wires (evidence: `App/AppContainer.swift`)
- Composition root → People client: wires (evidence: `App/AppContainer.swift`)
- Composition root → Smart client: wires (evidence: `App/AppContainer.swift`)
- App session → Ledger client: uses (evidence: `Packages/UZeeUI/Sources/UZeeUI/Shell/AppSession.swift`)
- App session → People client: uses (evidence: `Packages/UZeeUI/Sources/UZeeUI/Shell/AppSession.swift`)
- App session → Smart client: uses (evidence: `Packages/UZeeUI/Sources/UZeeUI/Shell/AppSession.swift`)
- Composition root → Device services: configures (evidence: `App/AppContainer.swift`)
- Composition root → Calendar and reminders: configures (evidence: `App/AppContainer.swift`)
- Calendar and reminders → Device calendar: exports to
- SQLite database → Ledger stores: backs
- Ledger client → Ledger stores: delegates to
- People client → Ledger stores: delegates to
- Ledger stores → Transactions: stores
- Ledger stores → Accounts and balances: stores
- Ledger stores → People and splits: stores
- Activity filters → Transactions: filters (evidence: `Packages/UZeeCore/Sources/UZeeCore/Activity/ActivityQuery.swift`)
- Smart client → Receipt and statement parsing: parses with
- Smart client → Voice understanding: understands with
- Composition root → Backup service: configures (evidence: `App/AppContainer.swift`)
- SQLite database → Accounts and balances: models (evidence: `Packages/UZeeData/Sources/UZeeData/Database/AppDatabase.swift`)
