How huzz-bitcrafter/wanderlust-travel works
Wanderlust is a full-stack travel discovery, booking, and trip-planning platform. The main journey is browse or search destinations, packages, hotels, and flights; choose an offering; complete checkout; then manage bookings and itineraries in an account. Reviews and contact submissions feed moderation and an admin workspace. The README documents these capabilities, while sampled source confirms the home-page catalog calls, review reads, and Supabase access patterns; unsampled subsystem wiring is represented only where documented.
Main entry points: SearchWidget.tsx Search widget · ReviewSection.tsx Review experience · checkout.tsx Checkout · client.ts Public Supabase client
Components 26
Travel discovery
- Home discovery
src/routes/index.tsx - Search widget
src/components/home/SearchWidget.tsx - Catalog pages
src/routes/destinations.tsx - Destination detail
src/routes/destinations.$slug.tsx - Package catalog
src/routes/packages.tsx - Package details
src/routes/packages.$slug.tsx - Hotel search
src/routes/hotels.tsx - Hotel details
src/routes/hotels.$id.tsx - Flight search
src/routes/flights.tsx - Photo gallery
src/routes/gallery.tsx - Catalog functions
src/lib/catalog.functions.ts
Booking and trips
- Checkout
src/routes/checkout.tsx - Booking confirmation
src/routes/checkout/confirmation.tsx - Trip dashboard
src/routes/account/index.tsx - Itinerary management
src/routes/account/itineraries.tsx
Accounts and feedback
- Registration and login
src/routes/register.tsx - Supabase Auth
- Review experience
src/components/shared/ReviewSection.tsx - Review functions
src/lib/review.functions.ts
Platform operations
- Contact form
src/routes/contact.tsx - Admin workspace
src/routes/admin/index.tsx - Review moderation
src/routes/admin/reviews.tsx - Public Supabase client
src/integrations/supabase/client.ts - Public server client
src/lib/supabase-public.server.ts - Supabase database
Other components
- Traveler
Connections 33
- Traveler → Home discovery: browses
- Home discovery → Catalog functions: loads featured data
- Home discovery → Search widget: offers search
- Search widget → Catalog pages: opens results
- Search widget → Package catalog: opens results
- Search widget → Hotel search: opens results
- Search widget → Flight search: opens results
- Catalog pages → Destination detail: opens details
- Package catalog → Package details: opens details
- Hotel search → Hotel details: opens details
- Traveler → Photo gallery: views
- Traveler → Checkout: books
- Package details → Checkout: starts booking
- Hotel details → Checkout: starts booking
- Flight search → Checkout: starts booking
- Checkout → Booking confirmation: confirms booking
- Traveler → Registration and login: registers or signs in
- Registration and login → Supabase Auth: authenticates
- Traveler → Trip dashboard: manages trips
- Trip dashboard → Itinerary management: manages itineraries
- Destination detail → Review experience: shows reviews
- Package details → Review experience: shows reviews
- Hotel details → Review experience: shows reviews
- Review experience → Review functions: loads reviews and ratings
- Review functions → Public server client: queries public data
- Public server client → Supabase database: reads
- Review experience → Public Supabase client: submits reviews
- Public Supabase client → Supabase database: reads and writes
- Traveler → Contact form: sends inquiry
- Admin workspace → Review moderation: moderates reviews
- Review moderation → Public Supabase client: deletes reviews
- Admin workspace → Public Supabase client: manages platform data
- Catalog functions → Public server client: loads catalog data