How mahishaarma/astrasafe works
AstraSafe is a travel-safety and community web app for women travelers. The main workflow moves from app entry and explorer verification into destination safety information and then into practical travel actions: transport, local connections, buddy plans, check-ins, and community support. The interface also provides emergency, privacy, offline-map, and personal-safety tools. App.tsx owns tab and modal orchestration; most feature components appear to manage their own UI state. The excerpts show a tourist-registration HTTP request, but do not expose server.ts routes or establish other backend wiring.
Main entry points: App.tsx App orchestration · mockData.ts Travel sample data · DirectChatAndCallModal.tsx Direct chat and calls · Navbar.tsx Navigation
Components 26
App shell
- App orchestration
src/App.tsx - Theme provider
src/context/ThemeContext.tsx - Navigation
src/components/Navbar.tsx - Splash screen
src/components/SplashScreen.tsx - Brand logo
src/components/AstraSafeLogo.tsx - Travel sample data
src/data/mockData.ts - HTTP server
server.ts
Safety tools
- Explorer onboarding
src/components/FemaleOnboardingModal.tsx - ID verification
src/components/IDVerificationModal.tsx - Privacy settings
src/components/PrivacySettingsModal.tsx - Destination intelligence
src/components/DestinationIntelligence.tsx - Safety methodology
src/components/SafetyScoreMethodologyModal.tsx - Offline maps
src/components/OfflineMapModal.tsx - Emergency directory
src/components/EmergencyDirectoryModal.tsx - SOS
src/components/SOSModal.tsx - Fake call
src/components/FakeCallModal.tsx - AI safety companion
src/components/AISafetyCompanion.tsx
Travel planning
- Cab booking and guard
src/components/CabBookingAndGuard.tsx - Cab safety
src/components/CabSafetyModal.tsx - Guides and peers
src/components/LocalGuidesAndPeers.tsx - Buddy plans
src/components/TravelBuddyPlans.tsx - Tourist check-in
src/components/TouristCheckInCard.tsx
Community
- Community feed
src/components/CommunityFeed.tsx - Direct chat and calls
src/components/DirectChatAndCallModal.tsx
Other components
- Traveler
- Registration endpoint
Connections 31
- Traveler → App orchestration: uses
src/App.tsx - App orchestration → Splash screen: shows
src/App.tsx - App orchestration → Navigation: renders
src/App.tsx - App orchestration → Explorer onboarding: renders
src/App.tsx - App orchestration → ID verification: renders
src/App.tsx - App orchestration → Privacy settings: renders
src/App.tsx - App orchestration → Destination intelligence: renders
src/App.tsx - App orchestration → Cab booking and guard: renders
src/App.tsx - App orchestration → Guides and peers: renders
src/App.tsx - App orchestration → Tourist check-in: renders
src/App.tsx - App orchestration → AI safety companion: renders
src/App.tsx - App orchestration → Community feed: renders
src/App.tsx - App orchestration → Buddy plans: renders
src/App.tsx - App orchestration → Direct chat and calls: renders
src/App.tsx - App orchestration → SOS: renders
src/App.tsx - App orchestration → Offline maps: renders
src/App.tsx - App orchestration → Emergency directory: renders
src/App.tsx - App orchestration → Safety methodology: renders
src/App.tsx - App orchestration → Cab safety: renders
src/App.tsx - App orchestration → Fake call: renders
src/App.tsx - App orchestration → Travel sample data: loads defaults
src/App.tsx - Traveler → Registration endpoint: submits registration
- Registration endpoint → HTTP server: handled by
- Traveler → Theme provider: sets preference
src/context/ThemeContext.tsx - App orchestration → Theme provider: runs within
src/main.tsx - Explorer onboarding → Brand logo: renders
src/components/FemaleOnboardingModal.tsx - Navigation → Brand logo: renders
src/components/Navbar.tsx - Cab booking and guard → Travel sample data: loads bookings
src/components/CabBookingAndGuard.tsx - Community feed → Travel sample data: loads feed data
src/components/CommunityFeed.tsx - Guides and peers → Direct chat and calls: opens conversation
- Buddy plans → Direct chat and calls: opens conversation