# noblezaandrei/palahi_app architecture

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

- Interactive diagram: https://gitdiagram.com/noblezaandrei/palahi_app
- Repository: https://github.com/noblezaandrei/palahi_app

## Overview

Palahi is a Flutter app whose source tree indicates user accounts, breeder and breeding-request workflows, communication, maps, and profiles. The README only describes a starter Flutter project, and no Dart source was excerpted, so these capabilities come from the tree rather than inspected behavior. The graph preserves those major areas but leaves their runtime relationships unverified. The sampled Windows sources do show the native runner creating a Flutter window hosted by a Win32 window.

Main entry points: [`lib/features/breeder/repositories/breeder_repository.dart`](https://github.com/noblezaandrei/palahi_app/blob/main/lib/features/breeder/repositories/breeder_repository.dart) (Breeder directory), [`lib/features/auth/views/login_screen.dart`](https://github.com/noblezaandrei/palahi_app/blob/main/lib/features/auth/views/login_screen.dart) (Sign-in and setup), [`lib/main.dart`](https://github.com/noblezaandrei/palahi_app/blob/main/lib/main.dart) (App entry), [`lib/core/routes/app_router.dart`](https://github.com/noblezaandrei/palahi_app/blob/main/lib/core/routes/app_router.dart) (App router)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App shell"]
  node_entry["App entry<br/>[main.dart]"]
  node_router["App router<br/>[app_router.dart]"]
end

subgraph group_accounts["Accounts"]
  node_auth["Authentication"]
  node_auth_ui["Sign-in and setup<br/>[login_screen.dart]"]
  node_account_delete["Account deletion"]
  node_profile["Profiles and settings"]
end

subgraph group_breeding["Breeder marketplace"]
  node_breeder_catalog["Breeder directory"]
  node_stud_pigs["Stud pig listings"]
  node_requests["Breeding requests"]
  node_availability["Availability management"]
  node_reviews["Reviews"]
  node_favorites["Favorites"]
  node_trips["Trip history"]
end

subgraph group_engagement["Communication and location"]
  node_chat["Chat"]
  node_notifications["Notifications"]
  node_mapping["Maps and tracking"]
  node_location["Location services"]
end

node_user(("User"))

node_user -.->|"uses"| node_entry
node_entry -.->|"routes"| node_router
node_router -.->|"routes"| node_auth_ui
node_auth_ui -.->|"uses"| node_auth
node_auth_ui -.->|"browses"| node_breeder_catalog
node_breeder_catalog -.->|"shows listings"| node_stud_pigs
node_breeder_catalog -.->|"supports requests"| node_requests
node_requests -.->|"checks availability"| node_availability
node_breeder_catalog -.->|"shows reviews"| node_reviews
node_user -.->|"saves breeders"| node_favorites
node_user -.->|"messages"| node_chat
node_user -.->|"receives updates"| node_notifications
node_user -.->|"views trips"| node_mapping
node_mapping -.->|"uses location"| node_location
node_user -.->|"manages profile"| node_profile
node_user -.->|"requests deletion"| node_account_delete

click node_entry "https://github.com/noblezaandrei/palahi_app/blob/main/lib/main.dart"
click node_router "https://github.com/noblezaandrei/palahi_app/blob/main/lib/core/routes/app_router.dart"
click node_auth "https://github.com/noblezaandrei/palahi_app/blob/main/lib/features/auth/repositories/auth_repository.dart"
click node_auth_ui "https://github.com/noblezaandrei/palahi_app/blob/main/lib/features/auth/views/login_screen.dart"
click node_account_delete "https://github.com/noblezaandrei/palahi_app/blob/main/lib/features/auth/repositories/account_deletion_repository.dart"
click node_breeder_catalog "https://github.com/noblezaandrei/palahi_app/blob/main/lib/features/breeder/repositories/breeder_repository.dart"
click node_stud_pigs "https://github.com/noblezaandrei/palahi_app/blob/main/lib/features/breeder/repositories/stud_pig_repository.dart"
click node_requests "https://github.com/noblezaandrei/palahi_app/blob/main/lib/features/breeder/repositories/breeding_request_repository.dart"
click node_availability "https://github.com/noblezaandrei/palahi_app/blob/main/lib/features/breeder/views/manage_availability_screen.dart"
click node_reviews "https://github.com/noblezaandrei/palahi_app/blob/main/lib/features/breeder/repositories/review_repository.dart"
click node_favorites "https://github.com/noblezaandrei/palahi_app/blob/main/lib/features/breeder/repositories/favorite_repository.dart"
click node_trips "https://github.com/noblezaandrei/palahi_app/blob/main/lib/features/breeder/repositories/trip_repository.dart"
click node_chat "https://github.com/noblezaandrei/palahi_app/blob/main/lib/features/communication/repositories/chat_repository.dart"
click node_notifications "https://github.com/noblezaandrei/palahi_app/blob/main/lib/features/communication/repositories/notification_repository.dart"
click node_mapping "https://github.com/noblezaandrei/palahi_app/blob/main/lib/features/map/viewmodels/trip_map_view_model.dart"
click node_location "https://github.com/noblezaandrei/palahi_app/blob/main/lib/features/map/repositories/location_service.dart"
click node_profile "https://github.com/noblezaandrei/palahi_app/blob/main/lib/features/profile/views/profile_screen.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_router,node_user toneBlue
class node_auth,node_auth_ui,node_account_delete,node_profile toneAmber
class node_breeder_catalog,node_stud_pigs,node_requests,node_availability,node_reviews,node_favorites,node_trips toneMint
class node_chat,node_notifications,node_mapping,node_location toneRose
```

## Components

### App shell

- [App entry](https://github.com/noblezaandrei/palahi_app/blob/main/lib/main.dart): `lib/main.dart`
- [App router](https://github.com/noblezaandrei/palahi_app/blob/main/lib/core/routes/app_router.dart): `lib/core/routes/app_router.dart`

### Accounts

- [Authentication](https://github.com/noblezaandrei/palahi_app/blob/main/lib/features/auth/repositories/auth_repository.dart): `lib/features/auth/repositories/auth_repository.dart`
- [Sign-in and setup](https://github.com/noblezaandrei/palahi_app/blob/main/lib/features/auth/views/login_screen.dart): `lib/features/auth/views/login_screen.dart`
- [Account deletion](https://github.com/noblezaandrei/palahi_app/blob/main/lib/features/auth/repositories/account_deletion_repository.dart): `lib/features/auth/repositories/account_deletion_repository.dart`
- [Profiles and settings](https://github.com/noblezaandrei/palahi_app/blob/main/lib/features/profile/views/profile_screen.dart): `lib/features/profile/views/profile_screen.dart`

### Breeder marketplace

- [Breeder directory](https://github.com/noblezaandrei/palahi_app/blob/main/lib/features/breeder/repositories/breeder_repository.dart): `lib/features/breeder/repositories/breeder_repository.dart`
- [Stud pig listings](https://github.com/noblezaandrei/palahi_app/blob/main/lib/features/breeder/repositories/stud_pig_repository.dart): `lib/features/breeder/repositories/stud_pig_repository.dart`
- [Breeding requests](https://github.com/noblezaandrei/palahi_app/blob/main/lib/features/breeder/repositories/breeding_request_repository.dart): `lib/features/breeder/repositories/breeding_request_repository.dart`
- [Availability management](https://github.com/noblezaandrei/palahi_app/blob/main/lib/features/breeder/views/manage_availability_screen.dart): `lib/features/breeder/views/manage_availability_screen.dart`
- [Reviews](https://github.com/noblezaandrei/palahi_app/blob/main/lib/features/breeder/repositories/review_repository.dart): `lib/features/breeder/repositories/review_repository.dart`
- [Favorites](https://github.com/noblezaandrei/palahi_app/blob/main/lib/features/breeder/repositories/favorite_repository.dart): `lib/features/breeder/repositories/favorite_repository.dart`
- [Trip history](https://github.com/noblezaandrei/palahi_app/blob/main/lib/features/breeder/repositories/trip_repository.dart): `lib/features/breeder/repositories/trip_repository.dart`

### Communication and location

- [Chat](https://github.com/noblezaandrei/palahi_app/blob/main/lib/features/communication/repositories/chat_repository.dart): `lib/features/communication/repositories/chat_repository.dart`
- [Notifications](https://github.com/noblezaandrei/palahi_app/blob/main/lib/features/communication/repositories/notification_repository.dart): `lib/features/communication/repositories/notification_repository.dart`
- [Maps and tracking](https://github.com/noblezaandrei/palahi_app/blob/main/lib/features/map/viewmodels/trip_map_view_model.dart): `lib/features/map/viewmodels/trip_map_view_model.dart`
- [Location services](https://github.com/noblezaandrei/palahi_app/blob/main/lib/features/map/repositories/location_service.dart): `lib/features/map/repositories/location_service.dart`

### Other components

- **User**

## Connections

- User → App entry: uses
- App entry → App router: routes
- App router → Sign-in and setup: routes
- Sign-in and setup → Authentication: uses
- Sign-in and setup → Breeder directory: browses
- Breeder directory → Stud pig listings: shows listings
- Breeder directory → Breeding requests: supports requests
- Breeding requests → Availability management: checks availability
- Breeder directory → Reviews: shows reviews
- User → Favorites: saves breeders
- User → Chat: messages
- User → Notifications: receives updates
- User → Maps and tracking: views trips
- Maps and tracking → Location services: uses location
- User → Profiles and settings: manages profile
- User → Account deletion: requests deletion
