# vb-core/hatayi_yasat architecture

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

- Interactive diagram: https://gitdiagram.com/vb-core/hatayi_yasat
- Repository: https://github.com/vb-core/hatayi_yasat

## Overview

Hatayı Yaşat is a Flutter app for discovering local places and engaging with Hatay’s events, news, tourism, and community. The main user journey is discovering and filtering a place, viewing its details, and saving it as a favorite; accounts also enable community participation and campaign coupon redemption. The graph preserves other README capabilities as distinct product areas. Runtime Dart sources were not excerpted, so edges represent only README-documented product relationships; implementation-level calls and data flows remain unverified.

Main entry points: [`lib/features/app.dart`](https://github.com/vb-core/hatayi_yasat/blob/main/lib/features/app.dart) (Hatayı Yaşat app), [`lib/features/main/home`](https://github.com/vb-core/hatayi_yasat/tree/main/lib/features/main/home) (Place discovery), [`lib/features/sub_feature/filter_and_search`](https://github.com/vb-core/hatayi_yasat/tree/main/lib/features/sub_feature/filter_and_search) (Search and filtering), [`lib/features/community`](https://github.com/vb-core/hatayi_yasat/tree/main/lib/features/community) (Groups and discussions)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_discovery["Local discovery"]
  node_place_discovery["Place discovery"]
  node_place_details["Place details"]
  node_search_filter["Search and filtering"]
  node_favorites["Favorite places"]
  node_events["Events"]
  node_news_jobs["News and jobs"]
  node_history_tourism["History and tourism"]
end

subgraph group_engagement["Community and participation"]
  node_community["Groups and discussions"]
  node_ratings["Place ratings"]
  node_contributions["User requests"]
  node_merchant["Merchant panel"]
  node_campaigns["Campaigns and coupons"]
end

subgraph group_services["Accounts and services"]
  node_auth["Authentication"]
  node_firebase_auth["Firebase authentication"]
  node_firestore[("Cloud Firestore")]
  node_search_functions["Callable search functions"]
  node_notifications["Push notifications"]
  node_analytics["Firebase analytics"]
end

subgraph group_platform["App foundation"]
  node_app["Hatayı Yaşat app<br/>[app.dart]"]
  node_cache[("Offline cache")]
  node_localization["Turkish and English<br/>[core_localize.dart]"]
  node_maps["Google Maps"]
end

node_user(("Resident or visitor"))

node_user -->|"uses"| node_app
node_app -->|"offers"| node_place_discovery
node_app -->|"offers"| node_events
node_app -->|"offers"| node_news_jobs
node_app -->|"offers"| node_history_tourism
node_app -->|"offers"| node_community
node_app -->|"offers"| node_merchant
node_app -->|"offers"| node_campaigns
node_app -->|"offers"| node_contributions
node_place_discovery -->|"filters by"| node_search_filter
node_place_discovery -->|"opens details"| node_place_details
node_place_discovery -->|"saves places"| node_favorites
node_place_discovery -->|"shows locations"| node_maps
node_search_filter -->|"calls search"| node_search_functions
node_auth -->|"signs in with"| node_firebase_auth
node_app -->|"uses database"| node_firestore
node_app -->|"supports"| node_notifications
node_app -->|"tracks usage"| node_analytics
node_app -->|"caches offline"| node_cache
node_app -->|"supports languages"| node_localization
node_community -->|"includes ratings"| node_ratings

click node_app "https://github.com/vb-core/hatayi_yasat/blob/main/lib/features/app.dart"
click node_place_discovery "https://github.com/vb-core/hatayi_yasat/tree/main/lib/features/main/home"
click node_place_details "https://github.com/vb-core/hatayi_yasat/tree/main/lib/features/details"
click node_search_filter "https://github.com/vb-core/hatayi_yasat/tree/main/lib/features/sub_feature/filter_and_search"
click node_favorites "https://github.com/vb-core/hatayi_yasat/tree/main/lib/features/sub_feature/favorite"
click node_events "https://github.com/vb-core/hatayi_yasat/tree/main/lib/features/main/event"
click node_news_jobs "https://github.com/vb-core/hatayi_yasat/tree/main/lib/features/main/news_jobs"
click node_history_tourism "https://github.com/vb-core/hatayi_yasat/tree/main/lib/features/tourism"
click node_community "https://github.com/vb-core/hatayi_yasat/tree/main/lib/features/community"
click node_ratings "https://github.com/vb-core/hatayi_yasat/tree/main/lib/features/community/rate"
click node_contributions "https://github.com/vb-core/hatayi_yasat/tree/main/lib/features/sub_feature/forms"
click node_merchant "https://github.com/vb-core/hatayi_yasat/tree/main/lib/features/merchant_panel"
click node_campaigns "https://github.com/vb-core/hatayi_yasat/tree/main/lib/features/monetization"
click node_auth "https://github.com/vb-core/hatayi_yasat/tree/main/lib/features/auth"
click node_firebase_auth "https://github.com/vb-core/hatayi_yasat/blob/main/lib/core/service/auth/firebase_auth_service.dart"
click node_notifications "https://github.com/vb-core/hatayi_yasat/tree/main/lib/features/sub_feature/notifications"
click node_analytics "https://github.com/vb-core/hatayi_yasat/blob/main/lib/core/service/analytics/firebase_analytics_service.dart"
click node_cache "https://github.com/vb-core/hatayi_yasat/tree/main/lib/product/feature/cache"
click node_localization "https://github.com/vb-core/hatayi_yasat/blob/main/lib/core/init/core_localize.dart"
click node_maps "https://github.com/vb-core/hatayi_yasat/tree/main/lib/features/sub_feature/map_picker"

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_place_discovery,node_place_details,node_search_filter,node_favorites,node_events,node_news_jobs,node_history_tourism toneBlue
class node_community,node_ratings,node_contributions,node_merchant,node_campaigns toneAmber
class node_auth,node_firebase_auth,node_firestore,node_search_functions,node_notifications,node_analytics toneMint
class node_app,node_cache,node_localization,node_maps toneRose
class node_user toneIndigo
```

## Components

### Local discovery

- [Place discovery](https://github.com/vb-core/hatayi_yasat/tree/main/lib/features/main/home): `lib/features/main/home`
- [Place details](https://github.com/vb-core/hatayi_yasat/tree/main/lib/features/details): `lib/features/details`
- [Search and filtering](https://github.com/vb-core/hatayi_yasat/tree/main/lib/features/sub_feature/filter_and_search): `lib/features/sub_feature/filter_and_search`
- [Favorite places](https://github.com/vb-core/hatayi_yasat/tree/main/lib/features/sub_feature/favorite): `lib/features/sub_feature/favorite`
- [Events](https://github.com/vb-core/hatayi_yasat/tree/main/lib/features/main/event): `lib/features/main/event`
- [News and jobs](https://github.com/vb-core/hatayi_yasat/tree/main/lib/features/main/news_jobs): `lib/features/main/news_jobs`
- [History and tourism](https://github.com/vb-core/hatayi_yasat/tree/main/lib/features/tourism): `lib/features/tourism`

### Community and participation

- [Groups and discussions](https://github.com/vb-core/hatayi_yasat/tree/main/lib/features/community): `lib/features/community`
- [Place ratings](https://github.com/vb-core/hatayi_yasat/tree/main/lib/features/community/rate): `lib/features/community/rate`
- [User requests](https://github.com/vb-core/hatayi_yasat/tree/main/lib/features/sub_feature/forms): `lib/features/sub_feature/forms`
- [Merchant panel](https://github.com/vb-core/hatayi_yasat/tree/main/lib/features/merchant_panel): `lib/features/merchant_panel`
- [Campaigns and coupons](https://github.com/vb-core/hatayi_yasat/tree/main/lib/features/monetization): `lib/features/monetization`

### Accounts and services

- [Authentication](https://github.com/vb-core/hatayi_yasat/tree/main/lib/features/auth): `lib/features/auth`
- [Firebase authentication](https://github.com/vb-core/hatayi_yasat/blob/main/lib/core/service/auth/firebase_auth_service.dart): `lib/core/service/auth/firebase_auth_service.dart`
- **Cloud Firestore**
- **Callable search functions**
- [Push notifications](https://github.com/vb-core/hatayi_yasat/tree/main/lib/features/sub_feature/notifications): `lib/features/sub_feature/notifications`
- [Firebase analytics](https://github.com/vb-core/hatayi_yasat/blob/main/lib/core/service/analytics/firebase_analytics_service.dart): `lib/core/service/analytics/firebase_analytics_service.dart`

### App foundation

- [Hatayı Yaşat app](https://github.com/vb-core/hatayi_yasat/blob/main/lib/features/app.dart): `lib/features/app.dart`
- [Offline cache](https://github.com/vb-core/hatayi_yasat/tree/main/lib/product/feature/cache): `lib/product/feature/cache`
- [Turkish and English](https://github.com/vb-core/hatayi_yasat/blob/main/lib/core/init/core_localize.dart): `lib/core/init/core_localize.dart`
- [Google Maps](https://github.com/vb-core/hatayi_yasat/tree/main/lib/features/sub_feature/map_picker): `lib/features/sub_feature/map_picker`

### Other components

- **Resident or visitor**

## Connections

- Resident or visitor → Hatayı Yaşat app: uses (evidence: `README.md`)
- Hatayı Yaşat app → Place discovery: offers (evidence: `README.md`)
- Hatayı Yaşat app → Events: offers (evidence: `README.md`)
- Hatayı Yaşat app → News and jobs: offers (evidence: `README.md`)
- Hatayı Yaşat app → History and tourism: offers (evidence: `README.md`)
- Hatayı Yaşat app → Groups and discussions: offers (evidence: `README.md`)
- Hatayı Yaşat app → Merchant panel: offers (evidence: `README.md`)
- Hatayı Yaşat app → Campaigns and coupons: offers (evidence: `README.md`)
- Hatayı Yaşat app → User requests: offers (evidence: `README.md`)
- Place discovery → Search and filtering: filters by (evidence: `README.md`)
- Place discovery → Place details: opens details (evidence: `README.md`)
- Place discovery → Favorite places: saves places (evidence: `README.md`)
- Place discovery → Google Maps: shows locations (evidence: `README.md`)
- Search and filtering → Callable search functions: calls search (evidence: `README.md`)
- Authentication → Firebase authentication: signs in with (evidence: `README.md`)
- Hatayı Yaşat app → Cloud Firestore: uses database (evidence: `README.md`)
- Hatayı Yaşat app → Push notifications: supports (evidence: `README.md`)
- Hatayı Yaşat app → Firebase analytics: tracks usage (evidence: `README.md`)
- Hatayı Yaşat app → Offline cache: caches offline (evidence: `README.md`)
- Hatayı Yaşat app → Turkish and English: supports languages (evidence: `README.md`)
- Groups and discussions → Place ratings: includes ratings (evidence: `README.md`)
