How baddamakshaya01-star/studio works
BharatVista is a Next.js tourism discovery starter: visitors browse destinations by category, open detailed spot pages, or submit interests, trip length, and budget to receive an AI-generated itinerary. The map separates destination content and presentation from itinerary input, server-side orchestration, and AI generation, with shared UI support. Connections follow shown imports, calls, and navigation; several planner and layout relationships are supported by the source index, while no persistent store or named external AI service is evidenced.
Main entry points: itinerary-form.tsx Itinerary form · page.tsx Destination home · layout.tsx App layout · toaster.tsx Toast renderer
Components 18
Destination discovery
- Destination home
src/app/page.tsx - Spot catalog
src/lib/tourist-spots.ts - Destination card
src/components/tourist-spot-card.tsx - Spot details
src/app/spots/[slug]/page.tsx - Spot types
src/lib/types.ts
Itinerary planning
- Planner page
src/app/itinerary-planner/page.tsx - Itinerary form
src/app/itinerary-planner/itinerary-form.tsx - Planner actions
src/app/itinerary-planner/actions.ts
AI generation
- Suggestion flow
src/ai/flows/personalized-itinerary-suggestion.ts - Genkit runtime
src/ai/genkit.ts
Shared presentation
- Site header
src/components/layout/header.tsx - App layout
src/app/layout.tsx - UI primitives
src/components/ui - Toast state hook
src/hooks/use-toast.ts - Toast renderer
src/components/ui/toaster.tsx - Toast component
src/components/ui/toast.tsx - Site footer
src/components/layout/footer.tsx
Other components
- Visitor
Connections 20
- Visitor → Destination home: opens
src/app/page.tsx - Visitor → Itinerary form: submits preferences
src/app/itinerary-planner/itinerary-form.tsx - Destination home → Spot catalog: filters catalog
src/app/page.tsx - Destination home → Destination card: renders cards
src/app/page.tsx - Destination card → Spot details: links to slug
src/components/tourist-spot-card.tsx - Spot details → Spot catalog: looks up spot
src/app/spots/[slug]/page.tsx - Spot catalog → Spot types: uses types
src/lib/tourist-spots.ts - Planner page → Itinerary form: renders form
src/app/itinerary-planner/page.tsx - Itinerary form → Planner actions: submits form action
src/app/itinerary-planner/itinerary-form.tsx - Planner actions → Suggestion flow: requests suggestion
src/app/itinerary-planner/actions.ts - Suggestion flow → Genkit runtime: defines AI flow
src/ai/flows/personalized-itinerary-suggestion.ts - Itinerary form → UI primitives: renders controls
src/app/itinerary-planner/itinerary-form.tsx - Itinerary form → Toast state hook: reports errors
src/app/itinerary-planner/itinerary-form.tsx - Site header → Destination home: links home
src/components/layout/header.tsx - Site header → Planner page: links planner
src/components/layout/header.tsx - App layout → Site header: renders header
src/app/layout.tsx - App layout → Site footer: renders footer
src/app/layout.tsx - App layout → Toast renderer: renders toaster
src/app/layout.tsx - Toast renderer → Toast state hook: subscribes to state
src/components/ui/toaster.tsx - Toast renderer → Toast component: renders toasts
src/components/ui/toaster.tsx