How muhmmmadirtizakhan/medixweb works
MedixWeb is a hospital-assistant and appointment-management web app. A patient uses the React chat experience to describe symptoms, receive a doctor recommendation, and book, update, or cancel an appointment; the README also describes a schedule-aware calendar and persistent chat history. The backend chatbot route owns the AI and appointment API logic, with Supabase persistence and separate notification routes. Edges for unsampled frontend and appointment details rely on README documentation; those implementation details were not inspected.
Main entry points: chatbot.js Chat and appointment API · App.jsx React app · server.js Express API server · ChatWindow.jsx Chat interface
Components 20
Patient experience
- React app
frontrend/src/App.jsx - Chat state
frontrend/src/context/ChatContext.jsx - Chat interface
frontrend/src/assets/components/chatbot/ChatWindow.jsx - Doctor directory
frontrend/src/data/doctorsData.js - Appointment calendar
frontrend/src/assets/components
Assistant and appointments
- Chat and appointment API
backend/routes/chatbot.js - Intent detection
backend/routes/chatbot.js - Symptom recommendations
backend/knowledge-base/doctors-data.js - Appointment operations
backend/routes/chatbot.js - Groq language model
Backend and persistence
- Express API server
backend/server.js - Supabase client
backend/config/supabase.js - Supabase data store
- Clerk identity service
- User synchronization
backend/routes/users.js
Notifications
- WhatsApp messaging
backend/routes/whatsapp.js - Whapi service
- Email notifications
backend/routes/email.js - Brevo email service
Other components
- Patient
Connections 21
- Patient → React app: uses
README.md - React app → Chat interface: renders
frontrend/src/App.jsx - React app → Chat state: uses state
frontrend/src/main.jsx - React app → Doctor directory: shows doctors
README.md - Chat interface → Chat and appointment API: sends chat
README.md - Chat interface → Appointment calendar: supports booking
README.md - Express API server → Chat and appointment API: mounts route
backend/server.js - Express API server → User synchronization: mounts route
backend/server.js - Express API server → WhatsApp messaging: mounts route
backend/server.js - Express API server → Email notifications: mounts route
backend/server.js - React app → User synchronization: syncs signed-in user
frontrend/src/App.jsx - User synchronization → Supabase client: queries users
backend/routes/users.js - Chat and appointment API → Supabase client: reads and writes
backend/routes/chatbot.js - Supabase client → Supabase data store: accesses
backend/config/supabase.js - Chat and appointment API → Intent detection: classifies intent
backend/routes/chatbot.js - Chat and appointment API → Groq language model: requests completions
backend/routes/chatbot.js - Chat and appointment API → Symptom recommendations: uses doctor data
backend/routes/chatbot.js - Chat and appointment API → Appointment operations: handles appointment actions
README.md - WhatsApp messaging → Whapi service: sends messages
backend/routes/whatsapp.js - Email notifications → Brevo email service: sends email
backend/routes/email.js - Clerk identity service → React app: provides identity
README.md