Skip to content

Repository files navigation

VoyageAI Travel Planner — Frontend

VoyageAI is a premium, state-of-the-art interactive travel planning web application. The frontend is built on React and Vite, designed to work in tandem with a LangGraph multi-agent backend. It orchestrates a stream of responses from 8 specialized AI agents to deliver dynamic, high-fidelity itineraries, budget analyses, weather forecast advisories, and geographic travel routes.


🚀 Key Features

1. 8 LangGraph Agents Hub

  • Tracks and displays real-time generation updates for all 8 backend agents:
    1. Destination Agent — Curates overview, descriptions, and hero imagery.
    2. Attraction Agent — Selects top sightseeing locations.
    3. Hotel Agent — Recommends hotels and alternative accommodations.
    4. Dining Agent — Suggests top restaurants and local culinary highlights.
    5. Weather Agent — Analyzes forecast advisories and packing safety tips.
    6. Local Agent — Yields insider travel styles and suitabilities.
    7. Transport Agent — Compares intercity logistics, pricing, and speed.
    8. Budget Agent — Audits costs and suggests revisions to match user budgets.

2. High-Fidelity Interactive Map

  • Integrated with Leaflet and OpenStreetMap, styled with CartoDB Dark Matter.
  • Geocoding Lookups: Dynamically geocodes the destination and each attraction name.
  • Route Polyline Path: Draws a glowing, semi-transparent purple travel path connecting attractions in sequential order.
  • Custom Dark Popups: Sleek dark navy tooltips with gold attraction badges and distance indicators.
  • Floating Legend Overlay: A glassmorphic overlay guide listing attraction path indexes at a glance.

3. Step-by-Step Onboarding Tour

  • A custom React tour wizard that spotlights form input fields using dynamic dark backdrops.
  • Scroll-aligns and guides the user through Departure, Destination, Duration, Budget, and Preferences before submitting.

4. Direct Media & Attribution Handling

  • Directly extracts and displays high-quality photos (e.g., Pexels images) returned by the agents.
  • Renders photographer names and source attributions overlayed on cinematic banners.

5. Stream Control & Failure Safeguards

  • Live elapsed stopwatch counting final response seconds.
  • SSE Stream Abort: Instantly triggers network cancellation (AbortController) to shut down generation processes if any agent encounters an "error" status.

6. Premium Responsive CSS & Layouts

  • Centered Symmetric Shell: All pages sit in a balanced 840px max-width container, correcting left-side screen biases on large viewports.
  • Micro-animations: Button hover vertical translations (translateY(-1px)), glow drop-shadows, active click feedback, and sidebar link translations (translateX(4px)).
  • Responsive Wrappers: Flex layout wrapping tab items with scrollbar-hidden rules for smooth mobile operations.

🛠️ Technology Stack

  • Framework: React 18
  • Build Tool: Vite 6
  • Routing: React Router DOM 6
  • Map System: Leaflet 1.9 (OpenStreetMap CartoDB dark tile layers)
  • Styling: Vanilla CSS (Premium dark mode palette, glassmorphism, responsive media queries)

💻 Getting Started

1. Installation

Clone the repository and install the project dependencies:

npm install

2. Run Development Server

Start the local Vite server:

npm run dev

3. Production Build

Validate and compile the project into minified static assets (dist folder):

npm run build

4. Code Quality & Linting

Run ESLint to check for syntax and styling compliance:

npm run lint

👤 Author

  • Satyabrata Mishra

About

VoyageAI Travel Planner - Frontend

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages