How vkg6835/airport-campanion works
AI Airport Companion combines a React airport-assistance interface with a FastAPI backend. A traveler provides onboarding and flight context, then uses chat, flight status, nearby-place and shopping suggestions, security guidance, or navigation; the chat hook posts questions to the backend and displays its response. The documented product also includes voice assistance, accessibility settings, flight-change alerts, and user modes. Backend source indicates dedicated chat, navigation, flight, profile, and voice services. Backend relationships beyond the shown chat endpoint are left unverified where excerpts do not establish their calls.
Main entry points: App.jsx Airport companion · main.py FastAPI application · RAGService.py Knowledge retrieval · ChatInterface.jsx Chat interface
Components 28
Traveler interface
- Airport companion
src/App.jsx - Traveler onboarding
src/components/Onboarding/OnboardingModal.jsx - Flight dashboard
src/components/LeftPanel/LeftPanel.jsx - Chat interface
src/components/ChatInterface/ChatInterface.jsx - Chat state
src/hooks/useChat.js - Route display
src/components/Navigation/RouteDisplay.jsx - Budget food finder
src/components/FoodFinder/BudgetFoodFinder.jsx - Security guidance
src/components/SecurityInfo/SecurityInfo.jsx - Nearby suggestions
src/components/RightPanel/RightPanel.jsx - Flight alerts
src/components/Notifications/FlightChangeAlert.jsx - Voice controls
src/hooks/useVoice.js
User state
- Flight and user state
src/context/AppContext.jsx - Accessibility settings
src/context/AccessibilityContext.jsx
API and orchestration
- FastAPI application
main.py
Airport services
- AI chat service
Backend/Chatbot.py - Indoor navigation
Backend/NavigationService.py - Flight monitoring
Backend/FlightMonitor.py - User profiles
Backend/UserDB.py - Speech output
Backend/VoiceService.py - Speech recognition
Backend/STT.py
Airport knowledge
- Knowledge retrieval
Backend/RAGService.py - Knowledge preparation
Backend/DataGenerator.py - Airport reference data
Data/airport_knowledge.json - Food and shops data
Data/food_database.json - Security procedures
Data/security_procedures.json - Airport map data
Data/mumbai_data.geojson - Shopping data
Data/shopping_database.json
Other components
- Traveler
Connections 31
- Traveler → Airport companion: uses
README.md - Airport companion → Traveler onboarding: presents
src/App.jsx - Airport companion → Flight dashboard: renders
src/App.jsx - Airport companion → Chat interface: renders
src/App.jsx - Airport companion → Nearby suggestions: renders
src/App.jsx - Airport companion → Security guidance: opens
src/App.jsx - Airport companion → Budget food finder: opens
src/App.jsx - Airport companion → Flight alerts: renders
src/App.jsx - Airport companion → Flight and user state: reads
src/App.jsx - Airport companion → Accessibility settings: provides
src/App.jsx - Traveler onboarding → Flight and user state: completes profile
src/App.jsx - Chat interface → Chat state: uses
src/components/ChatInterface/ChatInterface.jsx - Chat interface → Flight and user state: reads context
src/components/ChatInterface/ChatInterface.jsx - Chat interface → Voice controls: uses
src/components/ChatInterface/ChatInterface.jsx - Chat interface → Route display: renders
src/components/ChatInterface/ChatInterface.jsx - Chat state → FastAPI application: posts chat
src/hooks/useChat.js - FastAPI application → AI chat service: dispatches chat
main.py - FastAPI application → Indoor navigation: dispatches routes
main.py - FastAPI application → Flight monitoring: checks flights
main.py - FastAPI application → User profiles: reads profiles
main.py - FastAPI application → Speech output: dispatches speech
main.py - FastAPI application → Speech recognition: dispatches recognition
- AI chat service → Knowledge retrieval: uses retrieval
Backend/Chatbot.py - Knowledge preparation → Knowledge retrieval: prepares knowledge
Backend/DataGenerator.py - Voice controls → FastAPI application: requests speech
src/hooks/useVoice.js - Flight alerts → FastAPI application: receives updates
- Knowledge retrieval → Airport reference data: indexes
- Knowledge retrieval → Food and shops data: indexes
- Knowledge retrieval → Security procedures: indexes
- Knowledge retrieval → Shopping data: indexes
- Indoor navigation → Airport map data: uses map