# belal123-hub/moneymate-app architecture

> Architecture diagram of the GitHub repository belal123-hub/moneymate-app, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-04). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/belal123-hub/moneymate-app
- Repository: https://github.com/belal123-hub/moneymate-app

## Overview

MoneyMate is an Android personal-finance app. Its apparent user workflow is to open the app, navigate to a finance area, create or review transactions, wallets, and savings goals, then see the resulting summaries. The tree also shows authentication, profile/settings, network-backed data, and offline synchronization capabilities. The README is empty and no runtime source was excerpted, so the feature boundaries come from filenames; dashed, uncited edges mark plausible but unverified connections.

Main entry points: [`app/src/main/java/com/example/moneymate/ui/navigation/AppNavHost.kt`](https://github.com/belal123-hub/moneymate-app/blob/main/app/src/main/java/com/example/moneymate/ui/navigation/AppNavHost.kt) (App navigation), [`data/src/main/java/com/example/data/network/transaction/TransactionRepositoryImpl.kt`](https://github.com/belal123-hub/moneymate-app/blob/main/data/src/main/java/com/example/data/network/transaction/TransactionRepositoryImpl.kt) (Remote repositories), [`data/src/main/java/com/example/data/offline/OfflineSyncOrchestrator.kt`](https://github.com/belal123-hub/moneymate-app/blob/main/data/src/main/java/com/example/data/offline/OfflineSyncOrchestrator.kt) (Offline sync), [`app/src/main/java/com/example/moneymate/MainActivity.kt`](https://github.com/belal123-hub/moneymate-app/blob/main/app/src/main/java/com/example/moneymate/MainActivity.kt) (Activity entry)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App and navigation"]
  node_entry["Activity entry<br/>[MainActivity.kt]"]
  node_navigation["App navigation<br/>[AppNavHost.kt]"]
end

subgraph group_finance["Finance features"]
  node_home["Home dashboard<br/>[HomeScreen.kt]"]
  node_transactions["Transactions"]
  node_transaction_entry["Add transaction"]
  node_charts["Spending analytics"]
  node_wallets["Wallet management<br/>[WalletScreen.kt]"]
  node_goals["Goals and budgets<br/>[GoalScreen.kt]"]
end

subgraph group_account["Account features"]
  node_auth["Sign-in and signup<br/>[SignInScreen.kt]"]
  node_profile["Profile editing"]
  node_settings["Settings<br/>[SettingsScreen.kt]"]
end

subgraph group_data["Data and sync"]
  node_repositories["Remote repositories"]
  node_api["Finance API clients<br/>[TransactionApi.kt]"]
  node_database[("Local database")]
  node_offline["Offline sync"]
  node_worker["Background sync worker<br/>[SyncWorker.kt]"]
end

node_user(("User"))
node_backend{{"Remote service"}}

node_user -.->|"opens"| node_entry
node_entry -.->|"starts"| node_navigation
node_navigation -.->|"routes to"| node_home
node_navigation -.->|"routes to"| node_transactions
node_navigation -.->|"routes to"| node_transaction_entry
node_navigation -.->|"routes to"| node_wallets
node_navigation -.->|"routes to"| node_goals
node_navigation -.->|"routes to"| node_auth
node_navigation -.->|"routes to"| node_profile
node_navigation -.->|"routes to"| node_settings
node_transactions -.->|"presents"| node_charts
node_home -.->|"loads data"| node_repositories
node_transaction_entry -.->|"submits data"| node_repositories
node_wallets -.->|"loads data"| node_repositories
node_goals -.->|"loads data"| node_repositories
node_repositories -.->|"calls"| node_api
node_api -.->|"requests"| node_backend
node_repositories -.->|"persists locally"| node_database
node_worker -.->|"runs sync"| node_offline
node_offline -.->|"reads and writes"| node_database
node_offline -.->|"synchronizes"| node_backend

click node_entry "https://github.com/belal123-hub/moneymate-app/blob/main/app/src/main/java/com/example/moneymate/MainActivity.kt"
click node_navigation "https://github.com/belal123-hub/moneymate-app/blob/main/app/src/main/java/com/example/moneymate/ui/navigation/AppNavHost.kt"
click node_home "https://github.com/belal123-hub/moneymate-app/blob/main/app/src/main/java/com/example/moneymate/ui/screens/home/HomeScreen.kt"
click node_transactions "https://github.com/belal123-hub/moneymate-app/blob/main/app/src/main/java/com/example/moneymate/ui/screens/transaction/TransactionScreen.kt"
click node_transaction_entry "https://github.com/belal123-hub/moneymate-app/blob/main/app/src/main/java/com/example/moneymate/ui/screens/transaction/addtransaction/AddTransactionScreen.kt"
click node_charts "https://github.com/belal123-hub/moneymate-app/blob/main/app/src/main/java/com/example/moneymate/ui/screens/transaction/component/CategoryPieChartComponent.kt"
click node_wallets "https://github.com/belal123-hub/moneymate-app/blob/main/app/src/main/java/com/example/moneymate/ui/screens/wallet/WalletScreen.kt"
click node_goals "https://github.com/belal123-hub/moneymate-app/blob/main/app/src/main/java/com/example/moneymate/ui/screens/goal/GoalScreen.kt"
click node_auth "https://github.com/belal123-hub/moneymate-app/blob/main/app/src/main/java/com/example/moneymate/ui/screens/auth/singIn/SignInScreen.kt"
click node_profile "https://github.com/belal123-hub/moneymate-app/blob/main/app/src/main/java/com/example/moneymate/ui/screens/profile/editprofile/EditProfileScreen.kt"
click node_settings "https://github.com/belal123-hub/moneymate-app/blob/main/app/src/main/java/com/example/moneymate/ui/screens/profile/settings/SettingsScreen.kt"
click node_repositories "https://github.com/belal123-hub/moneymate-app/blob/main/data/src/main/java/com/example/data/network/transaction/TransactionRepositoryImpl.kt"
click node_api "https://github.com/belal123-hub/moneymate-app/blob/main/data/src/main/java/com/example/data/network/transaction/TransactionApi.kt"
click node_database "https://github.com/belal123-hub/moneymate-app/blob/main/data/src/main/java/com/example/data/database/MoneyMateDatabase.kt"
click node_offline "https://github.com/belal123-hub/moneymate-app/blob/main/data/src/main/java/com/example/data/offline/OfflineSyncOrchestrator.kt"
click node_worker "https://github.com/belal123-hub/moneymate-app/blob/main/app/src/main/java/com/example/moneymate/work/SyncWorker.kt"

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_entry,node_navigation,node_user toneBlue
class node_home,node_transactions,node_transaction_entry,node_charts,node_wallets,node_goals toneAmber
class node_auth,node_profile,node_settings toneMint
class node_repositories,node_api,node_database,node_offline,node_worker toneRose
class node_backend toneIndigo
```

## Components

### App and navigation

- [Activity entry](https://github.com/belal123-hub/moneymate-app/blob/main/app/src/main/java/com/example/moneymate/MainActivity.kt): `app/src/main/java/com/example/moneymate/MainActivity.kt`
- [App navigation](https://github.com/belal123-hub/moneymate-app/blob/main/app/src/main/java/com/example/moneymate/ui/navigation/AppNavHost.kt): `app/src/main/java/com/example/moneymate/ui/navigation/AppNavHost.kt`

### Finance features

- [Home dashboard](https://github.com/belal123-hub/moneymate-app/blob/main/app/src/main/java/com/example/moneymate/ui/screens/home/HomeScreen.kt): `app/src/main/java/com/example/moneymate/ui/screens/home/HomeScreen.kt`
- [Transactions](https://github.com/belal123-hub/moneymate-app/blob/main/app/src/main/java/com/example/moneymate/ui/screens/transaction/TransactionScreen.kt): `app/src/main/java/com/example/moneymate/ui/screens/transaction/TransactionScreen.kt`
- [Add transaction](https://github.com/belal123-hub/moneymate-app/blob/main/app/src/main/java/com/example/moneymate/ui/screens/transaction/addtransaction/AddTransactionScreen.kt): `app/src/main/java/com/example/moneymate/ui/screens/transaction/addtransaction/AddTransactionScreen.kt`
- [Spending analytics](https://github.com/belal123-hub/moneymate-app/blob/main/app/src/main/java/com/example/moneymate/ui/screens/transaction/component/CategoryPieChartComponent.kt): `app/src/main/java/com/example/moneymate/ui/screens/transaction/component/CategoryPieChartComponent.kt`
- [Wallet management](https://github.com/belal123-hub/moneymate-app/blob/main/app/src/main/java/com/example/moneymate/ui/screens/wallet/WalletScreen.kt): `app/src/main/java/com/example/moneymate/ui/screens/wallet/WalletScreen.kt`
- [Goals and budgets](https://github.com/belal123-hub/moneymate-app/blob/main/app/src/main/java/com/example/moneymate/ui/screens/goal/GoalScreen.kt): `app/src/main/java/com/example/moneymate/ui/screens/goal/GoalScreen.kt`

### Account features

- [Sign-in and signup](https://github.com/belal123-hub/moneymate-app/blob/main/app/src/main/java/com/example/moneymate/ui/screens/auth/singIn/SignInScreen.kt): `app/src/main/java/com/example/moneymate/ui/screens/auth/singIn/SignInScreen.kt`
- [Profile editing](https://github.com/belal123-hub/moneymate-app/blob/main/app/src/main/java/com/example/moneymate/ui/screens/profile/editprofile/EditProfileScreen.kt): `app/src/main/java/com/example/moneymate/ui/screens/profile/editprofile/EditProfileScreen.kt`
- [Settings](https://github.com/belal123-hub/moneymate-app/blob/main/app/src/main/java/com/example/moneymate/ui/screens/profile/settings/SettingsScreen.kt): `app/src/main/java/com/example/moneymate/ui/screens/profile/settings/SettingsScreen.kt`

### Data and sync

- [Remote repositories](https://github.com/belal123-hub/moneymate-app/blob/main/data/src/main/java/com/example/data/network/transaction/TransactionRepositoryImpl.kt): `data/src/main/java/com/example/data/network/transaction/TransactionRepositoryImpl.kt`
- [Finance API clients](https://github.com/belal123-hub/moneymate-app/blob/main/data/src/main/java/com/example/data/network/transaction/TransactionApi.kt): `data/src/main/java/com/example/data/network/transaction/TransactionApi.kt`
- [Local database](https://github.com/belal123-hub/moneymate-app/blob/main/data/src/main/java/com/example/data/database/MoneyMateDatabase.kt): `data/src/main/java/com/example/data/database/MoneyMateDatabase.kt`
- [Offline sync](https://github.com/belal123-hub/moneymate-app/blob/main/data/src/main/java/com/example/data/offline/OfflineSyncOrchestrator.kt): `data/src/main/java/com/example/data/offline/OfflineSyncOrchestrator.kt`
- [Background sync worker](https://github.com/belal123-hub/moneymate-app/blob/main/app/src/main/java/com/example/moneymate/work/SyncWorker.kt): `app/src/main/java/com/example/moneymate/work/SyncWorker.kt`

### Other components

- **User**
- **Remote service**

## Connections

- User → Activity entry: opens
- Activity entry → App navigation: starts
- App navigation → Home dashboard: routes to
- App navigation → Transactions: routes to
- App navigation → Add transaction: routes to
- App navigation → Wallet management: routes to
- App navigation → Goals and budgets: routes to
- App navigation → Sign-in and signup: routes to
- App navigation → Profile editing: routes to
- App navigation → Settings: routes to
- Transactions → Spending analytics: presents
- Home dashboard → Remote repositories: loads data
- Add transaction → Remote repositories: submits data
- Wallet management → Remote repositories: loads data
- Goals and budgets → Remote repositories: loads data
- Remote repositories → Finance API clients: calls
- Finance API clients → Remote service: requests
- Remote repositories → Local database: persists locally
- Background sync worker → Offline sync: runs sync
- Offline sync → Local database: reads and writes
- Offline sync → Remote service: synchronizes
