How aayans314/avaylable_locus works
AvayLable is an Expo mobile app prototype focused on campus ride sharing, with campus-email verification, driver discovery, ride booking, and Stripe payment. The main user flow runs from account access to the home/map experience, then ride selection and booking; payment creates a ride record through the API. The README also describes campus trust, rural transportation, and future peer-service expansion. Source excerpts show several client-side calls, but most API implementations and some screens were not sampled, so links to those areas are limited.
Main entry points: home.tsx Ride Home · Map.tsx Driver Map · find-ride.tsx Find Ride · Payment.tsx Payment Sheet
Components 24
Identity and Access
- Email Sign Up
app/(auth)/sign-up.tsx - Google OAuth
components/OAuth.tsx - Auth Helpers
lib/auth.ts - User API
app/(api)/user+api.ts - Profile Tab
app/(root)/(tabs)/profile.tsx
Ride Discovery and Booking
- Ride Home
app/(root)/(tabs)/home.tsx - Find Ride
app/(root)/find-ride.tsx - Driver Map
components/Map.tsx - Driver API
app/(api)/driver+api.ts - Confirm Ride
app/(root)/confirm-ride.tsx - Book Ride
app/(root)/book-ride.tsx - Ride Card
components/RideCard.tsx - Ride History
app/(root)/(tabs)/rides.tsx - Chat Tab
app/(root)/(tabs)/chat.tsx
Payments and Records
- Payment Sheet
components/Payment.tsx - Create Payment API
app/(api)/(stripe)/create+api.ts - Pay API
app/(api)/(stripe)/pay+api.ts - Create Ride API
app/(api)/ride/create+api.ts - Ride Detail API
app/(api)/ride/[id]+api.ts
Client Services
- Map Calculations
lib/map.ts - API Fetch
lib/fetch.ts - Location State
store/index.ts - Place Search
components/GoogleTextInput.tsx
Other components
- Student
Connections 27
- Student → Email Sign Up: creates account
app/(auth)/sign-up.tsx - Student → Google OAuth: signs in
components/OAuth.tsx - Email Sign Up → User API: registers user
app/(auth)/sign-up.tsx - Google OAuth → Auth Helpers: starts sign-in
components/OAuth.tsx - Auth Helpers → User API: registers user
lib/auth.ts - Student → Ride Home: opens rides
- Ride Home → API Fetch: loads ride history
app/(root)/(tabs)/home.tsx - Ride Home → Ride Detail API: requests rides
app/(root)/(tabs)/home.tsx - Ride Home → Driver Map: renders map
app/(root)/(tabs)/home.tsx - Ride Home → Ride Card: renders recent rides
app/(root)/(tabs)/home.tsx - Ride Home → Location State: sets locations
app/(root)/(tabs)/home.tsx - Driver Map → API Fetch: loads drivers
components/Map.tsx - Driver Map → Driver API: requests drivers
components/Map.tsx - Driver Map → Map Calculations: calculates routes
components/Map.tsx - Driver Map → Location State: reads locations
components/Map.tsx - Student → Find Ride: selects destination
- Find Ride → Place Search: searches places
app/(root)/find-ride.tsx - Find Ride → Location State: stores destination
app/(root)/find-ride.tsx - Find Ride → Confirm Ride: continues booking
- Confirm Ride → Book Ride: confirms selection
- Book Ride → Payment Sheet: presents payment
app/(root)/book-ride.tsx - Payment Sheet → Create Payment API: creates intent
components/Payment.tsx - Payment Sheet → Pay API: confirms payment
components/Payment.tsx - Payment Sheet → Create Ride API: records paid ride
components/Payment.tsx - Ride History → Ride Detail API: loads ride history
- Ride Home → Chat Tab: opens chat
- Student → Profile Tab: views profile