How misterbamrungsuk-afk/misterbamrungsuk-web works
HaMoo is a mobile-first rent-a-friend marketplace. Its main customer journey is discovering providers, requesting a booking, then coordinating the booking and its in-app money lifecycle through chat, completion, and review. Separate product areas include provider applications and profiles, live tracking and private calls, membership, hotels, and commerce; admin tools oversee operational workflows. The README documents the main journey and capabilities. Source excerpts show booking creation, provider application/profile handling, and selected supporting calls; other subsystem links are omitted where their wiring was not shown.
Main entry points: bookings/route.ts Booking API · register/route.ts Application registration · store.ts Applicant records · membership/route.ts Membership
Components 24
Customer discovery
- Home and feed
src/app/(app)/home/page.tsx - Search and map
src/app/(app)/search/page.tsx - Provider profiles
src/app/p/[id]/view.tsx
Booking experience
- Booking flow
src/app/(app)/book/[id]/flow.tsx - Booking API
src/app/api/bookings/route.ts - Booking rules
src/lib/bookings/index.ts - Booking chat
src/app/(app)/chat/[roomId]/page.tsx - Live tracking
src/app/(app)/tracking/[id]/page.tsx - Private calls
src/lib/calls/index.ts
Provider operations
- Provider application
src/app/join/apply/page.tsx - Application registration
src/app/api/join/register/route.ts - Provider profile editing
src/app/api/join/profile/route.ts - Applicant records
src/lib/join/store.ts - Live provider listings
src/lib/home/live.ts - Admin operations
src/app/admin/page.tsx
Commerce services
- Wallet and payouts
src/lib/wallet/index.ts - Membership
src/app/api/membership/route.ts - Marketplace
src/lib/market/store.ts - Hotel stays
src/lib/hotels/store.ts
Shared platform
- Customer authentication
src/lib/customer/auth.ts - Customer profile
src/lib/customer/profile.ts - Supabase services
- Slip verification
src/lib/slip2go.ts
Other components
- Customer
Connections 26
- Customer → Home and feed: browses
- Home and feed → Provider profiles: opens profile
- Customer → Booking flow: requests booking
- Booking flow → Booking API: submits booking
- Booking API → Customer authentication: authenticates
src/app/api/bookings/route.ts - Booking API → Booking rules: creates booking
src/app/api/bookings/route.ts - Booking API → Live provider listings: finds provider
src/app/api/bookings/route.ts - Booking rules → Wallet and payouts: checks balance
src/lib/bookings/index.ts - Customer → Booking chat: coordinates booking
- Customer → Live tracking: tracks live
- Customer → Private calls: calls privately
- Customer → Provider application: applies as provider
- Provider application → Application registration: submits application
- Application registration → Applicant records: creates applicant
src/app/api/join/register/route.ts - Application registration → Slip verification: verifies slip
src/app/api/join/register/route.ts - Application registration → Supabase services: stores records
- Provider profile editing → Applicant records: saves profile
src/app/api/join/profile/route.ts - Live provider listings → Applicant records: lists applicants
src/lib/home/live.ts - Admin operations → Applicant records: reviews applicants
- Membership → Customer authentication: authenticates
src/app/api/membership/route.ts - Membership → Customer profile: reads profile
src/app/api/membership/route.ts - Customer → Membership: manages membership
- Customer → Marketplace: shops marketplace
- Customer → Hotel stays: books stays
- Customer authentication → Supabase services: reads sessions
src/lib/customer/auth.ts - Customer profile → Supabase services: reads and writes
src/lib/customer/profile.ts