How yaswanthkillampalli/stayhopsai works
StayOps AI coordinates hotel bookings and guest-facing check-in with operational departments, staff tasks, and Telegram self-service. The principal path is guest/admin interaction through the frontend and REST API into booking/check-in and operational workflows, with MongoDB-backed records and optional notifications. The README documents broader capabilities than the sampled excerpts; those are represented at subsystem level. Some route and frontend API details were not sampled, so those links are omitted rather than inferred.
Main entry points: models Operational records · checkinController.js Check-in and checkout · routes API routes · roomController.js Room operations
Components 25
Client experience
- Web application
frontend/src/App.jsx - Guest experience
frontend/src/pages - Operations dashboard
frontend/src/pages
API and access
- REST API
backend/app.js - API routes
backend/routes - Authentication
backend/middlewares/authMiddleware.js
Guest operations
- Booking lifecycle
backend/controllers/bookingController.js - Check-in and checkout
backend/controllers/checkinController.js - Room operations
backend/controllers/roomController.js - Parking workflows
backend/services/parkingService.js - Luggage workflows
backend/services/luggageService.js - Food orders
backend/controllers/foodOrderController.js - Complaints
backend/controllers/complaintController.js - Maintenance
backend/controllers/maintenanceController.js
Staff operations
- Staff management
backend/controllers/staffController.js - Task workflows
backend/services/taskService.js - Operational analytics
backend/controllers/adminController.js
Data and integrations
- Telegram interaction
backend/controllers/telegramController.js - Operational records
backend/models - ID generation
backend/utils/generateId.js - Email notifications
backend/services/emailService.js - Telegram service
backend/services/telegramService.js
Other components
- Guest
- Hotel staff
- Telegram
Connections 31
- Guest → Web application: uses
README.md - Hotel staff → Web application: uses
README.md - Web application → Guest experience: routes to
frontend/src/App.jsx - Web application → Operations dashboard: routes to
frontend/src/App.jsx - REST API → API routes: mounts
backend/app.js - API routes → Authentication: applies
backend/routes/complaintRoutes.js - API routes → Complaints: calls
backend/routes/complaintRoutes.js - API routes → Maintenance: calls
backend/routes/maintenanceRoutes.js - API routes → Room operations: calls
backend/routes/roomRoutes.js - Check-in and checkout → Parking workflows: invokes
backend/controllers/checkinController.js - Check-in and checkout → Luggage workflows: invokes
backend/controllers/checkinController.js - Check-in and checkout → Task workflows: invokes
backend/controllers/checkinController.js - Room operations → Task workflows: creates tasks
backend/controllers/roomController.js - Room operations → Complaints: creates
backend/controllers/roomController.js - Room operations → Maintenance: reads requests
backend/controllers/roomController.js - Parking workflows → Operational records: reads and writes
backend/services/parkingService.js - Luggage workflows → Operational records: reads and writes
backend/services/luggageService.js - Task workflows → Operational records: reads and writes
backend/services/taskService.js - Check-in and checkout → Operational records: reads and writes
backend/controllers/checkinController.js - Complaints → Operational records: uses records
backend/routes/complaintRoutes.js - Maintenance → Operational records: uses records
backend/routes/maintenanceRoutes.js - Operational analytics → Operational records: aggregates
backend/controllers/adminController.js - Task workflows → ID generation: generates IDs
backend/services/taskService.js - Parking workflows → Telegram service: notifies
backend/services/parkingService.js - Luggage workflows → Telegram service: notifies
backend/services/luggageService.js - Telegram interaction → Operational records: reads and writes
backend/controllers/telegramController.js - Telegram interaction → Telegram: serves commands
README.md - Booking lifecycle → Email notifications: sends confirmations
- Booking lifecycle → Operational records: persists bookings
- Booking lifecycle → Room operations: allocates rooms
README.md - Check-in and checkout → Telegram interaction: links guest access
backend/controllers/checkinController.js