How tanmayagrawal21/roomwizard-reserve-ai works
RoomWizard Reserve AI combines a browser-based room picker and booking manager with a network-local relay that reads and writes RoomWizard appliances. The main flow is: users browse fleet availability or search for a slot, choose a room and time, then create, edit, or cancel a booking through the relay. A chat assistant can also query room and slot information and manage bookings. The graph preserves these product branches and the relay’s appliance, configuration, and conversation-state layers. Some subsystem links come from README statements or SOURCE INDEX references; unsampled implementations are not assumed to have been inspected.
Main entry points: App.tsx Picker application · app.ts HTTP routes · tools.ts Assistant tools · api.ts Relay API client
Components 25
Browser experience
- Picker application
web/src/App.tsx - Relay API client
web/src/api.ts - Room timelines
web/src/components/RoomRow.tsx - Booking forms
web/src/components/BookingModal.tsx - Booking fields
web/src/components/BookingFields.tsx - Slot finder UI
web/src/components/SlotFinder.tsx - Chat panel
web/src/components/ChatPanel.tsx - Room filters
web/src/lib/filters.ts - Remembered bookings
web/src/lib/myBookings.ts
Relay services
- HTTP routes
relay/src/app.ts - Fleet roster
relay/src/rooms.ts - Availability
relay/src/availability.ts - Ranked slot search
relay/src/slots.ts - Booking operations
relay/src/booking.ts - Site configuration
relay/src/config.ts
Appliance access
- RoomWizard client
relay/src/roomwizard.ts - Appliance session
relay/src/session.ts
Assistant and state
- Assistant orchestration
relay/src/agent.ts - LLM client
relay/src/llm.ts - Assistant tools
relay/src/tools.ts - Conversation history
relay/src/chatStore.ts - Booking ownership state
relay/src/bookingStore.ts
Other components
- Room-booking user
- RoomWizard appliances
- Local or compatible LLM
Connections 35
- Room-booking user → Picker application: uses
README.md - Picker application → Relay API client: fetches fleet and availability
web/src/App.tsx - Picker application → Room timelines: renders rooms
web/src/App.tsx - Picker application → Room filters: filters rooms
web/src/App.tsx - Room timelines → Booking forms: opens booking
- Booking forms → Booking fields: renders fields
web/src/components/BookingModal.tsx - Booking forms → Relay API client: submits booking changes
web/src/components/BookingModal.tsx - Booking forms → Remembered bookings: remembers booking
web/src/components/BookingModal.tsx - Picker application → Slot finder UI: opens finder
web/src/App.tsx - Slot finder UI → Relay API client: searches slots
web/src/components/SlotFinder.tsx - Picker application → Chat panel: shows chat
web/src/App.tsx - Chat panel → Relay API client: streams chat
web/src/components/ChatPanel.tsx - Chat panel → Remembered bookings: reads bookings
web/src/components/ChatPanel.tsx - Relay API client → HTTP routes: calls relay endpoints
README.md - HTTP routes → Fleet roster: loads roster
relay/src/app.ts - HTTP routes → Availability: serves availability
relay/src/app.ts - HTTP routes → Ranked slot search: serves slot search
relay/src/app.ts - HTTP routes → Booking operations: routes booking changes
relay/src/app.ts - HTTP routes → Assistant orchestration: runs assistant turns
relay/src/app.ts - Fleet roster → RoomWizard client: fetches roster
relay/src/rooms.ts - Availability → RoomWizard client: reads schedules
relay/src/availability.ts - Booking operations → Appliance session: submits appliance forms
relay/src/booking.ts - Ranked slot search → Availability: uses free time
relay/src/slots.ts - Assistant orchestration → Assistant tools: dispatches tools
relay/src/agent.ts - Assistant orchestration → LLM client: requests completions
relay/src/agent.ts - Assistant orchestration → Conversation history: loads and saves history
relay/src/agent.ts - Assistant tools → Fleet roster: queries rooms
relay/src/tools.ts - Assistant tools → Ranked slot search: searches slots
relay/src/tools.ts - Assistant tools → Booking operations: manages bookings
relay/src/tools.ts - Assistant tools → Booking ownership state: uses ownership state
relay/src/tools.ts - RoomWizard client → RoomWizard appliances: requests roster and schedules
relay/src/roomwizard.ts - Appliance session → RoomWizard appliances: sends booking forms
relay/src/session.ts - LLM client → Local or compatible LLM: sends chat requests
relay/src/llm.ts - Site configuration → Fleet roster: configures fleet
relay/src/rooms.ts - Site configuration → LLM client: configures provider
relay/src/llm.ts