How sunnyshin8/magicmeds works
MagicMeds is a healthcare platform whose demonstrated runtime workflow is a user asking a health question in the Home chat: the chat UI posts to a server route, which validates and enriches the request with medicine data before calling Gemini and returning a response. The broader product also documents authentication, appointments, telehealth, analytics, services, education, and support; their pages are represented, but their internal behavior was not inspected. Predictive health intelligence and the fever helpline are described as coming soon. Edges reflect shown calls, links, or documented integrations only.
Main entry points: NavBar.tsx Navigation · ChatInterface.tsx Chat interface · route.ts Chat API · page.tsx Home page
Components 22
User experience
- Home page
src/app/home/page.tsx - Navigation
src/components/NavBar.tsx - About page
src/app/about/page.tsx - Contact
src/app/contact/page.tsx
Care features
- Login
src/app/login/page.tsx - Registration
src/app/signup/page.tsx - Appointments
src/app/appointments/page.tsx - Telehealth
src/app/telehealth/page.tsx - Health dashboard
src/app/dashboard/page.tsx - Service directory
src/app/services/page.tsx - Health articles
src/app/articles/page.tsx - Support
src/app/support/page.tsx
AI assistant
- Chat interface
src/components/ChatInterface.tsx - Chat input
src/components/ChatInput.tsx - Chat message
src/components/ChatMessage.tsx - Chat API
src/app/api/chat/route.ts - Medicine database
src/services/medicineDatabase.ts - Gemini service
src/services/googleAIStudio.ts
Presentation layer
- Theme registry
src/app/ThemeRegistry.tsx - MUI theme
src/app/theme.ts
Other components
- Healthcare user
- Google Gemini
Connections 20
- Healthcare user → Home page: opens
README.md - Home page → Chat interface: renders
src/app/home/page.tsx - Chat interface → Chat input: renders
src/components/ChatInterface.tsx - Chat interface → Chat message: renders
src/components/ChatInterface.tsx - Chat interface → Chat API: posts message
src/components/ChatInterface.tsx - Chat API → Medicine database: looks up symptoms
src/app/api/chat/route.ts - Chat API → Gemini service: requests response
src/app/api/chat/route.ts - Gemini service → Google Gemini: generates content
src/services/googleAIStudio.ts - Navigation → About page: links to
src/components/NavBar.tsx - Navigation → Home page: links to
src/components/NavBar.tsx - Navigation → Service directory: links to
src/components/NavBar.tsx - Navigation → Health articles: links to
src/components/NavBar.tsx - Navigation → Telehealth: links to
src/components/NavBar.tsx - Navigation → Appointments: links to
src/components/NavBar.tsx - Navigation → Health dashboard: links to
src/components/NavBar.tsx - Navigation → Contact: links to
src/components/NavBar.tsx - Navigation → Support: links to
src/components/NavBar.tsx - Navigation → Login: links to
src/components/NavBar.tsx - Navigation → Registration: links to
src/components/NavBar.tsx - Theme registry → MUI theme: uses theme
src/app/ThemeRegistry.tsx