# sumanraj07/savewise architecture

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

- Interactive diagram: https://gitdiagram.com/sumanraj07/savewise
- Repository: https://github.com/sumanraj07/savewise

## Overview

SaveWise is a Flutter personal-finance app. Its main user journey runs from setup and profile into the dashboard and finance planning, with expenses, bills, budgets, goals, and emergency-fund planning supporting everyday money management. The README also identifies savings challenges, achievements, and automated advice as major capabilities. The source excerpts do not include the Dart runtime implementation, so internal call relationships and storage wiring cannot be verified; feature links are shown as unverified rather than inferred.

Main entry points: [`lib/screens/dashboard_screen.dart`](https://github.com/sumanraj07/savewise/blob/main/lib/screens/dashboard_screen.dart) (Dashboard), [`lib/screens/main_shell.dart`](https://github.com/sumanraj07/savewise/blob/main/lib/screens/main_shell.dart) (Main navigation), [`lib/state/app_state.dart`](https://github.com/sumanraj07/savewise/blob/main/lib/state/app_state.dart) (App state), [`lib/screens/setup_screen.dart`](https://github.com/sumanraj07/savewise/blob/main/lib/screens/setup_screen.dart) (Setup)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["App experience"]
  node_setup["Setup<br/>[setup_screen.dart]"]
  node_profile["Profile"]
  node_shell["Main navigation<br/>[main_shell.dart]"]
  node_dashboard["Dashboard"]
  node_app_entry["Flutter entry<br/>[main.dart]"]
end

subgraph group_finance["Finance planning"]
  node_expenses["Expense tracking"]
  node_bills["Bill management<br/>[bills_screen.dart]"]
  node_budget["Budget planning<br/>[budget_engine.dart]"]
  node_goals["Goal tracking<br/>[goals_screen.dart]"]
  node_emergency["Emergency fund"]
  node_calculator["Finance calculator"]
end

subgraph group_insights["Insights and engagement"]
  node_reports["Financial reports"]
  node_advisor["Smart advisor"]
  node_challenges["Savings challenges"]
  node_achievements["Achievements"]
end

subgraph group_foundation["App foundation"]
  node_appstate["App state<br/>[app_state.dart]"]
  node_finance_repo["Finance repository"]
  node_local_store[("Local storage<br/>[local_store.dart]")]
  node_domain_engines["Finance engines"]
  node_models["Finance models"]
end

node_user(("User"))

node_user -.->|"starts setup"| node_setup
node_user -.->|"views finances"| node_dashboard
node_user -.->|"manages profile"| node_profile
node_setup -.->|"enters app"| node_shell
node_profile -.->|"returns to"| node_shell
node_shell -.->|"opens"| node_dashboard
node_app_entry -.->|"starts interface"| node_shell
node_shell -.->|"uses state"| node_appstate
node_appstate -.->|"loads finances"| node_finance_repo
node_finance_repo -.->|"reads and writes"| node_local_store
node_appstate -.->|"uses calculations"| node_domain_engines
node_domain_engines -.->|"evaluates data"| node_models
node_dashboard -.->|"opens reports"| node_reports
node_dashboard -.->|"tracks spending"| node_expenses
node_dashboard -.->|"manages payments"| node_bills
node_dashboard -.->|"plans budget"| node_budget
node_dashboard -.->|"tracks goals"| node_goals
node_dashboard -.->|"plans reserve"| node_emergency
node_dashboard -.->|"calculates finances"| node_calculator
node_dashboard -.->|"gets advice"| node_advisor
node_dashboard -.->|"joins challenges"| node_challenges
node_challenges -.->|"unlocks rewards"| node_achievements

click node_setup "https://github.com/sumanraj07/savewise/blob/main/lib/screens/setup_screen.dart"
click node_profile "https://github.com/sumanraj07/savewise/blob/main/lib/screens/profile_screen.dart"
click node_shell "https://github.com/sumanraj07/savewise/blob/main/lib/screens/main_shell.dart"
click node_dashboard "https://github.com/sumanraj07/savewise/blob/main/lib/screens/dashboard_screen.dart"
click node_appstate "https://github.com/sumanraj07/savewise/blob/main/lib/state/app_state.dart"
click node_finance_repo "https://github.com/sumanraj07/savewise/blob/main/lib/data/repositories/finance_repository.dart"
click node_local_store "https://github.com/sumanraj07/savewise/blob/main/lib/data/local/local_store.dart"
click node_expenses "https://github.com/sumanraj07/savewise/blob/main/lib/screens/planner_screen.dart"
click node_bills "https://github.com/sumanraj07/savewise/blob/main/lib/screens/bills_screen.dart"
click node_budget "https://github.com/sumanraj07/savewise/blob/main/lib/domain/engines/budget_engine.dart"
click node_goals "https://github.com/sumanraj07/savewise/blob/main/lib/screens/goals_screen.dart"
click node_emergency "https://github.com/sumanraj07/savewise/blob/main/lib/screens/emergency_screen.dart"
click node_calculator "https://github.com/sumanraj07/savewise/blob/main/lib/screens/calculator_screen.dart"
click node_reports "https://github.com/sumanraj07/savewise/blob/main/lib/screens/reports_screen.dart"
click node_advisor "https://github.com/sumanraj07/savewise/blob/main/lib/screens/advisor_screen.dart"
click node_challenges "https://github.com/sumanraj07/savewise/blob/main/lib/screens/challenges_screen.dart"
click node_achievements "https://github.com/sumanraj07/savewise/blob/main/lib/screens/achievements_screen.dart"
click node_domain_engines "https://github.com/sumanraj07/savewise/tree/main/lib/domain/engines"
click node_models "https://github.com/sumanraj07/savewise/tree/main/lib/data/models"
click node_app_entry "https://github.com/sumanraj07/savewise/blob/main/lib/main.dart"

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_setup,node_profile,node_shell,node_dashboard,node_app_entry,node_user toneBlue
class node_expenses,node_bills,node_budget,node_goals,node_emergency,node_calculator toneAmber
class node_reports,node_advisor,node_challenges,node_achievements toneMint
class node_appstate,node_finance_repo,node_local_store,node_domain_engines,node_models toneRose
```

## Components

### App experience

- [Setup](https://github.com/sumanraj07/savewise/blob/main/lib/screens/setup_screen.dart): `lib/screens/setup_screen.dart`
- [Profile](https://github.com/sumanraj07/savewise/blob/main/lib/screens/profile_screen.dart): `lib/screens/profile_screen.dart`
- [Main navigation](https://github.com/sumanraj07/savewise/blob/main/lib/screens/main_shell.dart): `lib/screens/main_shell.dart`
- [Dashboard](https://github.com/sumanraj07/savewise/blob/main/lib/screens/dashboard_screen.dart): `lib/screens/dashboard_screen.dart`
- [Flutter entry](https://github.com/sumanraj07/savewise/blob/main/lib/main.dart): `lib/main.dart`

### Finance planning

- [Expense tracking](https://github.com/sumanraj07/savewise/blob/main/lib/screens/planner_screen.dart): `lib/screens/planner_screen.dart`
- [Bill management](https://github.com/sumanraj07/savewise/blob/main/lib/screens/bills_screen.dart): `lib/screens/bills_screen.dart`
- [Budget planning](https://github.com/sumanraj07/savewise/blob/main/lib/domain/engines/budget_engine.dart): `lib/domain/engines/budget_engine.dart`
- [Goal tracking](https://github.com/sumanraj07/savewise/blob/main/lib/screens/goals_screen.dart): `lib/screens/goals_screen.dart`
- [Emergency fund](https://github.com/sumanraj07/savewise/blob/main/lib/screens/emergency_screen.dart): `lib/screens/emergency_screen.dart`
- [Finance calculator](https://github.com/sumanraj07/savewise/blob/main/lib/screens/calculator_screen.dart): `lib/screens/calculator_screen.dart`

### Insights and engagement

- [Financial reports](https://github.com/sumanraj07/savewise/blob/main/lib/screens/reports_screen.dart): `lib/screens/reports_screen.dart`
- [Smart advisor](https://github.com/sumanraj07/savewise/blob/main/lib/screens/advisor_screen.dart): `lib/screens/advisor_screen.dart`
- [Savings challenges](https://github.com/sumanraj07/savewise/blob/main/lib/screens/challenges_screen.dart): `lib/screens/challenges_screen.dart`
- [Achievements](https://github.com/sumanraj07/savewise/blob/main/lib/screens/achievements_screen.dart): `lib/screens/achievements_screen.dart`

### App foundation

- [App state](https://github.com/sumanraj07/savewise/blob/main/lib/state/app_state.dart): `lib/state/app_state.dart`
- [Finance repository](https://github.com/sumanraj07/savewise/blob/main/lib/data/repositories/finance_repository.dart): `lib/data/repositories/finance_repository.dart`
- [Local storage](https://github.com/sumanraj07/savewise/blob/main/lib/data/local/local_store.dart): `lib/data/local/local_store.dart`
- [Finance engines](https://github.com/sumanraj07/savewise/tree/main/lib/domain/engines): `lib/domain/engines`
- [Finance models](https://github.com/sumanraj07/savewise/tree/main/lib/data/models): `lib/data/models`

### Other components

- **User**

## Connections

- User → Setup: starts setup (evidence: `README.md`)
- User → Dashboard: views finances (evidence: `README.md`)
- User → Profile: manages profile
- Setup → Main navigation: enters app
- Profile → Main navigation: returns to
- Main navigation → Dashboard: opens
- Flutter entry → Main navigation: starts interface
- Main navigation → App state: uses state
- App state → Finance repository: loads finances
- Finance repository → Local storage: reads and writes
- App state → Finance engines: uses calculations
- Finance engines → Finance models: evaluates data
- Dashboard → Financial reports: opens reports (evidence: `README.md`)
- Dashboard → Expense tracking: tracks spending (evidence: `README.md`)
- Dashboard → Bill management: manages payments (evidence: `README.md`)
- Dashboard → Budget planning: plans budget (evidence: `README.md`)
- Dashboard → Goal tracking: tracks goals (evidence: `README.md`)
- Dashboard → Emergency fund: plans reserve (evidence: `README.md`)
- Dashboard → Finance calculator: calculates finances
- Dashboard → Smart advisor: gets advice (evidence: `README.md`)
- Dashboard → Savings challenges: joins challenges (evidence: `README.md`)
- Savings challenges → Achievements: unlocks rewards (evidence: `README.md`)
