How gowtham11112007/waytogether works
WayTogether is a live group-travel app: riders sign in, get a location fix, search or choose a destination, create or join a coded trip, then share positions and trip updates while viewing the group on a map. The trip engine manages rider state, route progress, alerts, and actions; screens expose chat, status, regrouping, music, and SOS. README documents routing, map providers, background sharing, and Android plugins. Some subsystem links below rely on README or source-index references because their implementation excerpts were not provided.
Main entry points: TripContext.jsx Trip engine · TripScreen.jsx Live trip screen · App.jsx App shell · places.js Search and routing
Components 25
App and entry
- App shell
src/App.jsx - Sign-in setup
src/screens/Setup.jsx - Home and trip entry
src/screens/HomeScreen.jsx - Place search UI
src/components/SearchView.jsx - Live trip screen
src/screens/TripScreen.jsx
Trip engine
- Trip engine
src/state/TripContext.jsx - Trip statuses
src/data/trip.js
Trip features
- Live map
src/components/MapView.jsx - Convoy health
src/components/ConvoySheet.jsx - Group chat
src/components/ChatPanel.jsx - SOS interface
src/components/SOSScreen.jsx - Music controls
src/components/MusicSheet.jsx
Location and services
- Trip realtime
src/lib/realtime.js - GPS and battery
src/lib/location.js - Search and routing
src/lib/places.js - Geospatial calculations
src/lib/geo.js - Profile and trip storage
src/lib/profile.js - Trip notifications
src/lib/notify.js
Android support
- Android trip plugins
android/app/src/main/java/app/convoya/trip/TripAlertsPlugin.java - Plugin registration
android/app/src/main/java/app/convoya/trip/MainActivity.java - Media key plugin
android/app/src/main/java/app/convoya/trip/MediaControlPlugin.java
Other components
- Rider
- Supabase Realtime
- Photon and OSRM
- Map tile providers
Connections 28
- Rider → App shell: opens app
README.md - App shell → Sign-in setup: shows setup
src/App.jsx - App shell → Home and trip entry: shows when idle
src/App.jsx - App shell → Live trip screen: shows when active
src/App.jsx - App shell → Trip engine: provides trip state
src/App.jsx - Home and trip entry → Place search UI: opens search
src/screens/HomeScreen.jsx - Home and trip entry → Trip engine: creates or joins
src/screens/HomeScreen.jsx - Place search UI → Search and routing: searches places
src/components/SearchView.jsx - Live trip screen → Trip engine: uses trip state
src/screens/TripScreen.jsx - Live trip screen → Live map: renders map
src/screens/TripScreen.jsx - Live trip screen → Convoy health: opens health
src/screens/TripScreen.jsx - Live trip screen → Group chat: opens chat
src/screens/TripScreen.jsx - Live trip screen → SOS interface: opens SOS
src/screens/TripScreen.jsx - Live trip screen → Music controls: opens controls
src/screens/TripScreen.jsx - Trip engine → Trip realtime: exchanges trip events
README.md - Trip engine → GPS and battery: uses rider fix
README.md - Trip engine → Search and routing: uses route data
src/state/TripContext.jsx - Trip engine → Geospatial calculations: computes trip progress
src/state/TripContext.jsx - Trip engine → Profile and trip storage: loads and saves state
src/state/TripContext.jsx - Trip engine → Trip notifications: posts trip alerts
src/state/TripContext.jsx - Trip engine → Trip statuses: uses status definitions
src/state/TripContext.jsx - Trip realtime → Supabase Realtime: uses channels
README.md - Search and routing → Photon and OSRM: searches with
README.md - Search and routing → Photon and OSRM: routes with OSRM
README.md - Live map → Map tile providers: renders map styles
README.md - Android trip plugins → Plugin registration: registered by
android/app/src/main/java/app/convoya/trip/MainActivity.java - Live trip screen → Media key plugin: controls player
README.md - Trip notifications → Android trip plugins: uses native alerts
README.md