# pranavesh-n/sikkanam architecture

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

- Interactive diagram: https://gitdiagram.com/pranavesh-n/sikkanam
- Repository: https://github.com/pranavesh-n/sikkanam

## Overview

Sikkanam is a Tamil Nadu travel-discovery and budget-planning platform. Travelers can explore destinations or submit trip parameters to receive a costed itinerary, with budget feasibility guidance and evidence-backed estimates; they can also check weather, save trips, manage a wishlist, and use AI chat. The graph reflects the README’s documented capabilities and the sampled runtime entry points. Several API and page implementations were not sampled, so uncertain internal calls are omitted rather than inferred.

Main entry points: [`src/App.tsx`](https://github.com/pranavesh-n/sikkanam/blob/main/src/App.tsx) (Web application), [`api/generatePlan.js`](https://github.com/pranavesh-n/sikkanam/blob/main/api/generatePlan.js) (Plan generation API), [`src/lib/intelligenceEngine.ts`](https://github.com/pranavesh-n/sikkanam/blob/main/src/lib/intelligenceEngine.ts) (Cost intelligence), [`src/data/tnDestinations.ts`](https://github.com/pranavesh-n/sikkanam/blob/main/src/data/tnDestinations.ts) (Destination catalog)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["Travel experience"]
  node_app["Web application<br/>[App.tsx]"]
  node_explore["Destination discovery<br/>[Explore.tsx]"]
  node_destination["Destination details"]
  node_maps["Maps and circuits<br/>[Maps.tsx]"]
  node_weatherwidget["Weather display<br/>[WeatherWidget.tsx]"]
end

subgraph group_planning["Trip planning"]
  node_tripform["Trip planner<br/>[TripPlanner.tsx]"]
  node_aiplanner["AI planner<br/>[AIPlanner.tsx]"]
  node_planapi["Plan generation API<br/>[generatePlan.js]"]
  node_engine["Cost intelligence"]
  node_results["Trip results<br/>[TripResults.tsx]"]
end

subgraph group_knowledge["Travel knowledge"]
  node_catalog[("Destination catalog<br/>[tnDestinations.ts]")]
  node_attractions[("Attraction costs")]
  node_food[("Food profiles<br/>[foodProfiles.ts]")]
end

subgraph group_services["Runtime services"]
  node_lodging["Hotel estimates<br/>[hotelservice.ts]"]
  node_weather["Weather forecasts<br/>[weatherService.ts]"]
  node_grounding["Live fare grounding"]
end

subgraph group_account["Accounts and saved data"]
  node_auth["Authentication<br/>[AuthContext.tsx]"]
  node_authapi["Google sign-in API<br/>[google.js]"]
  node_wishlist["Wishlist API<br/>[wishlist.js]"]
  node_trips["Saved trips API<br/>[trips.js]"]
end

node_traveler(("Traveler"))
node_weatherapi["Open-Meteo"]
node_scrapegraph["ScrapeGraph AI"]
node_llm["LLM providers"]
node_mongodb[("MongoDB")]

node_traveler -->|"uses"| node_app
node_app -->|"routes to"| node_explore
node_app -->|"routes to"| node_tripform
node_app -->|"routes to"| node_aiplanner
node_app -->|"routes to"| node_destination
node_app -->|"routes to"| node_maps
node_explore -->|"browses"| node_catalog
node_destination -->|"uses destination data"| node_catalog
node_tripform -->|"requests plan"| node_planapi
node_aiplanner -->|"requests plan"| node_planapi
node_planapi -->|"calculates costs"| node_engine
node_engine -->|"reads destination data"| node_catalog
node_engine -->|"reads entry fees"| node_attractions
node_engine -->|"reads food rates"| node_food
node_planapi -->|"gets lodging data"| node_lodging
node_planapi -->|"requests live grounding"| node_grounding
node_grounding -.->|"queries tariffs"| node_scrapegraph
node_planapi -.->|"generates narrative"| node_llm
node_traveler -->|"checks forecast"| node_weatherwidget
node_weatherwidget -->|"requests forecast"| node_weather
node_weather -->|"fetches forecast"| node_weatherapi
node_traveler -->|"signs in"| node_auth
node_auth -->|"starts Google sign-in"| node_authapi
node_traveler -->|"manages wishlist"| node_wishlist
node_traveler -->|"manages saved trips"| node_trips
node_wishlist -->|"reads and writes"| node_mongodb
node_trips -->|"reads and writes"| node_mongodb

click node_app "https://github.com/pranavesh-n/sikkanam/blob/main/src/App.tsx"
click node_explore "https://github.com/pranavesh-n/sikkanam/blob/main/src/pages/Explore.tsx"
click node_destination "https://github.com/pranavesh-n/sikkanam/blob/main/src/pages/DestinationDetail.tsx"
click node_maps "https://github.com/pranavesh-n/sikkanam/blob/main/src/pages/Maps.tsx"
click node_tripform "https://github.com/pranavesh-n/sikkanam/blob/main/src/pages/TripPlanner.tsx"
click node_aiplanner "https://github.com/pranavesh-n/sikkanam/blob/main/src/pages/AIPlanner.tsx"
click node_planapi "https://github.com/pranavesh-n/sikkanam/blob/main/api/generatePlan.js"
click node_engine "https://github.com/pranavesh-n/sikkanam/blob/main/src/lib/intelligenceEngine.ts"
click node_results "https://github.com/pranavesh-n/sikkanam/blob/main/src/components/TripResults.tsx"
click node_catalog "https://github.com/pranavesh-n/sikkanam/blob/main/src/data/tnDestinations.ts"
click node_attractions "https://github.com/pranavesh-n/sikkanam/blob/main/src/data/activityDatabase.ts"
click node_food "https://github.com/pranavesh-n/sikkanam/blob/main/src/data/foodProfiles.ts"
click node_lodging "https://github.com/pranavesh-n/sikkanam/blob/main/src/services/hotelservice.ts"
click node_weather "https://github.com/pranavesh-n/sikkanam/blob/main/src/services/weatherService.ts"
click node_grounding "https://github.com/pranavesh-n/sikkanam/blob/main/api/_utils/scrapegraphGrounding.js"
click node_auth "https://github.com/pranavesh-n/sikkanam/blob/main/src/context/AuthContext.tsx"
click node_authapi "https://github.com/pranavesh-n/sikkanam/blob/main/api/auth/google.js"
click node_wishlist "https://github.com/pranavesh-n/sikkanam/blob/main/api/wishlist.js"
click node_trips "https://github.com/pranavesh-n/sikkanam/blob/main/api/trips.js"
click node_weatherwidget "https://github.com/pranavesh-n/sikkanam/blob/main/src/components/WeatherWidget.tsx"

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_app,node_explore,node_destination,node_maps,node_weatherwidget toneBlue
class node_tripform,node_aiplanner,node_planapi,node_engine,node_results,node_mongodb toneAmber
class node_catalog,node_attractions,node_food toneMint
class node_lodging,node_weather,node_grounding toneRose
class node_auth,node_authapi,node_wishlist,node_trips,node_traveler,node_weatherapi,node_scrapegraph,node_llm toneIndigo
```

## Components

### Travel experience

- [Web application](https://github.com/pranavesh-n/sikkanam/blob/main/src/App.tsx): `src/App.tsx`
- [Destination discovery](https://github.com/pranavesh-n/sikkanam/blob/main/src/pages/Explore.tsx): `src/pages/Explore.tsx`
- [Destination details](https://github.com/pranavesh-n/sikkanam/blob/main/src/pages/DestinationDetail.tsx): `src/pages/DestinationDetail.tsx`
- [Maps and circuits](https://github.com/pranavesh-n/sikkanam/blob/main/src/pages/Maps.tsx): `src/pages/Maps.tsx`
- [Weather display](https://github.com/pranavesh-n/sikkanam/blob/main/src/components/WeatherWidget.tsx): `src/components/WeatherWidget.tsx`

### Trip planning

- [Trip planner](https://github.com/pranavesh-n/sikkanam/blob/main/src/pages/TripPlanner.tsx): `src/pages/TripPlanner.tsx`
- [AI planner](https://github.com/pranavesh-n/sikkanam/blob/main/src/pages/AIPlanner.tsx): `src/pages/AIPlanner.tsx`
- [Plan generation API](https://github.com/pranavesh-n/sikkanam/blob/main/api/generatePlan.js): `api/generatePlan.js`
- [Cost intelligence](https://github.com/pranavesh-n/sikkanam/blob/main/src/lib/intelligenceEngine.ts): `src/lib/intelligenceEngine.ts`
- [Trip results](https://github.com/pranavesh-n/sikkanam/blob/main/src/components/TripResults.tsx): `src/components/TripResults.tsx`

### Travel knowledge

- [Destination catalog](https://github.com/pranavesh-n/sikkanam/blob/main/src/data/tnDestinations.ts): `src/data/tnDestinations.ts`
- [Attraction costs](https://github.com/pranavesh-n/sikkanam/blob/main/src/data/activityDatabase.ts): `src/data/activityDatabase.ts`
- [Food profiles](https://github.com/pranavesh-n/sikkanam/blob/main/src/data/foodProfiles.ts): `src/data/foodProfiles.ts`

### Runtime services

- [Hotel estimates](https://github.com/pranavesh-n/sikkanam/blob/main/src/services/hotelservice.ts): `src/services/hotelservice.ts`
- [Weather forecasts](https://github.com/pranavesh-n/sikkanam/blob/main/src/services/weatherService.ts): `src/services/weatherService.ts`
- [Live fare grounding](https://github.com/pranavesh-n/sikkanam/blob/main/api/_utils/scrapegraphGrounding.js): `api/_utils/scrapegraphGrounding.js`

### Accounts and saved data

- [Authentication](https://github.com/pranavesh-n/sikkanam/blob/main/src/context/AuthContext.tsx): `src/context/AuthContext.tsx`
- [Google sign-in API](https://github.com/pranavesh-n/sikkanam/blob/main/api/auth/google.js): `api/auth/google.js`
- [Wishlist API](https://github.com/pranavesh-n/sikkanam/blob/main/api/wishlist.js): `api/wishlist.js`
- [Saved trips API](https://github.com/pranavesh-n/sikkanam/blob/main/api/trips.js): `api/trips.js`

### Other components

- **Traveler**
- **Open-Meteo**
- **ScrapeGraph AI**
- **LLM providers**
- **MongoDB**

## Connections

- Traveler → Web application: uses
- Web application → Destination discovery: routes to
- Web application → Trip planner: routes to
- Web application → AI planner: routes to
- Web application → Destination details: routes to
- Web application → Maps and circuits: routes to
- Destination discovery → Destination catalog: browses
- Destination details → Destination catalog: uses destination data
- Trip planner → Plan generation API: requests plan
- AI planner → Plan generation API: requests plan
- Plan generation API → Cost intelligence: calculates costs
- Cost intelligence → Destination catalog: reads destination data
- Cost intelligence → Attraction costs: reads entry fees
- Cost intelligence → Food profiles: reads food rates
- Plan generation API → Hotel estimates: gets lodging data
- Plan generation API → Live fare grounding: requests live grounding
- Live fare grounding → ScrapeGraph AI: queries tariffs
- Plan generation API → LLM providers: generates narrative
- Traveler → Weather display: checks forecast
- Weather display → Weather forecasts: requests forecast
- Weather forecasts → Open-Meteo: fetches forecast
- Traveler → Authentication: signs in
- Authentication → Google sign-in API: starts Google sign-in
- Traveler → Wishlist API: manages wishlist
- Traveler → Saved trips API: manages saved trips
- Wishlist API → MongoDB: reads and writes
- Saved trips API → MongoDB: reads and writes
