# jaco1103/viah-showcase architecture

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

- Interactive diagram: https://gitdiagram.com/jaco1103/viah-showcase
- Repository: https://github.com/jaco1103/viah-showcase

## Overview

Viah is an iOS travel-planning app that takes a city, anchor point, and chosen moods and returns a walkable day-by-day itinerary of real, quality-checked places. The documented product combines a deterministic itinerary algorithm with a pre-enriched places catalog, backed by Supabase/PostgreSQL/PostGIS and geographic data. The repository snapshot contains no implementation excerpts, so paths for product components are unknown and only README-documented relationships are shown; the internal data flow is necessarily limited.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["Trip planning"]
  node_ios["iOS app"]
  node_trip_inputs["Trip choices"]
  node_itinerary["Day itinerary"]
end

subgraph group_engine["Itinerary engine"]
  node_planner["Deterministic planner"]
end

subgraph group_catalog["Place data"]
  node_quality_gate["Place quality gate"]
  node_places[("Curated places")]
end

subgraph group_platform["Data platform"]
  node_supabase[("Supabase")]
  node_postgres[("PostgreSQL / PostGIS")]
end

node_traveler(("Traveler"))
node_google["Google places"]
node_openstreetmap["OpenStreetMap geo"]
node_claude["Claude enrichment"]

node_traveler -->|"plans trip"| node_ios
node_ios -->|"collects choices"| node_trip_inputs
node_trip_inputs -->|"builds itinerary"| node_planner
node_planner -->|"uses real places"| node_places
node_planner -->|"produces days"| node_itinerary
node_itinerary -->|"shows result"| node_ios
node_google -->|"supplies places"| node_places
node_openstreetmap -->|"supplies geo"| node_places
node_claude -->|"enriches once"| node_quality_gate
node_quality_gate -->|"quality-gates"| node_places
node_supabase -->|"built with"| node_postgres

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_ios,node_trip_inputs,node_itinerary toneBlue
class node_planner toneAmber
class node_quality_gate,node_places toneMint
class node_supabase,node_postgres toneRose
class node_traveler,node_google,node_openstreetmap,node_claude toneIndigo
```

## Components

### Trip planning

- **iOS app**
- **Trip choices**
- **Day itinerary**

### Itinerary engine

- **Deterministic planner**

### Place data

- **Place quality gate**
- **Curated places**

### Data platform

- **Supabase**
- **PostgreSQL / PostGIS**

### Other components

- **Traveler**
- **Google places**
- **OpenStreetMap geo**
- **Claude enrichment**

## Connections

- Traveler → iOS app: plans trip (evidence: `README.md`)
- iOS app → Trip choices: collects choices (evidence: `README.md`)
- Trip choices → Deterministic planner: builds itinerary (evidence: `README.md`)
- Deterministic planner → Curated places: uses real places (evidence: `README.md`)
- Deterministic planner → Day itinerary: produces days (evidence: `README.md`)
- Day itinerary → iOS app: shows result (evidence: `README.md`)
- Google places → Curated places: supplies places (evidence: `README.md`)
- OpenStreetMap geo → Curated places: supplies geo (evidence: `README.md`)
- Claude enrichment → Place quality gate: enriches once (evidence: `README.md`)
- Place quality gate → Curated places: quality-gates (evidence: `README.md`)
- Supabase → PostgreSQL / PostGIS: built with (evidence: `README.md`)
