How achrafelmakaoui/triply_travel_planner works
Triply is a travel-planning web app: users authenticate, submit a natural-language trip request, follow AI planning progress, approve or cancel the booking summary, and save the result. The React client uses an Express API for authentication, trip history, profiles, and sharing, with MongoDB-backed users and trips. The README documents a separate FastAPI/LangGraph multi-agent service and its research, budget, itinerary, and booking capabilities, but that service is absent from the supplied tree and excerpts; its internal modules and connections are therefore not mapped.
Main entry points: App.js App routing · axios.js API client · AuthContext.js Auth context · protect.js JWT protection
Components 27
React client
- App routing
frontend/src/App.js - Auth context
frontend/src/context/AuthContext.js - API client
frontend/src/api/axios.js - Sign up
frontend/src/pages/SignUp/SignUp.jsx - Sign in
frontend/src/pages/SignIn/SignIn.jsx - Dashboard
frontend/src/pages/Dashboard/Dashboard.jsx - Profile page
frontend/src/pages/Profile/Profile.jsx - Trip planner
frontend/src/pages/TripPlanner/TripPlanner.jsx - My trips
frontend/src/pages/MyTrips/MyTrips.jsx - Trip detail
frontend/src/pages/TripDetail/TripDetail.jsx - Public trip
frontend/src/pages/PublicTrip/PublicTrip.jsx - Landing page
frontend/src/pages/LandingPage/LandingPage.jsx
Identity and profiles
- Auth routes
backend/src/routes/auth.js - JWT protection
backend/src/middleware/protect.js - Profile routes
backend/src/routes/profile.js - User model
backend/src/models/User.js
Trip management
- Trip routes
backend/src/routes/trips.js - Trip model
backend/src/models/Trip.js - Public trip lookup
backend/src/app.js - MongoDB
AI planning
- Planning routes
backend/src/routes/plan.js - Multi-agent AI
- Destination research
- Budget planning
- Itinerary creation
- Booking approval
Other components
- Traveler
Connections 39
- Traveler → App routing: uses
README.md - App routing → Landing page: routes to
frontend/src/App.js - App routing → Sign up: routes to
frontend/src/App.js - App routing → Sign in: routes to
frontend/src/App.js - App routing → Dashboard: routes to
frontend/src/App.js - App routing → Trip planner: routes to
frontend/src/App.js - App routing → My trips: routes to
frontend/src/App.js - App routing → Profile page: routes to
frontend/src/App.js - App routing → Trip detail: routes to
frontend/src/App.js - App routing → Public trip: routes to
frontend/src/App.js - Sign up → Auth context: registers via
frontend/src/pages/SignUp/SignUp.jsx - Sign in → Auth context: signs in via
frontend/src/pages/SignIn/SignIn.jsx - Auth context → API client: sends requests
frontend/src/context/AuthContext.js - API client → Auth routes: HTTP requests
README.md - Auth routes → User model: reads and creates
backend/src/routes/auth.js - Auth routes → JWT protection: authenticates
backend/src/routes/auth.js - JWT protection → User model: loads user
backend/src/middleware/protect.js - Profile page → API client: requests profile
frontend/src/pages/Profile/Profile.jsx - API client → Profile routes: HTTP requests
README.md - Profile routes → JWT protection: authenticates
backend/src/routes/profile.js - Profile routes → User model: reads and updates
backend/src/routes/profile.js - Trip planner → API client: resumes and saves
frontend/src/pages/TripPlanner/TripPlanner.jsx - Trip planner → Planning routes: streams planning
README.md - API client → Trip routes: trip requests
README.md - Trip routes → JWT protection: authenticates
backend/src/routes/trips.js - Trip routes → Trip model: reads and writes
backend/src/routes/trips.js - Trip model → MongoDB: persists trips
- Planning routes → Multi-agent AI: proxies requests
README.md - Multi-agent AI → Destination research: coordinates agents
- Multi-agent AI → Budget planning: coordinates agents
- Multi-agent AI → Itinerary creation: coordinates agents
- Multi-agent AI → Booking approval: coordinates agents
- My trips → API client: lists and manages
frontend/src/pages/MyTrips/MyTrips.jsx - Trip detail → API client: loads trip
frontend/src/pages/TripDetail/TripDetail.jsx - Public trip → API client: loads shared trip
- API client → Public trip lookup: HTTP request
README.md - Public trip lookup → Trip model: looks up share
backend/src/app.js - Public trip lookup → MongoDB: queries trips
- App routing → Auth context: checks session
frontend/src/App.js