# maniharika4508/tourism-jharkhand architecture

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

- Interactive diagram: https://gitdiagram.com/maniharika4508/tourism-jharkhand
- Repository: https://github.com/maniharika4508/tourism-jharkhand

## Overview

Jharkhand Tourism is a web platform for discovering eco-cultural destinations, understanding them with maps and AI, planning trips, experiencing immersive media, and purchasing tourism offerings. The principal workflow runs from destination exploration through AI assistance or planning to marketplace checkout and payment. Feedback and analytics form a separate improvement loop. Sampled routes show direct integrations with Groq, AI analysis, advanced analytics, Razorpay, order state, and Wikipedia; several page-to-route connections are inferred only from naming and are therefore omitted.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["Tourism Experience"]
  node_destination_explorer["Destination Explorer<br/>[page.tsx]"]
  node_destination_detail["Destination Detail<br/>[page.tsx]"]
  node_interactive_map["Interactive Maps"]
  node_ar_vr["AR/VR Experience<br/>[page.tsx]"]
  node_travel_planner["Travel Planner<br/>[page.tsx]"]
end

subgraph group_ai["AI Assistance"]
  node_chatbot_widget["Chatbot Widget<br/>[chatbot-widget.tsx]"]
  node_chatbot_api["Chatbot API<br/>[route.ts]"]
  node_groq{{"Groq AI"}}
end

subgraph group_insights["Insights Feedback"]
  node_feedback_page["Feedback Center<br/>[page.tsx]"]
  node_feedback_api["Feedback Analysis<br/>[route.ts]"]
  node_ai_services["AI Services<br/>[ai-services.ts]"]
  node_analytics_page["Analytics Dashboard<br/>[page.tsx]"]
  node_analytics_api["Analytics API<br/>[route.ts]"]
  node_advanced_analytics["Advanced Analytics"]
  node_analytics_export["Analytics Export<br/>[route.ts]"]
end

subgraph group_marketplace["Marketplace Commerce"]
  node_marketplace["Marketplace<br/>[page.tsx]"]
  node_products_api["Product Catalog<br/>[route.ts]"]
  node_recommendations_api["Recommendations<br/>[route.ts]"]
  node_vendors_api["Vendor Directory<br/>[route.ts]"]
  node_orders_api["Marketplace Orders<br/>[route.ts]"]
  node_checkout_api["Checkout<br/>[route.ts]"]
  node_order_store["Order State<br/>[orders.ts]"]
  node_razorpay{{"Razorpay"}}
end

subgraph group_identity["Identity Access"]
  node_auth_page["Authentication<br/>[page.tsx]"]
  node_auth_routes["Auth Routes<br/>[auth.js]"]
end

node_traveler(("Traveler"))

node_traveler -->|"explores"| node_destination_explorer
node_traveler -->|"reads details"| node_destination_detail
node_traveler -->|"finds locations"| node_interactive_map
node_traveler -->|"previews places"| node_ar_vr
node_traveler -->|"plans trips"| node_travel_planner
node_traveler -->|"asks questions"| node_chatbot_widget
node_chatbot_widget -->|"sends messages"| node_chatbot_api
node_chatbot_api -.->|"generates replies"| node_groq
node_traveler -->|"submits feedback"| node_feedback_page
node_feedback_api -->|"analyzes feedback"| node_ai_services
node_analytics_api -->|"generates insights"| node_advanced_analytics
node_traveler -->|"shops offerings"| node_marketplace
node_traveler -->|"browses products"| node_products_api
node_traveler -->|"gets recommendations"| node_recommendations_api
node_traveler -->|"finds vendors"| node_vendors_api
node_traveler -->|"tracks orders"| node_orders_api
node_traveler -->|"starts checkout"| node_checkout_api
node_checkout_api -->|"creates payment"| node_razorpay
node_checkout_api -->|"saves order"| node_order_store
node_traveler -->|"signs in"| node_auth_page
node_auth_routes -->|"serves auth"| node_auth_page
node_traveler -->|"reviews trends"| node_analytics_page
node_traveler -->|"exports reports"| node_analytics_export

