Skip to content

yuqiannemo/WanderMind

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

19 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿงญ WanderMind

Claude-Powered AI Travel Route Planner

WanderMind is an intelligent travel planning application that uses Anthropic's Claude AI to create personalized travel itineraries. Built for Calhacks, it combines natural language processing with interactive mapping to deliver a seamless trip planning experience.

WanderMind Next.js FastAPI

โœจ Features

  • ๐Ÿค– AI-Powered Recommendations: Claude analyzes your preferences and suggests personalized attractions
  • ๐Ÿ—บ๏ธ Interactive Map Interface: Beautiful Google Maps-style interface using React Leaflet
  • ๐Ÿ“ Smart Route Optimization: Automatically generates efficient routes with travel times
  • ๐Ÿ’ฌ Natural Language Refinement: Chat with Claude to modify your itinerary
  • ๐Ÿ“… Multi-Day Planning: Organize trips across multiple days with timeline view
  • ๐ŸŽจ Modern UI/UX: Sleek, responsive design with smooth animations

๐Ÿ—๏ธ Architecture

Frontend

  • Framework: Next.js 14 (React 18)
  • Styling: Tailwind CSS
  • Animations: Framer Motion
  • Maps: React Leaflet + OpenStreetMap
  • Icons: Lucide React
  • Language: TypeScript

Backend

  • Framework: FastAPI (Python)
  • AI: Anthropic Claude 3.5 Sonnet
  • Geocoding: Geopy + Nominatim
  • API: RESTful endpoints

๐Ÿš€ Quick Start

Prerequisites

  • Node.js 18+ and npm/yarn
  • Python 3.8+
  • Anthropic API key (Get one here)

Installation

1. Clone the repository

git clone https://github.com/yuqiannemo/WanderMind.git
cd WanderMind

2. Set up the Backend

cd backend

# Create virtual environment
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate

# Install dependencies
pip install -r requirements.txt

# Configure environment
cp .env.example .env
# Edit .env and add your ANTHROPIC_API_KEY

3. Set up the Frontend

cd ../frontend

# Install dependencies
npm install
# or
yarn install

# Configure environment (optional)
cp .env.local.example .env.local

Running the Application

Terminal 1 - Backend

cd backend
source venv/bin/activate
python main.py

The API will be available at http://localhost:8000

Terminal 2 - Frontend

cd frontend
npm run dev
# or
yarn dev

The app will be available at http://localhost:3000

๐Ÿ“– Usage Guide

1. Onboarding

  • Enter your destination city
  • Select travel dates
  • Choose your interests from predefined tags

2. Explore Attractions

  • View AI-recommended attractions on the map
  • Click markers to see details
  • Select attractions you want to visit
  • Minimum 2 attractions required for route generation

3. Generate Route

  • Click "Generate Route" button
  • Claude optimizes the order and timing
  • View your itinerary in the timeline panel
  • Route shows on map with numbered markers

4. Refine Your Route

  • Open the chat panel
  • Ask Claude to modify your itinerary
    • "Swap day 1 and day 2"
    • "Start later in the morning"
    • "Add more time at the museum"
  • Claude updates your route in real-time

๐Ÿ”ง API Endpoints

POST /api/init

Initialize a new travel session

{
  "city": "Paris",
  "startDate": "2025-11-01",
  "endDate": "2025-11-03",
  "interests": ["Museums", "Food & Dining"]
}

POST /api/recommend

Get AI-powered attraction recommendations

{
  "session_id": "uuid"
}

POST /api/route

Generate optimized route

{
  "session_id": "uuid",
  "attractions": [...]
}

POST /api/refine

Refine route based on user message

{
  "session_id": "uuid",
  "message": "Make day 1 start later",
  "current_route": {...}
}

๐ŸŽจ Design Philosophy

  • Minimalist & Elegant: Clean interface inspired by Notion and Google Maps
  • Glass Morphism: Modern frosted glass effects for panels
  • Smooth Animations: Framer Motion for delightful interactions
  • Responsive: Desktop-first but mobile-friendly
  • Accessible: Semantic HTML and ARIA labels

๐Ÿ† Hackathon Features

Built for Calhacks in 24 hours, WanderMind showcases:

  • โœ… Rapid prototyping with modern frameworks
  • โœ… Claude AI integration for intelligent recommendations
  • โœ… Complex state management with React hooks
  • โœ… Real-time map interactions
  • โœ… Beautiful, production-ready UI
  • โœ… Full-stack TypeScript/Python implementation

๐Ÿ”ฎ Future Enhancements

  • User authentication and saved trips
  • Real-time collaboration
  • Integration with booking platforms
  • Weather and events data
  • Mobile app (React Native)
  • Multi-language support
  • Budget tracking
  • Restaurant reservations

๐Ÿ› ๏ธ Tech Stack Details

Frontend Dependencies

  • next - React framework with App Router
  • react-leaflet - React wrapper for Leaflet maps
  • framer-motion - Animation library
  • lucide-react - Icon library
  • axios - HTTP client
  • tailwindcss - Utility-first CSS

Backend Dependencies

  • fastapi - Modern Python web framework
  • anthropic - Official Claude SDK
  • geopy - Geocoding library
  • uvicorn - ASGI server
  • pydantic - Data validation

๐Ÿ“ License

MIT License - see LICENSE file for details

๐Ÿ‘ฅ Authors

Built with โค๏ธ for Calhacks

๐Ÿ™ Acknowledgments

  • Anthropic for Claude AI
  • OpenStreetMap contributors
  • Leaflet team
  • Vercel for Next.js

Happy Wandering! ๐ŸŒโœˆ๏ธ CalHacks 12.0

About

CalHacks 12.0

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors