How sreypinkim-pixel/vireyak works
Vireyak is a Cambodia travel-discovery and booking-preview website. Visitors search stays or attractions, browse filtered listings and detail pages, and can view a trip estimate; province guides and a searchable places directory provide additional discovery paths. The README explicitly limits booking, inventory, accounts, and APIs to previews or local demos. The principal page composition and several domain helpers are evidenced in excerpts/index references; unsampled feature connections are omitted where their callers are not shown.
Main entry points: ListingExplorer.tsx Listing filters · DetailPage.tsx Detail presentation · provinces.ts Province catalog · travel.ts Illustrative travel data
Components 25
Travel discovery
- Home experience
app/page.tsx - Travel search
components/SearchForm.tsx - Stay listings
app/stays/page.tsx - Experience listings
app/attraction/page.tsx - Listing filters
components/ListingExplorer.tsx - Stay details
app/stays/[id]/page.tsx - Attraction details
app/attraction/[id]/page.tsx - Detail presentation
components/DetailPage.tsx - Trip estimate
components/BookingPanel.tsx
Catalog and provinces
- Illustrative travel data
data/travel.ts - Travel data types
lib/travel-types.ts - Province guide
app/provinces/[id]/page.tsx - Province attractions
app/provinces/[id]/attractions/page.tsx - Province catalog
lib/provinces.ts - Demo attractions API
app/api/attractions/route.ts - Province demo API
app/api/provinces/[id]/attractions/route.ts - Places directory
app/table/PlacesTable.tsx - About and guidance
app/about/page.tsx - Cambodia catalogue adapter
lib/camTripApi.ts
Account previews
- Account forms
components/AuthForm.tsx - Local demo session
lib/demoSession.ts
Shared experience
- Shared navigation
components/Navbar.tsx - Application shell
app/layout.tsx - Sample reviews
components/home/reviews/reviews.ts
Other components
- Traveler
Connections 25
- Traveler → Home experience: opens
app/page.tsx - Home experience → Travel search: renders
app/page.tsx - Home experience → Sample reviews: renders
- Travel search → Stay listings: routes search
components/SearchForm.tsx - Travel search → Experience listings: routes search
components/SearchForm.tsx - Stay listings → Listing filters: renders
app/stays/page.tsx - Experience listings → Listing filters: renders
app/attraction/page.tsx - Listing filters → Illustrative travel data: filters data
components/ListingExplorer.tsx - Listing filters → Stay details: links listings
- Listing filters → Attraction details: links listings
- Stay details → Detail presentation: renders
app/stays/[id]/page.tsx - Attraction details → Detail presentation: renders
app/attraction/[id]/page.tsx - Detail presentation → Trip estimate: renders
components/DetailPage.tsx - Detail presentation → Illustrative travel data: reads listing
app/stays/[id]/page.tsx - Demo attractions API → Illustrative travel data: reads attractions
app/api/attractions/route.ts - Demo attractions API → Province catalog: adds province data
app/api/attractions/route.ts - Province demo API → Province catalog: looks up province
app/api/provinces/[id]/attractions/route.ts - Province catalog → Illustrative travel data: filters attractions
lib/provinces.ts - Province attractions → Province catalog: lists attractions
app/provinces/[id]/attractions/page.tsx - Province guide → Cambodia catalogue adapter: loads province data
- About and guidance → Cambodia catalogue adapter: loads highlights
app/about/page.tsx - Places directory → Traveler: serves directory
- Account forms → Local demo session: records demo session
components/AuthForm.tsx - Application shell → Shared navigation: shares navigation
- Traveler → Application shell: visits site