How simranjit8933/dream-nest works
DreamNest is a stays-booking application with an AI trip planner. Travelers browse and filter stays, inspect listing details and reviews, save favorites, get booking quotes and book; they can also submit a trip request for budget-aware stay suggestions, an activity itinerary and a cost estimate. Hosts can add listings. The graph separates the client experience, booking domain, and trip-planning stages, with shared persistence and pricing logic. Some subsystem paths and links come from the README or source index because their implementation was not excerpted.
Main entry points: copilot.js Trip Planner · pages.jsx Stay and Trip Pages · App.jsx App Router · api.js API Client
Components 20
Traveler Experience
- App Router
client/src/App.jsx - Stay and Trip Pages
client/src/pages.jsx - Wishlist View
client/src/Wishlist.jsx - API Client
client/src/api.js - Photo Carousel
client/src/Carousel.jsx - Photo Gallery
client/src/Gallery.jsx - Map View
client/src/MapView.jsx
Stays and Booking
- Express App
server/index.js - Stay and Booking Routes
server/routes/index.js - Pricing Logic
server/services/budget.js
Trip Planning
- Copilot Route
server/routes/copilot.js - Trip Planner
server/services/copilot.js - Fallback Planner
server/services/freeplanner.js
Domain Data
- Booking Models
server/models/index.js - Stay Catalog
server/data/listings.js - Activity Catalog
server/data/activities.js - Activity Model
server/models/Activity.js - Saved Trip Model
server/models/TripPlan.js
Other components
- Traveler
- Anthropic AI
Connections 23
- Traveler → App Router: uses
README.md - App Router → Stay and Trip Pages: routes to
client/src/App.jsx - App Router → Wishlist View: renders
client/src/App.jsx - App Router → API Client: loads session
client/src/App.jsx - Stay and Trip Pages → API Client: requests data
client/src/pages.jsx - Stay and Trip Pages → Photo Carousel: renders
client/src/pages.jsx - Stay and Trip Pages → Photo Gallery: renders
client/src/pages.jsx - Stay and Trip Pages → Map View: renders
client/src/pages.jsx - Wishlist View → API Client: requests data
client/src/Wishlist.jsx - API Client → Express App: calls API
client/src/api.js - Express App → Stay and Booking Routes: mounts routes
server/index.js - Express App → Copilot Route: mounts routes
server/index.js - Stay and Booking Routes → Booking Models: reads and writes
server/routes/index.js - Stay and Booking Routes → Pricing Logic: prices stays
server/routes/index.js - Copilot Route → Trip Planner: plans trip
server/routes/copilot.js - Copilot Route → Saved Trip Model: saves plan
server/routes/copilot.js - Trip Planner → Booking Models: queries stays
server/services/copilot.js - Trip Planner → Activity Model: queries activities
server/services/copilot.js - Trip Planner → Pricing Logic: calculates costs
server/services/copilot.js - Trip Planner → Fallback Planner: falls back to
server/services/copilot.js - Trip Planner → Anthropic AI: requests plans
server/services/copilot.js - Stay Catalog → Booking Models: seeds stays
server/seed.js - Activity Catalog → Activity Model: seeds activities
server/seed.js