How sahilbambarkar/tripwise-ai-trip-planner works
Tripwise is a React travel-planning app. A user chooses a destination, duration, budget, and travel party; after Google sign-in, the create-trip screen asks Gemini for a JSON itinerary and saves it in Firestore. Users can then view the saved trip’s hotel and activity details or browse their saved trips. The README also describes hotel recommendations, maps, and OAuth; maps and place-photo lookup are visible, but live hotel search is not established by the sampled source. Relationships for unsampled view components are limited to documented routing and visible imports.
Main entry points: [tripId]/index.jsx Trip detail route · main.jsx App entry · create-trip/index.jsx Trip preferences and generation · my-trips/index.jsx Saved trips
Components 21
Trip planning
- App entry
src/main.jsx - Landing page
src/App.jsx - Hero
src/components/ui/custom/Hero.jsx - Trip preferences and generation
src/create-trip/index.jsx - Preference options and prompt
src/constants/options.jsx
Identity and navigation
- Header and sign-in
src/components/ui/custom/Header.jsx - Saved trips
src/my-trips/index.jsx - Trip card
src/my-trips/components/UserTripCardItem.jsx
Trip details
- Trip detail route
src/view-trip/[tripId]/index.jsx - Destination overview
src/view-trip/components/InfoSection.jsx - Hotel recommendations
src/view-trip/components/Hotels.jsx - Hotel card
src/view-trip/components/HotelCardItem.jsx - Activity itinerary
src/view-trip/components/PlacesToVisit.jsx - Activity card
src/view-trip/components/PlaceCardItem.jsx - Trip footer
src/view-trip/components/Footer.jsx
External services
- Itinerary generation
src/service/AIModal.jsx - Trip records
src/service/firebaseConfig.jsx - Google Places API
- Google Maps
- Google OAuth and profile
Other components
- Traveler
Connections 25
- Traveler → App entry: opens app
src/main.jsx - App entry → Landing page: routes to
src/main.jsx - Landing page → Hero: renders
src/App.jsx - App entry → Header and sign-in: renders
src/main.jsx - Traveler → Trip preferences and generation: enters preferences
- Trip preferences and generation → Preference options and prompt: uses options
src/create-trip/index.jsx - Trip preferences and generation → Itinerary generation: requests itinerary
src/create-trip/index.jsx - Trip preferences and generation → Trip records: saves trip
src/create-trip/index.jsx - Trip preferences and generation → Google OAuth and profile: requests sign-in
src/create-trip/index.jsx - Header and sign-in → Google OAuth and profile: requests sign-in
src/components/ui/custom/Header.jsx - App entry → Trip detail route: routes to
src/main.jsx - App entry → Saved trips: routes to
src/main.jsx - Saved trips → Trip records: queries trips
src/my-trips/index.jsx - Saved trips → Trip card: renders trips
src/my-trips/index.jsx - Trip detail route → Trip records: loads trip
src/view-trip/[tripId]/index.jsx - Trip detail route → Destination overview: renders
src/view-trip/[tripId]/index.jsx - Trip detail route → Hotel recommendations: renders
src/view-trip/[tripId]/index.jsx - Trip detail route → Activity itinerary: renders
src/view-trip/[tripId]/index.jsx - Trip detail route → Trip footer: renders
src/view-trip/[tripId]/index.jsx - Hotel recommendations → Hotel card: renders
src/view-trip/components/Hotels.jsx - Activity itinerary → Activity card: renders
src/view-trip/components/PlacesToVisit.jsx - Destination overview → Google Places API: looks up photos
src/view-trip/components/InfoSection.jsx - Destination overview → Google Maps: links destination
README.md - Traveler → Google Maps: views trip map
README.md - Traveler → Saved trips: browses trips