click node_destination_explorer "https://github.com/maniharika4508/tourism-jharkhand/blob/main/app/destinations/page.tsx"
click node_destination_detail "https://github.com/maniharika4508/tourism-jharkhand/blob/main/app/destinations/%5Bdestination%5D/page.tsx"
click node_interactive_map "https://github.com/maniharika4508/tourism-jharkhand/blob/main/components/interactive-map.tsx"
click node_ar_vr "https://github.com/maniharika4508/tourism-jharkhand/blob/main/app/ar-vr/page.tsx"
click node_travel_planner "https://github.com/maniharika4508/tourism-jharkhand/blob/main/app/travel-planner/page.tsx"
click node_chatbot_widget "https://github.com/maniharika4508/tourism-jharkhand/blob/main/components/chatbot-widget.tsx"
click node_chatbot_api "https://github.com/maniharika4508/tourism-jharkhand/blob/main/app/api/chatbot/message/route.ts"
click node_feedback_page "https://github.com/maniharika4508/tourism-jharkhand/blob/main/app/feedback/page.tsx"
click node_feedback_api "https://github.com/maniharika4508/tourism-jharkhand/blob/main/app/api/feedback/route.ts"
click node_ai_services "https://github.com/maniharika4508/tourism-jharkhand/blob/main/lib/ai-services.ts"
click node_analytics_page "https://github.com/maniharika4508/tourism-jharkhand/blob/main/app/analytics/page.tsx"
click node_analytics_api "https://github.com/maniharika4508/tourism-jharkhand/blob/main/app/api/analytics/route.ts"
click node_advanced_analytics "https://github.com/maniharika4508/tourism-jharkhand/blob/main/lib/advanced-analytics.ts"
click node_analytics_export "https://github.com/maniharika4508/tourism-jharkhand/blob/main/app/api/analytics/export/route.ts"
click node_marketplace "https://github.com/maniharika4508/tourism-jharkhand/blob/main/app/marketplace/page.tsx"
click node_products_api "https://github.com/maniharika4508/tourism-jharkhand/blob/main/app/api/marketplace/products/route.ts"
click node_recommendations_api "https://github.com/maniharika4508/tourism-jharkhand/blob/main/app/api/marketplace/recommendations/route.ts"
click node_vendors_api "https://github.com/maniharika4508/tourism-jharkhand/blob/main/app/api/marketplace/vendors/route.ts"
click node_orders_api "https://github.com/maniharika4508/tourism-jharkhand/blob/main/app/api/marketplace/orders/route.ts"
click node_checkout_api "https://github.com/maniharika4508/tourism-jharkhand/blob/main/app/api/checkout/route.ts"
click node_order_store "https://github.com/maniharika4508/tourism-jharkhand/blob/main/lib/orders.ts"
click node_auth_page "https://github.com/maniharika4508/tourism-jharkhand/blob/main/app/auth/page.tsx"
click node_auth_routes "https://github.com/maniharika4508/tourism-jharkhand/blob/main/backend/routes/auth.js"

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_destination_explorer,node_destination_detail,node_interactive_map,node_ar_vr,node_travel_planner toneBlue
class node_chatbot_widget,node_chatbot_api,node_groq toneAmber
class node_feedback_page,node_feedback_api,node_ai_services,node_analytics_page,node_analytics_api,node_advanced_analytics,node_analytics_export toneMint
class node_marketplace,node_products_api,node_recommendations_api,node_vendors_api,node_orders_api,node_checkout_api,node_order_store,node_razorpay toneRose
class node_auth_page,node_auth_routes,node_traveler toneIndigo
```

## Components

### Tourism Experience

- [Destination Explorer](https://github.com/maniharika4508/tourism-jharkhand/blob/main/app/destinations/page.tsx): `app/destinations/page.tsx`
- [Destination Detail](https://github.com/maniharika4508/tourism-jharkhand/blob/main/app/destinations/%5Bdestination%5D/page.tsx): `app/destinations/[destination]/page.tsx`
- [Interactive Maps](https://github.com/maniharika4508/tourism-jharkhand/blob/main/components/interactive-map.tsx): `components/interactive-map.tsx`
- [AR/VR Experience](https://github.com/maniharika4508/tourism-jharkhand/blob/main/app/ar-vr/page.tsx): `app/ar-vr/page.tsx`
- [Travel Planner](https://github.com/maniharika4508/tourism-jharkhand/blob/main/app/travel-planner/page.tsx): `app/travel-planner/page.tsx`

### AI Assistance

- [Chatbot Widget](https://github.com/maniharika4508/tourism-jharkhand/blob/main/components/chatbot-widget.tsx): `components/chatbot-widget.tsx`
- [Chatbot API](https://github.com/maniharika4508/tourism-jharkhand/blob/main/app/api/chatbot/message/route.ts): `app/api/chatbot/message/route.ts`
- **Groq AI**

### Insights Feedback

- [Feedback Center](https://github.com/maniharika4508/tourism-jharkhand/blob/main/app/feedback/page.tsx): `app/feedback/page.tsx`
- [Feedback Analysis](https://github.com/maniharika4508/tourism-jharkhand/blob/main/app/api/feedback/route.ts): `app/api/feedback/route.ts`
- [AI Services](https://github.com/maniharika4508/tourism-jharkhand/blob/main/lib/ai-services.ts): `lib/ai-services.ts`
- [Analytics Dashboard](https://github.com/maniharika4508/tourism-jharkhand/blob/main/app/analytics/page.tsx): `app/analytics/page.tsx`
- [Analytics API](https://github.com/maniharika4508/tourism-jharkhand/blob/main/app/api/analytics/route.ts): `app/api/analytics/route.ts`
- [Advanced Analytics](https://github.com/maniharika4508/tourism-jharkhand/blob/main/lib/advanced-analytics.ts): `lib/advanced-analytics.ts`
- [Analytics Export](https://github.com/maniharika4508/tourism-jharkhand/blob/main/app/api/analytics/export/route.ts): `app/api/analytics/export/route.ts`

### Marketplace Commerce

- [Marketplace](https://github.com/maniharika4508/tourism-jharkhand/blob/main/app/marketplace/page.tsx): `app/marketplace/page.tsx`
- [Product Catalog](https://github.com/maniharika4508/tourism-jharkhand/blob/main/app/api/marketplace/products/route.ts): `app/api/marketplace/products/route.ts`
- [Recommendations](https://github.com/maniharika4508/tourism-jharkhand/blob/main/app/api/marketplace/recommendations/route.ts): `app/api/marketplace/recommendations/route.ts`
- [Vendor Directory](https://github.com/maniharika4508/tourism-jharkhand/blob/main/app/api/marketplace/vendors/route.ts): `app/api/marketplace/vendors/route.ts`
- [Marketplace Orders](https://github.com/maniharika4508/tourism-jharkhand/blob/main/app/api/marketplace/orders/route.ts): `app/api/marketplace/orders/route.ts`
- [Checkout](https://github.com/maniharika4508/tourism-jharkhand/blob/main/app/api/checkout/route.ts): `app/api/checkout/route.ts`
- [Order State](https://github.com/maniharika4508/tourism-jharkhand/blob/main/lib/orders.ts): `lib/orders.ts`
- **Razorpay**

### Identity Access

- [Authentication](https://github.com/maniharika4508/tourism-jharkhand/blob/main/app/auth/page.tsx): `app/auth/page.tsx`
- [Auth Routes](https://github.com/maniharika4508/tourism-jharkhand/blob/main/backend/routes/auth.js): `backend/routes/auth.js`

### Other components

- **Traveler**

## Connections

- Traveler → Destination Explorer: explores
- Traveler → Destination Detail: reads details
- Traveler → Interactive Maps: finds locations
- Traveler → AR/VR Experience: previews places
- Traveler → Travel Planner: plans trips
- Traveler → Chatbot Widget: asks questions
- Chatbot Widget → Chatbot API: sends messages
- Chatbot API → Groq AI: generates replies
- Traveler → Feedback Center: submits feedback
- Feedback Analysis → AI Services: analyzes feedback
- Analytics API → Advanced Analytics: generates insights
- Traveler → Marketplace: shops offerings
- Traveler → Product Catalog: browses products
- Traveler → Recommendations: gets recommendations
- Traveler → Vendor Directory: finds vendors
- Traveler → Marketplace Orders: tracks orders
- Traveler → Checkout: starts checkout
- Checkout → Razorpay: creates payment
- Checkout → Order State: saves order
- Traveler → Authentication: signs in
- Auth Routes → Authentication: serves auth
- Traveler → Analytics Dashboard: reviews trends
- Traveler → Analytics Export: exports reports
