How tanaychoudhari/ai-travel-planner works
SafarAI is a frontend-focused travel-planning prototype: a traveler enters trip preferences, the browser builds a trip brief, and the destination term filters sample itineraries for exploration. The landing page also presents regional discovery, travel styles, guide profiles, and FAQs. The Express service currently exposes only welcome and health endpoints; the README explicitly says AI itinerary generation and booking are not connected. Relationships below are limited to shown imports, calls, and documented behavior; those additional discovery sections are co-located in the landing-page component.
Main entry points: LandingPage.jsx Discovery landing page · layout.tsx App shell · Navbar.jsx Navigation · TripPlanningForm.jsx Trip brief form
Components 11
Travel experience
- App shell
frontend/app/layout.tsx - Navigation
frontend/components/Navbar.jsx - Discovery landing page
frontend/components/LandingPage.jsx - Footer links
frontend/components/Footer.jsx - Regions and styles
frontend/components/LandingPage.jsx - Guide profiles and FAQ
frontend/components/LandingPage.jsx
Trip planning
- Trip brief form
frontend/components/TripPlanningForm.jsx - Sample itinerary search
frontend/components/LandingPage.jsx
Backend service
- Express API
backend/server.js
Other components
- Traveler
- API client
Connections 12
- Traveler → Navigation: browses
frontend/components/Navbar.jsx - Traveler → Trip brief form: enters preferences
frontend/components/TripPlanningForm.jsx - Navigation → Discovery landing page: links to sections
frontend/components/Navbar.jsx - App shell → Navigation: renders
frontend/app/layout.tsx - App shell → Footer links: renders
frontend/app/layout.tsx - App shell → Discovery landing page: wraps page
- Discovery landing page → Trip brief form: renders
frontend/components/LandingPage.jsx - Trip brief form → Discovery landing page: updates search
frontend/components/LandingPage.jsx - Discovery landing page → Sample itinerary search: filters by term
frontend/components/LandingPage.jsx - Discovery landing page → Regions and styles: presents
README.md - Discovery landing page → Guide profiles and FAQ: presents
README.md - API client → Express API: requests endpoints
README.md