# winnee0305/tripora architecture

> Architecture diagram of the GitHub repository winnee0305/tripora, 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/winnee0305/tripora
- Repository: https://github.com/winnee0305/tripora

## Overview

Tripora is a Flutter travel-planning app. Travelers organize trips and itineraries, discover places, get AI-powered travel help, and manage practical details such as flights, lodging, packing, and expenses; Firebase provides cloud sync. The README describes an MVVM split between feature views/viewmodels and shared services, but no Dart implementation excerpts were supplied, so internal call paths are not asserted. Feature branches and integrations below reflect documented capabilities; their precise runtime wiring remains unverified.

Main entry points: [`lib/features/trip`](https://github.com/winnee0305/tripora/tree/main/lib/features/trip) (Trip management), [`lib/features/exploration`](https://github.com/winnee0305/tripora/tree/main/lib/features/exploration) (Place discovery), [`lib/core/services`](https://github.com/winnee0305/tripora/tree/main/lib/core/services) (AI planning), [`lib/features/chat`](https://github.com/winnee0305/tripora/tree/main/lib/features/chat) (Travel chat)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_planning["Trip planning"]
  node_trip_management["Trip management"]
  node_itinerary["Itinerary planning"]
  node_ai_planning["AI planning"]
  node_flight_search["Flight search"]
end

subgraph group_discovery["Travel discovery"]
  node_exploration["Place discovery"]
  node_poi["Saved places"]
  node_travel_chat["Travel chat"]
  node_cultural_tips["Cultural tips"]
end

subgraph group_trip_tools["Trip tools"]
  node_expenses["Expense tracking"]
  node_packing["Smart packing"]
  node_lodging["Lodging management<br/>[lodging_data.dart]"]
  node_trip_notes["Trip notes"]
  node_social_sharing["Social sharing"]
end

subgraph group_shared["Shared services"]
  node_firebase["Firebase services"]
  node_cloud_data[("Cloud data")]
  node_google_places["Google Places"]
  node_google_maps["Google Maps"]
  node_ai_backend["AI backend"]
  node_aviationstack["AviationStack"]
end

node_traveler(("Traveler"))

node_traveler -->|"organizes trips"| node_trip_management
node_trip_management -.->|"plans days"| node_itinerary
node_trip_management -.->|"gets recommendations"| node_ai_planning
node_ai_planning -.->|"requests AI help"| node_ai_backend
node_trip_management -.->|"searches flights"| node_flight_search
node_flight_search -.->|"autocompletes flights"| node_aviationstack
node_traveler -->|"discovers places"| node_exploration
node_exploration -.->|"searches places"| node_google_places
node_exploration -.->|"views maps"| node_google_maps
node_traveler -->|"asks for advice"| node_travel_chat
node_travel_chat -.->|"gets AI answers"| node_ai_backend
node_traveler -->|"reviews etiquette"| node_cultural_tips
node_traveler -->|"tracks spending"| node_expenses
node_traveler -->|"prepares packing list"| node_packing
node_packing -.->|"generates list"| node_ai_backend
node_traveler -->|"manages stays"| node_lodging
node_traveler -->|"records notes"| node_trip_notes
node_traveler -->|"shares experiences"| node_social_sharing
node_firebase -.->|"syncs data"| node_cloud_data

click node_trip_management "https://github.com/winnee0305/tripora/tree/main/lib/features/trip"
click node_itinerary "https://github.com/winnee0305/tripora/tree/main/lib/features/itinerary"
click node_ai_planning "https://github.com/winnee0305/tripora/tree/main/lib/core/services"
click node_flight_search "https://github.com/winnee0305/tripora/tree/main/lib/core/services"
click node_exploration "https://github.com/winnee0305/tripora/tree/main/lib/features/exploration"
click node_poi "https://github.com/winnee0305/tripora/tree/main/lib/features/poi"
click node_travel_chat "https://github.com/winnee0305/tripora/tree/main/lib/features/chat"
click node_cultural_tips "https://github.com/winnee0305/tripora/tree/main/assets/data/culture"
click node_expenses "https://github.com/winnee0305/tripora/tree/main/lib/features/expense"
click node_packing "https://github.com/winnee0305/tripora/tree/main/lib/features/packing"
click node_lodging "https://github.com/winnee0305/tripora/blob/main/lib/core/models/lodging_data.dart"
click node_trip_notes "https://github.com/winnee0305/tripora/tree/main/lib/features/trip"
click node_social_sharing "https://github.com/winnee0305/tripora/tree/main/lib/features/profile"
click node_firebase "https://github.com/winnee0305/tripora/tree/main/lib/core/services"
click node_google_places "https://github.com/winnee0305/tripora/tree/main/lib/core/services"
click node_google_maps "https://github.com/winnee0305/tripora/tree/main/lib/core/services"

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_trip_management,node_itinerary,node_ai_planning,node_flight_search toneBlue
class node_exploration,node_poi,node_travel_chat,node_cultural_tips toneAmber
class node_expenses,node_packing,node_lodging,node_trip_notes,node_social_sharing toneMint
class node_firebase,node_cloud_data,node_google_places,node_google_maps,node_ai_backend,node_aviationstack toneRose
class node_traveler toneIndigo
```

## Components

### Trip planning

- [Trip management](https://github.com/winnee0305/tripora/tree/main/lib/features/trip): `lib/features/trip`
- [Itinerary planning](https://github.com/winnee0305/tripora/tree/main/lib/features/itinerary): `lib/features/itinerary`
- [AI planning](https://github.com/winnee0305/tripora/tree/main/lib/core/services): `lib/core/services`
- [Flight search](https://github.com/winnee0305/tripora/tree/main/lib/core/services): `lib/core/services`

### Travel discovery

- [Place discovery](https://github.com/winnee0305/tripora/tree/main/lib/features/exploration): `lib/features/exploration`
- [Saved places](https://github.com/winnee0305/tripora/tree/main/lib/features/poi): `lib/features/poi`
- [Travel chat](https://github.com/winnee0305/tripora/tree/main/lib/features/chat): `lib/features/chat`
- [Cultural tips](https://github.com/winnee0305/tripora/tree/main/assets/data/culture): `assets/data/culture`

### Trip tools

- [Expense tracking](https://github.com/winnee0305/tripora/tree/main/lib/features/expense): `lib/features/expense`
- [Smart packing](https://github.com/winnee0305/tripora/tree/main/lib/features/packing): `lib/features/packing`
- [Lodging management](https://github.com/winnee0305/tripora/blob/main/lib/core/models/lodging_data.dart): `lib/core/models/lodging_data.dart`
- [Trip notes](https://github.com/winnee0305/tripora/tree/main/lib/features/trip): `lib/features/trip`
- [Social sharing](https://github.com/winnee0305/tripora/tree/main/lib/features/profile): `lib/features/profile`

### Shared services

- [Firebase services](https://github.com/winnee0305/tripora/tree/main/lib/core/services): `lib/core/services`
- **Cloud data**
- [Google Places](https://github.com/winnee0305/tripora/tree/main/lib/core/services): `lib/core/services`
- [Google Maps](https://github.com/winnee0305/tripora/tree/main/lib/core/services): `lib/core/services`
- **AI backend**
- **AviationStack**

### Other components

- **Traveler**

## Connections

- Traveler → Trip management: organizes trips (evidence: `README.md`)
- Trip management → Itinerary planning: plans days
- Trip management → AI planning: gets recommendations
- AI planning → AI backend: requests AI help (evidence: `README.md`)
- Trip management → Flight search: searches flights (evidence: `README.md`)
- Flight search → AviationStack: autocompletes flights (evidence: `README.md`)
- Traveler → Place discovery: discovers places (evidence: `README.md`)
- Place discovery → Google Places: searches places (evidence: `README.md`)
- Place discovery → Google Maps: views maps (evidence: `README.md`)
- Traveler → Travel chat: asks for advice (evidence: `README.md`)
- Travel chat → AI backend: gets AI answers (evidence: `README.md`)
- Traveler → Cultural tips: reviews etiquette (evidence: `README.md`)
- Traveler → Expense tracking: tracks spending (evidence: `README.md`)
- Traveler → Smart packing: prepares packing list (evidence: `README.md`)
- Smart packing → AI backend: generates list (evidence: `README.md`)
- Traveler → Lodging management: manages stays (evidence: `README.md`)
- Traveler → Trip notes: records notes (evidence: `README.md`)
- Traveler → Social sharing: shares experiences (evidence: `README.md`)
- Firebase services → Cloud data: syncs data (evidence: `README.md`)
