How sagar-kr11/hop-inn-ride-connector works
Hop-Inn is a mobile-first shared auto-rickshaw booking app for passengers and drivers. Passengers authenticate, choose pickup and destination, and request a solo or route/event-shared ride; drivers manage availability, location, and ride requests, while ride pages support ongoing-trip tracking. Separate capabilities cover curated events, safety contacts and SOS, OTP/Google sign-in, and an AI ride assistant. The graph combines documented product flows with sampled page and integration references; unsampled implementations are represented only where README or the source index establishes their role.
Main entry points: App.tsx Application router · client.ts Supabase client · Auth.tsx Authentication and signup · Booking.tsx Ride booking
Components 27
Passenger experience
- Home and discovery
src/pages/Home.tsx - Ride booking
src/pages/Booking.tsx - Place autocomplete
src/components/PlaceAutocomplete.tsx - Maps and location
src/components/GoogleMap.tsx - Ride tracking
src/pages/Ride.tsx - Ride history
src/pages/History.tsx - Event discovery
src/pages/Events.tsx - Ride assistant
src/components/RideAssistant.tsx
Driver experience
- Driver dashboard
src/pages/Driver.tsx - Driver routes
src/pages/DriverRoute.tsx
Identity and safety
- Authentication and signup
src/pages/Auth.tsx - OAuth consent
src/pages/OAuthConsent.tsx - Safety settings
src/pages/Safety.tsx - Send OTP
supabase/functions/send-otp/index.ts - Verify OTP
supabase/functions/verify-otp/index.ts - SOS alerts
supabase/functions/trigger-sos/index.ts
Platform services
- Application router
src/App.tsx - Supabase client
src/integrations/supabase/client.ts - Supabase services
- Google Maps and Places
- Twilio SMS
- Assistant function
supabase/functions/ride-assistant/index.ts - Lovable AI Gateway
- MCP function
supabase/functions/mcp/index.ts - MCP ride and profile tools
src/lib/mcp/tools
Other components
- Passenger
- Driver
Connections 39
- Passenger → Home and discovery: browses
- Driver → Authentication and signup: signs up
src/pages/Auth.tsx - Passenger → Authentication and signup: signs in
- Home and discovery → Ride booking: starts booking
- Ride booking → Place autocomplete: selects places
src/pages/Booking.tsx - Ride booking → Maps and location: shows locations
src/pages/Booking.tsx - Place autocomplete → Google Maps and Places: queries Places
- Maps and location → Google Maps and Places: renders map
src/components/GoogleMap.tsx - Ride booking → Supabase client: creates ride
README.md - Ride tracking → Supabase client: reads ride updates
README.md - Ride history → Supabase client: reads ride history
- Event discovery → Supabase client: reads event data
- Driver dashboard → Supabase client: updates driver and rides
src/pages/Driver.tsx - Driver routes → Supabase client: manages routes
- Authentication and signup → Supabase client: authenticates
src/pages/Auth.tsx - OAuth consent → Supabase client: approves authorization
src/pages/OAuthConsent.tsx - Safety settings → Supabase client: manages contacts
src/pages/Safety.tsx - Supabase client → Supabase services: connects
src/integrations/supabase/client.ts - Authentication and signup → Send OTP: requests code
README.md - Authentication and signup → Verify OTP: verifies code
README.md - Send OTP → Twilio SMS: sends SMS
README.md - Verify OTP → Supabase services: checks OTP
README.md - Safety settings → SOS alerts: triggers SOS
README.md - SOS alerts → Twilio SMS: alerts contacts
README.md - SOS alerts → Supabase services: logs event
README.md - Application router → Home and discovery: routes to
src/App.tsx - Application router → Ride booking: routes to
src/App.tsx - Application router → Driver dashboard: routes to
src/App.tsx - Application router → Driver routes: routes to
src/App.tsx - Application router → Event discovery: routes to
src/App.tsx - Application router → Authentication and signup: routes to
src/App.tsx - Application router → Safety settings: routes to
src/App.tsx - Application router → Ride history: routes to
src/App.tsx - Application router → Ride tracking: routes to
src/App.tsx - Application router → OAuth consent: routes to
src/App.tsx - Application router → Ride assistant: mounts
src/App.tsx - Ride assistant → Assistant function: streams chat
src/components/RideAssistant.tsx - Assistant function → Lovable AI Gateway: requests generation
- MCP function → MCP ride and profile tools: dispatches tools