# murihat/starterkit_mrh architecture

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

- Interactive diagram: https://gitdiagram.com/murihat/starterkit_mrh
- Repository: https://github.com/murihat/starterkit_mrh

## Overview

Starterkit MRH is a Flutter Material 3 app foundation, not a completed backend product. Its main runtime path is bootstrap → global providers and app shell → router → splash, then Home; Home and Account share bottom navigation. Separate UI routes cover login/signup and maintenance, but the README says authentication and feature-specific backend flows are not implemented. The graph reflects documented composition and shared capabilities; source excerpts mainly cover native runners, so internal Dart call details are based on README statements rather than inspected Dart code.

Main entry points: [`lib/app/routes/app_router.dart`](https://github.com/murihat/starterkit_mrh/blob/main/lib/app/routes/app_router.dart) (App router), [`lib/app/bootstrap.dart`](https://github.com/murihat/starterkit_mrh/blob/main/lib/app/bootstrap.dart) (Bootstrap), [`lib/app/app.dart`](https://github.com/murihat/starterkit_mrh/blob/main/lib/app/app.dart) (App shell), [`lib/main.dart`](https://github.com/murihat/starterkit_mrh/blob/main/lib/main.dart) (Dart entry)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app_composition["App composition"]
  node_entry["Dart entry<br/>[main.dart]"]
  node_bootstrap["Bootstrap<br/>[bootstrap.dart]"]
  node_config["App config<br/>[app_config.dart]"]
  node_injection["Dependency injection<br/>[injection.dart]"]
  node_providers["Global providers<br/>[app_providers.dart]"]
  node_app["App shell<br/>[app.dart]"]
  node_router["App router<br/>[app_router.dart]"]
end

subgraph group_user_interface["User interface"]
  node_splash["Splash screen<br/>[splash_screen.dart]"]
  node_home["Home screen<br/>[home_screen.dart]"]
  node_navigation["Main navigation"]
  node_account["Account screen"]
  node_login["Login screen<br/>[login_screen.dart]"]
  node_signup["Signup screen<br/>[signup_screen.dart]"]
  node_maintenance["Maintenance screen"]
end

subgraph group_shared_state["Shared state"]
  node_connectivity_wrapper["Connectivity wrapper"]
  node_security_wrapper["Security wrapper"]
  node_global_state["Global state"]
  node_theme_locale["Theme and locale<br/>[theme_cubit.dart]"]
end

subgraph group_shared_services["Shared services"]
  node_storage[("Secure storage")]
  node_device_service["Device services"]
  node_api_client["HTTP client<br/>[api_client.dart]"]
end

node_user(("App user"))
node_backend{{"Backend API"}}

node_user -->|"launches"| node_entry
node_entry -->|"calls"| node_bootstrap
node_bootstrap -->|"loads environment"| node_config
node_bootstrap -->|"registers dependencies"| node_injection
node_bootstrap -->|"starts providers"| node_providers
node_providers -->|"creates state"| node_global_state
node_providers -->|"uses services"| node_injection
node_entry -->|"runs"| node_app
node_app -->|"installs routing"| node_router
node_app -->|"wraps content"| node_connectivity_wrapper
node_app -->|"wraps content"| node_security_wrapper
node_router -->|"opens"| node_splash
node_splash -->|"redirects after delay"| node_home
node_router -->|"routes to"| node_login
node_router -->|"routes to"| node_signup
node_router -->|"routes to"| node_maintenance
node_router -->|"hosts branches"| node_navigation
node_navigation -->|"shows branch"| node_home
node_navigation -->|"shows branch"| node_account
node_connectivity_wrapper -->|"reads connection state"| node_global_state
node_security_wrapper -->|"reads security state"| node_global_state
node_theme_locale -->|"loads preferences"| node_storage
node_theme_locale -->|"persists preferences"| node_storage
node_device_service -->|"persists device ID"| node_storage
node_api_client -->|"sends HTTP requests"| node_backend

click node_entry "https://github.com/murihat/starterkit_mrh/blob/main/lib/main.dart"
click node_bootstrap "https://github.com/murihat/starterkit_mrh/blob/main/lib/app/bootstrap.dart"
click node_config "https://github.com/murihat/starterkit_mrh/blob/main/lib/app/config/app_config.dart"
click node_injection "https://github.com/murihat/starterkit_mrh/blob/main/lib/app/di/injection.dart"
click node_providers "https://github.com/murihat/starterkit_mrh/blob/main/lib/app/providers/app_providers.dart"
click node_app "https://github.com/murihat/starterkit_mrh/blob/main/lib/app/app.dart"
click node_router "https://github.com/murihat/starterkit_mrh/blob/main/lib/app/routes/app_router.dart"
click node_splash "https://github.com/murihat/starterkit_mrh/blob/main/lib/features/splash/presentation/screens/splash_screen.dart"
click node_home "https://github.com/murihat/starterkit_mrh/blob/main/lib/features/home/presentation/screens/home_screen.dart"
click node_navigation "https://github.com/murihat/starterkit_mrh/blob/main/lib/features/main_navigation/presentation/screens/main_navigation_screen.dart"
click node_account "https://github.com/murihat/starterkit_mrh/blob/main/lib/features/account/presentation/screens/account_screen.dart"
click node_login "https://github.com/murihat/starterkit_mrh/blob/main/lib/features/login/presentation/screens/login_screen.dart"
click node_signup "https://github.com/murihat/starterkit_mrh/blob/main/lib/features/signup/presentation/screens/signup_screen.dart"
click node_maintenance "https://github.com/murihat/starterkit_mrh/blob/main/lib/features/maintenance/presentation/screens/maintenance_screen.dart"
click node_connectivity_wrapper "https://github.com/murihat/starterkit_mrh/blob/main/lib/core/wrappers/connectivity/presentation/screens/connectivity_screen.dart"
click node_security_wrapper "https://github.com/murihat/starterkit_mrh/blob/main/lib/core/wrappers/security/presentation/screens/security_screen.dart"
click node_global_state "https://github.com/murihat/starterkit_mrh/tree/main/lib/core/states"
click node_theme_locale "https://github.com/murihat/starterkit_mrh/blob/main/lib/core/states/theme/theme_cubit.dart"
click node_storage "https://github.com/murihat/starterkit_mrh/blob/main/lib/core/services/storage/storage_service.dart"
click node_device_service "https://github.com/murihat/starterkit_mrh/blob/main/lib/core/services/device/device_service.dart"
click node_api_client "https://github.com/murihat/starterkit_mrh/blob/main/lib/core/network/api_client.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_entry,node_bootstrap,node_config,node_injection,node_providers,node_app,node_router,node_user toneBlue
class node_splash,node_home,node_navigation,node_account,node_login,node_signup,node_maintenance toneAmber
class node_connectivity_wrapper,node_security_wrapper,node_global_state,node_theme_locale,node_backend toneMint
class node_storage,node_device_service,node_api_client toneRose
```

## Components

### App composition

- [Dart entry](https://github.com/murihat/starterkit_mrh/blob/main/lib/main.dart): `lib/main.dart`
- [Bootstrap](https://github.com/murihat/starterkit_mrh/blob/main/lib/app/bootstrap.dart): `lib/app/bootstrap.dart`
- [App config](https://github.com/murihat/starterkit_mrh/blob/main/lib/app/config/app_config.dart): `lib/app/config/app_config.dart`
- [Dependency injection](https://github.com/murihat/starterkit_mrh/blob/main/lib/app/di/injection.dart): `lib/app/di/injection.dart`
- [Global providers](https://github.com/murihat/starterkit_mrh/blob/main/lib/app/providers/app_providers.dart): `lib/app/providers/app_providers.dart`
- [App shell](https://github.com/murihat/starterkit_mrh/blob/main/lib/app/app.dart): `lib/app/app.dart`
- [App router](https://github.com/murihat/starterkit_mrh/blob/main/lib/app/routes/app_router.dart): `lib/app/routes/app_router.dart`

### User interface

- [Splash screen](https://github.com/murihat/starterkit_mrh/blob/main/lib/features/splash/presentation/screens/splash_screen.dart): `lib/features/splash/presentation/screens/splash_screen.dart`
- [Home screen](https://github.com/murihat/starterkit_mrh/blob/main/lib/features/home/presentation/screens/home_screen.dart): `lib/features/home/presentation/screens/home_screen.dart`
- [Main navigation](https://github.com/murihat/starterkit_mrh/blob/main/lib/features/main_navigation/presentation/screens/main_navigation_screen.dart): `lib/features/main_navigation/presentation/screens/main_navigation_screen.dart`
- [Account screen](https://github.com/murihat/starterkit_mrh/blob/main/lib/features/account/presentation/screens/account_screen.dart): `lib/features/account/presentation/screens/account_screen.dart`
- [Login screen](https://github.com/murihat/starterkit_mrh/blob/main/lib/features/login/presentation/screens/login_screen.dart): `lib/features/login/presentation/screens/login_screen.dart`
- [Signup screen](https://github.com/murihat/starterkit_mrh/blob/main/lib/features/signup/presentation/screens/signup_screen.dart): `lib/features/signup/presentation/screens/signup_screen.dart`
- [Maintenance screen](https://github.com/murihat/starterkit_mrh/blob/main/lib/features/maintenance/presentation/screens/maintenance_screen.dart): `lib/features/maintenance/presentation/screens/maintenance_screen.dart`

### Shared state

- [Connectivity wrapper](https://github.com/murihat/starterkit_mrh/blob/main/lib/core/wrappers/connectivity/presentation/screens/connectivity_screen.dart): `lib/core/wrappers/connectivity/presentation/screens/connectivity_screen.dart`
- [Security wrapper](https://github.com/murihat/starterkit_mrh/blob/main/lib/core/wrappers/security/presentation/screens/security_screen.dart): `lib/core/wrappers/security/presentation/screens/security_screen.dart`
- [Global state](https://github.com/murihat/starterkit_mrh/tree/main/lib/core/states): `lib/core/states`
- [Theme and locale](https://github.com/murihat/starterkit_mrh/blob/main/lib/core/states/theme/theme_cubit.dart): `lib/core/states/theme/theme_cubit.dart`

### Shared services

- [Secure storage](https://github.com/murihat/starterkit_mrh/blob/main/lib/core/services/storage/storage_service.dart): `lib/core/services/storage/storage_service.dart`
- [Device services](https://github.com/murihat/starterkit_mrh/blob/main/lib/core/services/device/device_service.dart): `lib/core/services/device/device_service.dart`
- [HTTP client](https://github.com/murihat/starterkit_mrh/blob/main/lib/core/network/api_client.dart): `lib/core/network/api_client.dart`

### Other components

- **App user**
- **Backend API**

## Connections

- App user → Dart entry: launches (evidence: `README.md`)
- Dart entry → Bootstrap: calls (evidence: `README.md`)
- Bootstrap → App config: loads environment (evidence: `README.md`)
- Bootstrap → Dependency injection: registers dependencies (evidence: `README.md`)
- Bootstrap → Global providers: starts providers (evidence: `README.md`)
- Global providers → Global state: creates state (evidence: `README.md`)
- Global providers → Dependency injection: uses services (evidence: `README.md`)
- Dart entry → App shell: runs (evidence: `README.md`)
- App shell → App router: installs routing (evidence: `README.md`)
- App shell → Connectivity wrapper: wraps content (evidence: `README.md`)
- App shell → Security wrapper: wraps content (evidence: `README.md`)
- App router → Splash screen: opens (evidence: `README.md`)
- Splash screen → Home screen: redirects after delay (evidence: `README.md`)
- App router → Login screen: routes to (evidence: `README.md`)
- App router → Signup screen: routes to (evidence: `README.md`)
- App router → Maintenance screen: routes to (evidence: `README.md`)
- App router → Main navigation: hosts branches (evidence: `README.md`)
- Main navigation → Home screen: shows branch (evidence: `README.md`)
- Main navigation → Account screen: shows branch (evidence: `README.md`)
- Connectivity wrapper → Global state: reads connection state (evidence: `README.md`)
- Security wrapper → Global state: reads security state (evidence: `README.md`)
- Theme and locale → Secure storage: loads preferences (evidence: `README.md`)
- Theme and locale → Secure storage: persists preferences (evidence: `README.md`)
- Device services → Secure storage: persists device ID (evidence: `README.md`)
- HTTP client → Backend API: sends HTTP requests (evidence: `README.md`)
