# sivachanmaargaai/coinquest_v2 architecture

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

- Interactive diagram: https://gitdiagram.com/sivachanmaargaai/coinquest_v2
- Repository: https://github.com/sivachanmaargaai/coinquest_v2

## Overview

CoinQuest is structured as a Flutter financial-learning app. The feature tree suggests a user journey from onboarding and age selection into budgeting and expense tracking, with lessons, quests, and progress views supporting continued engagement; parent and reporting features provide oversight. Shared routing, API, storage, and personalization services form a supporting layer. The README is only Flutter boilerplate, and no Dart implementation excerpts were supplied, so feature relationships are shown as unverified rather than asserted calls. The Windows runner’s hosting relationships are supported by excerpts.

Main entry points: [`lib/features/home/presentation/pages/home_page.dart`](https://github.com/sivachanmaargaai/coinquest_v2/blob/main/lib/features/home/presentation/pages/home_page.dart) (Home dashboard), [`lib/features/onboarding/presentation/pages/onboarding_page.dart`](https://github.com/sivachanmaargaai/coinquest_v2/blob/main/lib/features/onboarding/presentation/pages/onboarding_page.dart) (Onboarding), [`lib/features/learn/presentation/pages/learn_page.dart`](https://github.com/sivachanmaargaai/coinquest_v2/blob/main/lib/features/learn/presentation/pages/learn_page.dart) (Financial lessons), [`lib/app.dart`](https://github.com/sivachanmaargaai/coinquest_v2/blob/main/lib/app.dart) (Flutter app)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Onboarding and access"]
  node_auth["Authentication<br/>[auth_page.dart]"]
  node_onboarding["Onboarding"]
  node_age["Age selection"]
end

subgraph group_finance["Money management"]
  node_home["Home dashboard<br/>[home_page.dart]"]
  node_budget["Budget and goals<br/>[budget_page.dart]"]
  node_expenses["Expense tracking<br/>[expense_page.dart]"]
  node_savings["Savings"]
  node_money["Money overview<br/>[money_page.dart]"]
end

subgraph group_learning["Learning and rewards"]
  node_learning["Financial lessons<br/>[learn_page.dart]"]
  node_quiz["Quizzes"]
  node_challenges["Challenges and quests"]
  node_chat["AI chat<br/>[ai_chat_page.dart]"]
end

subgraph group_insight["Progress and oversight"]
  node_profile["Profile and rewards<br/>[profile_page.dart]"]
  node_leaderboard["Leaderboard"]
  node_reports["Monthly report"]
  node_parent["Parent dashboard"]
end

subgraph group_shared["Shared app layer"]
  node_app["Flutter app<br/>[app.dart]"]
  node_routing["App routing<br/>[app_router.dart]"]
  node_api["API service<br/>[api_service.dart]"]
  node_storage[("Local storage")]
  node_personalization["Personalization"]
  node_winmain["Windows entry<br/>[main.cpp]"]
  node_flutterwindow["Flutter window<br/>[flutter_window.cpp]"]
  node_winwindow["Win32 window<br/>[win32_window.cpp]"]
end

node_user(("User"))

node_user -.->|"opens"| node_app
node_app -.->|"uses routes"| node_routing
node_routing -.->|"routes to"| node_auth
node_routing -.->|"routes to"| node_onboarding
node_onboarding -.->|"continues to"| node_age
node_age -.->|"continues to"| node_home
node_home -.->|"opens"| node_budget
node_home -.->|"opens"| node_expenses
node_home -.->|"opens"| node_savings
node_home -.->|"opens"| node_money
node_home -.->|"opens"| node_learning
node_learning -.->|"offers"| node_quiz
node_learning -.->|"offers"| node_challenges
node_user -.->|"asks"| node_chat
node_user -.->|"views progress"| node_profile
node_user -.->|"views rankings"| node_leaderboard
node_user -.->|"views report"| node_reports
node_user -.->|"views oversight"| node_parent
node_budget -.->|"uses data service"| node_api
node_expenses -.->|"uses data service"| node_api
node_onboarding -.->|"personalizes"| node_personalization
node_app -.->|"uses storage"| node_storage
node_winmain -->|"creates"| node_flutterwindow
node_winmain -.->|"configures"| node_winwindow
node_flutterwindow -->|"inherits from"| node_winwindow

click node_app "https://github.com/sivachanmaargaai/coinquest_v2/blob/main/lib/app.dart"
click node_routing "https://github.com/sivachanmaargaai/coinquest_v2/blob/main/lib/core/router/app_router.dart"
click node_api "https://github.com/sivachanmaargaai/coinquest_v2/blob/main/lib/core/services/api_service.dart"
click node_storage "https://github.com/sivachanmaargaai/coinquest_v2/blob/main/lib/core/services/local_storage_service.dart"
click node_personalization "https://github.com/sivachanmaargaai/coinquest_v2/blob/main/lib/core/services/personalization_service.dart"
click node_auth "https://github.com/sivachanmaargaai/coinquest_v2/blob/main/lib/features/auth/presentation/pages/auth_page.dart"
click node_onboarding "https://github.com/sivachanmaargaai/coinquest_v2/blob/main/lib/features/onboarding/presentation/pages/onboarding_page.dart"
click node_age "https://github.com/sivachanmaargaai/coinquest_v2/blob/main/lib/features/age_selection/presentation/pages/age_selection_page.dart"
click node_home "https://github.com/sivachanmaargaai/coinquest_v2/blob/main/lib/features/home/presentation/pages/home_page.dart"
click node_budget "https://github.com/sivachanmaargaai/coinquest_v2/blob/main/lib/features/budget/presentation/pages/budget_page.dart"
click node_expenses "https://github.com/sivachanmaargaai/coinquest_v2/blob/main/lib/features/expense/presentation/pages/expense_page.dart"
click node_savings "https://github.com/sivachanmaargaai/coinquest_v2/tree/main/lib/features/savings"
click node_money "https://github.com/sivachanmaargaai/coinquest_v2/blob/main/lib/features/money/presentation/pages/money_page.dart"
click node_learning "https://github.com/sivachanmaargaai/coinquest_v2/blob/main/lib/features/learn/presentation/pages/learn_page.dart"
click node_quiz "https://github.com/sivachanmaargaai/coinquest_v2/tree/main/lib/features/quiz"
click node_challenges "https://github.com/sivachanmaargaai/coinquest_v2/blob/main/lib/features/challenges/presentation/pages/challenges_page.dart"
click node_chat "https://github.com/sivachanmaargaai/coinquest_v2/blob/main/lib/features/ai_chat/presentation/pages/ai_chat_page.dart"
click node_profile "https://github.com/sivachanmaargaai/coinquest_v2/blob/main/lib/features/profile/presentation/pages/profile_page.dart"
click node_leaderboard "https://github.com/sivachanmaargaai/coinquest_v2/blob/main/lib/features/leaderboard/presentation/pages/leaderboard_page.dart"
click node_reports "https://github.com/sivachanmaargaai/coinquest_v2/blob/main/lib/features/monthly_report/presentation/pages/monthly_report_page.dart"
click node_parent "https://github.com/sivachanmaargaai/coinquest_v2/blob/main/lib/features/parent_dashboard/presentation/pages/parent_dashboard_page.dart"
click node_winmain "https://github.com/sivachanmaargaai/coinquest_v2/blob/main/windows/runner/main.cpp"
click node_flutterwindow "https://github.com/sivachanmaargaai/coinquest_v2/blob/main/windows/runner/flutter_window.cpp"
click node_winwindow "https://github.com/sivachanmaargaai/coinquest_v2/blob/main/windows/runner/win32_window.cpp"

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_auth,node_onboarding,node_age,node_user toneBlue
class node_home,node_budget,node_expenses,node_savings,node_money toneAmber
class node_learning,node_quiz,node_challenges,node_chat toneMint
class node_profile,node_leaderboard,node_reports,node_parent toneRose
class node_app,node_routing,node_api,node_storage,node_personalization,node_winmain,node_flutterwindow,node_winwindow toneIndigo
```

## Components

### Onboarding and access

- [Authentication](https://github.com/sivachanmaargaai/coinquest_v2/blob/main/lib/features/auth/presentation/pages/auth_page.dart): `lib/features/auth/presentation/pages/auth_page.dart`
- [Onboarding](https://github.com/sivachanmaargaai/coinquest_v2/blob/main/lib/features/onboarding/presentation/pages/onboarding_page.dart): `lib/features/onboarding/presentation/pages/onboarding_page.dart`
- [Age selection](https://github.com/sivachanmaargaai/coinquest_v2/blob/main/lib/features/age_selection/presentation/pages/age_selection_page.dart): `lib/features/age_selection/presentation/pages/age_selection_page.dart`

### Money management

- [Home dashboard](https://github.com/sivachanmaargaai/coinquest_v2/blob/main/lib/features/home/presentation/pages/home_page.dart): `lib/features/home/presentation/pages/home_page.dart`
- [Budget and goals](https://github.com/sivachanmaargaai/coinquest_v2/blob/main/lib/features/budget/presentation/pages/budget_page.dart): `lib/features/budget/presentation/pages/budget_page.dart`
- [Expense tracking](https://github.com/sivachanmaargaai/coinquest_v2/blob/main/lib/features/expense/presentation/pages/expense_page.dart): `lib/features/expense/presentation/pages/expense_page.dart`
- [Savings](https://github.com/sivachanmaargaai/coinquest_v2/tree/main/lib/features/savings): `lib/features/savings`
- [Money overview](https://github.com/sivachanmaargaai/coinquest_v2/blob/main/lib/features/money/presentation/pages/money_page.dart): `lib/features/money/presentation/pages/money_page.dart`

### Learning and rewards

- [Financial lessons](https://github.com/sivachanmaargaai/coinquest_v2/blob/main/lib/features/learn/presentation/pages/learn_page.dart): `lib/features/learn/presentation/pages/learn_page.dart`
- [Quizzes](https://github.com/sivachanmaargaai/coinquest_v2/tree/main/lib/features/quiz): `lib/features/quiz`
- [Challenges and quests](https://github.com/sivachanmaargaai/coinquest_v2/blob/main/lib/features/challenges/presentation/pages/challenges_page.dart): `lib/features/challenges/presentation/pages/challenges_page.dart`
- [AI chat](https://github.com/sivachanmaargaai/coinquest_v2/blob/main/lib/features/ai_chat/presentation/pages/ai_chat_page.dart): `lib/features/ai_chat/presentation/pages/ai_chat_page.dart`

### Progress and oversight

- [Profile and rewards](https://github.com/sivachanmaargaai/coinquest_v2/blob/main/lib/features/profile/presentation/pages/profile_page.dart): `lib/features/profile/presentation/pages/profile_page.dart`
- [Leaderboard](https://github.com/sivachanmaargaai/coinquest_v2/blob/main/lib/features/leaderboard/presentation/pages/leaderboard_page.dart): `lib/features/leaderboard/presentation/pages/leaderboard_page.dart`
- [Monthly report](https://github.com/sivachanmaargaai/coinquest_v2/blob/main/lib/features/monthly_report/presentation/pages/monthly_report_page.dart): `lib/features/monthly_report/presentation/pages/monthly_report_page.dart`
- [Parent dashboard](https://github.com/sivachanmaargaai/coinquest_v2/blob/main/lib/features/parent_dashboard/presentation/pages/parent_dashboard_page.dart): `lib/features/parent_dashboard/presentation/pages/parent_dashboard_page.dart`

### Shared app layer

- [Flutter app](https://github.com/sivachanmaargaai/coinquest_v2/blob/main/lib/app.dart): `lib/app.dart`
- [App routing](https://github.com/sivachanmaargaai/coinquest_v2/blob/main/lib/core/router/app_router.dart): `lib/core/router/app_router.dart`
- [API service](https://github.com/sivachanmaargaai/coinquest_v2/blob/main/lib/core/services/api_service.dart): `lib/core/services/api_service.dart`
- [Local storage](https://github.com/sivachanmaargaai/coinquest_v2/blob/main/lib/core/services/local_storage_service.dart): `lib/core/services/local_storage_service.dart`
- [Personalization](https://github.com/sivachanmaargaai/coinquest_v2/blob/main/lib/core/services/personalization_service.dart): `lib/core/services/personalization_service.dart`
- [Windows entry](https://github.com/sivachanmaargaai/coinquest_v2/blob/main/windows/runner/main.cpp): `windows/runner/main.cpp`
- [Flutter window](https://github.com/sivachanmaargaai/coinquest_v2/blob/main/windows/runner/flutter_window.cpp): `windows/runner/flutter_window.cpp`
- [Win32 window](https://github.com/sivachanmaargaai/coinquest_v2/blob/main/windows/runner/win32_window.cpp): `windows/runner/win32_window.cpp`

### Other components

- **User**

## Connections

- User → Flutter app: opens
- Flutter app → App routing: uses routes
- App routing → Authentication: routes to
- App routing → Onboarding: routes to
- Onboarding → Age selection: continues to
- Age selection → Home dashboard: continues to
- Home dashboard → Budget and goals: opens
- Home dashboard → Expense tracking: opens
- Home dashboard → Savings: opens
- Home dashboard → Money overview: opens
- Home dashboard → Financial lessons: opens
- Financial lessons → Quizzes: offers
- Financial lessons → Challenges and quests: offers
- User → AI chat: asks
- User → Profile and rewards: views progress
- User → Leaderboard: views rankings
- User → Monthly report: views report
- User → Parent dashboard: views oversight
- Budget and goals → API service: uses data service
- Expense tracking → API service: uses data service
- Onboarding → Personalization: personalizes
- Flutter app → Local storage: uses storage
- Windows entry → Flutter window: creates (evidence: `windows/runner/main.cpp`)
- Windows entry → Win32 window: configures
- Flutter window → Win32 window: inherits from
