# s-r-enterprises/nepal_heritage_app architecture

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

- Interactive diagram: https://gitdiagram.com/s-r-enterprises/nepal_heritage_app
- Repository: https://github.com/s-r-enterprises/nepal_heritage_app

## Overview

The tree identifies a Flutter app named nepal_np, with Nepal-themed screens for heritage, festivals, travel gems, tickets, chat, and user accounts. The likely user experience is browsing travel content and using related planning and account features, but the README describes only a starter project and no Dart source was provided. Accordingly, the graph maps the visible app domains and sampled native launch scaffolding without asserting an unverified screen flow or service wiring.

Main entry points: [`windows/runner/flutter_window.h`](https://github.com/s-r-enterprises/nepal_heritage_app/blob/main/windows/runner/flutter_window.h) (Flutter window), [`windows/runner/main.cpp`](https://github.com/s-r-enterprises/nepal_heritage_app/blob/main/windows/runner/main.cpp) (Windows entry), [`linux/runner/main.cc`](https://github.com/s-r-enterprises/nepal_heritage_app/blob/main/linux/runner/main.cc) (Linux entry), [`windows/runner/win32_window.cpp`](https://github.com/s-r-enterprises/nepal_heritage_app/blob/main/windows/runner/win32_window.cpp) (Win32 window)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["App experience"]
  node_bootstrap["App bootstrap<br/>[main.dart]"]
  node_routing["App navigation<br/>[app_router.dart]"]
  node_onboarding["Onboarding"]
  node_auth["Account access<br/>[auth_service.dart]"]
  node_login["Login and registration<br/>[login_screen.dart]"]
  node_profile["User profile"]
end

subgraph group_content["Nepal content"]
  node_home["Travel home<br/>[home_screen.dart]"]
  node_calendar["Festival calendar"]
  node_festival["Festival details"]
  node_heritage["Heritage details"]
  node_gems["Hidden gems"]
  node_gem_detail["Gem details"]
  node_gem_submit["Gem submissions"]
  node_guide["Guide profiles"]
  node_booking["Ticket booking"]
  node_confirmation["Ticket confirmation"]
  node_wallet["QR wallet"]
  node_chat["Travel chatbot"]
  node_chat_service["Chat service<br/>[chat_service.dart]"]
  node_models["Domain models<br/>[models.dart]"]
  node_country_data["Country data<br/>[country_data.dart]"]
  node_language_data["Language data<br/>[language_data.dart]"]
end

subgraph group_platform["Platform hosts"]
  node_windows_entry["Windows entry<br/>[main.cpp]"]
  node_flutter_window["Flutter window<br/>[flutter_window.h]"]
  node_win32_window["Win32 window<br/>[win32_window.cpp]"]
  node_linux_entry["Linux entry<br/>[main.cc]"]
  node_linux_app["Linux application<br/>[my_application.h]"]
  node_linux_plugins["Linux plugin registry"]
  node_windows_plugins["Windows plugin registry"]
  node_mac_plugins["macOS plugin registry"]
end

node_traveler(("App user"))

node_windows_entry -->|"creates"| node_flutter_window
node_flutter_window -->|"extends"| node_win32_window
node_linux_entry -->|"creates"| node_linux_app

click node_bootstrap "https://github.com/s-r-enterprises/nepal_heritage_app/blob/main/lib/main.dart"
click node_routing "https://github.com/s-r-enterprises/nepal_heritage_app/blob/main/lib/navigation/app_router.dart"
click node_onboarding "https://github.com/s-r-enterprises/nepal_heritage_app/blob/main/lib/screens/onboarding_screen.dart"
click node_auth "https://github.com/s-r-enterprises/nepal_heritage_app/blob/main/lib/data/auth_service.dart"
click node_login "https://github.com/s-r-enterprises/nepal_heritage_app/blob/main/lib/screens/login_screen.dart"
click node_profile "https://github.com/s-r-enterprises/nepal_heritage_app/blob/main/lib/screens/profile_screen.dart"
click node_home "https://github.com/s-r-enterprises/nepal_heritage_app/blob/main/lib/screens/home_screen.dart"
click node_calendar "https://github.com/s-r-enterprises/nepal_heritage_app/blob/main/lib/screens/calendar_screen.dart"
click node_festival "https://github.com/s-r-enterprises/nepal_heritage_app/blob/main/lib/screens/festival_detail_screen.dart"
click node_heritage "https://github.com/s-r-enterprises/nepal_heritage_app/blob/main/lib/screens/heritage_detail_screen.dart"
click node_gems "https://github.com/s-r-enterprises/nepal_heritage_app/blob/main/lib/screens/hidden_gems_screen.dart"
click node_gem_detail "https://github.com/s-r-enterprises/nepal_heritage_app/blob/main/lib/screens/hidden_gem_detail_screen.dart"
click node_gem_submit "https://github.com/s-r-enterprises/nepal_heritage_app/blob/main/lib/screens/submit_gem_screen.dart"
click node_guide "https://github.com/s-r-enterprises/nepal_heritage_app/blob/main/lib/screens/guide_profile_screen.dart"
click node_booking "https://github.com/s-r-enterprises/nepal_heritage_app/blob/main/lib/screens/ticket_booking_screen.dart"
click node_confirmation "https://github.com/s-r-enterprises/nepal_heritage_app/blob/main/lib/screens/ticket_confirm_screen.dart"
click node_wallet "https://github.com/s-r-enterprises/nepal_heritage_app/blob/main/lib/screens/qr_wallet_screen.dart"
click node_chat "https://github.com/s-r-enterprises/nepal_heritage_app/blob/main/lib/screens/chatbot_screen.dart"
click node_chat_service "https://github.com/s-r-enterprises/nepal_heritage_app/blob/main/lib/data/chat_service.dart"
click node_models "https://github.com/s-r-enterprises/nepal_heritage_app/blob/main/lib/data/models.dart"
click node_country_data "https://github.com/s-r-enterprises/nepal_heritage_app/blob/main/lib/data/country_data.dart"
click node_language_data "https://github.com/s-r-enterprises/nepal_heritage_app/blob/main/lib/data/language_data.dart"
click node_windows_entry "https://github.com/s-r-enterprises/nepal_heritage_app/blob/main/windows/runner/main.cpp"
click node_flutter_window "https://github.com/s-r-enterprises/nepal_heritage_app/blob/main/windows/runner/flutter_window.h"
click node_win32_window "https://github.com/s-r-enterprises/nepal_heritage_app/blob/main/windows/runner/win32_window.cpp"
click node_linux_entry "https://github.com/s-r-enterprises/nepal_heritage_app/blob/main/linux/runner/main.cc"
click node_linux_app "https://github.com/s-r-enterprises/nepal_heritage_app/blob/main/linux/runner/my_application.h"
click node_linux_plugins "https://github.com/s-r-enterprises/nepal_heritage_app/blob/main/linux/flutter/generated_plugin_registrant.h"
click node_windows_plugins "https://github.com/s-r-enterprises/nepal_heritage_app/blob/main/windows/flutter/generated_plugin_registrant.h"
click node_mac_plugins "https://github.com/s-r-enterprises/nepal_heritage_app/blob/main/macos/Flutter/GeneratedPluginRegistrant.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_bootstrap,node_routing,node_onboarding,node_auth,node_login,node_profile,node_traveler toneBlue
class node_home,node_calendar,node_festival,node_heritage,node_gems,node_gem_detail,node_gem_submit,node_guide,node_booking,node_confirmation,node_wallet,node_chat,node_chat_service,node_models,node_country_data,node_language_data toneAmber
class node_windows_entry,node_flutter_window,node_win32_window,node_linux_entry,node_linux_app,node_linux_plugins,node_windows_plugins,node_mac_plugins toneMint
```

## Components

### App experience

- [App bootstrap](https://github.com/s-r-enterprises/nepal_heritage_app/blob/main/lib/main.dart): `lib/main.dart`
- [App navigation](https://github.com/s-r-enterprises/nepal_heritage_app/blob/main/lib/navigation/app_router.dart): `lib/navigation/app_router.dart`
- [Onboarding](https://github.com/s-r-enterprises/nepal_heritage_app/blob/main/lib/screens/onboarding_screen.dart): `lib/screens/onboarding_screen.dart`
- [Account access](https://github.com/s-r-enterprises/nepal_heritage_app/blob/main/lib/data/auth_service.dart): `lib/data/auth_service.dart`
- [Login and registration](https://github.com/s-r-enterprises/nepal_heritage_app/blob/main/lib/screens/login_screen.dart): `lib/screens/login_screen.dart`
- [User profile](https://github.com/s-r-enterprises/nepal_heritage_app/blob/main/lib/screens/profile_screen.dart): `lib/screens/profile_screen.dart`

### Nepal content

- [Travel home](https://github.com/s-r-enterprises/nepal_heritage_app/blob/main/lib/screens/home_screen.dart): `lib/screens/home_screen.dart`
- [Festival calendar](https://github.com/s-r-enterprises/nepal_heritage_app/blob/main/lib/screens/calendar_screen.dart): `lib/screens/calendar_screen.dart`
- [Festival details](https://github.com/s-r-enterprises/nepal_heritage_app/blob/main/lib/screens/festival_detail_screen.dart): `lib/screens/festival_detail_screen.dart`
- [Heritage details](https://github.com/s-r-enterprises/nepal_heritage_app/blob/main/lib/screens/heritage_detail_screen.dart): `lib/screens/heritage_detail_screen.dart`
- [Hidden gems](https://github.com/s-r-enterprises/nepal_heritage_app/blob/main/lib/screens/hidden_gems_screen.dart): `lib/screens/hidden_gems_screen.dart`
- [Gem details](https://github.com/s-r-enterprises/nepal_heritage_app/blob/main/lib/screens/hidden_gem_detail_screen.dart): `lib/screens/hidden_gem_detail_screen.dart`
- [Gem submissions](https://github.com/s-r-enterprises/nepal_heritage_app/blob/main/lib/screens/submit_gem_screen.dart): `lib/screens/submit_gem_screen.dart`
- [Guide profiles](https://github.com/s-r-enterprises/nepal_heritage_app/blob/main/lib/screens/guide_profile_screen.dart): `lib/screens/guide_profile_screen.dart`
- [Ticket booking](https://github.com/s-r-enterprises/nepal_heritage_app/blob/main/lib/screens/ticket_booking_screen.dart): `lib/screens/ticket_booking_screen.dart`
- [Ticket confirmation](https://github.com/s-r-enterprises/nepal_heritage_app/blob/main/lib/screens/ticket_confirm_screen.dart): `lib/screens/ticket_confirm_screen.dart`
- [QR wallet](https://github.com/s-r-enterprises/nepal_heritage_app/blob/main/lib/screens/qr_wallet_screen.dart): `lib/screens/qr_wallet_screen.dart`
- [Travel chatbot](https://github.com/s-r-enterprises/nepal_heritage_app/blob/main/lib/screens/chatbot_screen.dart): `lib/screens/chatbot_screen.dart`
- [Chat service](https://github.com/s-r-enterprises/nepal_heritage_app/blob/main/lib/data/chat_service.dart): `lib/data/chat_service.dart`
- [Domain models](https://github.com/s-r-enterprises/nepal_heritage_app/blob/main/lib/data/models.dart): `lib/data/models.dart`
- [Country data](https://github.com/s-r-enterprises/nepal_heritage_app/blob/main/lib/data/country_data.dart): `lib/data/country_data.dart`
- [Language data](https://github.com/s-r-enterprises/nepal_heritage_app/blob/main/lib/data/language_data.dart): `lib/data/language_data.dart`

### Platform hosts

- [Windows entry](https://github.com/s-r-enterprises/nepal_heritage_app/blob/main/windows/runner/main.cpp): `windows/runner/main.cpp`
- [Flutter window](https://github.com/s-r-enterprises/nepal_heritage_app/blob/main/windows/runner/flutter_window.h): `windows/runner/flutter_window.h`
- [Win32 window](https://github.com/s-r-enterprises/nepal_heritage_app/blob/main/windows/runner/win32_window.cpp): `windows/runner/win32_window.cpp`
- [Linux entry](https://github.com/s-r-enterprises/nepal_heritage_app/blob/main/linux/runner/main.cc): `linux/runner/main.cc`
- [Linux application](https://github.com/s-r-enterprises/nepal_heritage_app/blob/main/linux/runner/my_application.h): `linux/runner/my_application.h`
- [Linux plugin registry](https://github.com/s-r-enterprises/nepal_heritage_app/blob/main/linux/flutter/generated_plugin_registrant.h): `linux/flutter/generated_plugin_registrant.h`
- [Windows plugin registry](https://github.com/s-r-enterprises/nepal_heritage_app/blob/main/windows/flutter/generated_plugin_registrant.h): `windows/flutter/generated_plugin_registrant.h`
- [macOS plugin registry](https://github.com/s-r-enterprises/nepal_heritage_app/blob/main/macos/Flutter/GeneratedPluginRegistrant.swift): `macos/Flutter/GeneratedPluginRegistrant.swift`

### Other components

- **App user**

## Connections

- Windows entry → Flutter window: creates (evidence: `windows/runner/main.cpp`)
- Flutter window → Win32 window: extends (evidence: `windows/runner/flutter_window.h`)
- Linux entry → Linux application: creates (evidence: `linux/runner/main.cc`)
