HealthSphere AI is a modern AI-powered healthcare management web application built using React, TypeScript, Supabase, and AI integrations.
The platform helps users manage their medicines, appointments, reminders, medical reports, and health-related activities in one centralized dashboard while also providing an AI-assisted healthcare chatbot for quick health guidance.
This project combines:
- Full Stack Web Development
- AI-powered healthcare assistance
- Realtime systems
- Cloud storage
- Authentication & secure data handling
- Modern responsive UI/UX
The goal of HealthSphere AI is to simplify personal healthcare management through an intelligent and user-friendly platform.
Users can:
- Manage medicines & reminders
- Upload and store medical reports securely
- Track appointments
- Interact with an AI-powered health assistant
- Access health information quickly
- Use speech recognition and accessibility features
The application focuses on building a scalable healthcare ecosystem using modern technologies and cloud-based services.
- Email/password authentication using Supabase
- User registration & login
- Persistent session management
- Protected routes & secure pages
- Update personal profile information
- Store user-specific health data
- Personalized dashboard experience
- Add medicines
- Update medicine details
- Delete medicines
- Track active medications
- Create reminders for medicines & tasks
- Enable/disable reminders
- Delete reminders
- Realtime updates using Supabase Realtime
- Schedule appointments
- View upcoming appointments
- Delete completed appointments
- Upload medical reports securely
- Download reports anytime
- Delete uploaded reports
- Cloud storage using Supabase Storage
- AI-powered healthcare chatbot
- Chat persistence for logged-in users
- Speech-to-text support
- Text-to-speech responses
- Edge Function powered AI integration
- Health overview dashboard
- Medicine summaries
- Appointment insights
- Interactive charts using Recharts
- Browser Speech Recognition
- Speech Synthesis API
- Webcam & microphone permission handling
- Responsive UI for multiple devices
- Geolocation support
- Nearby hospital/clinic integration (mock service currently)
- User signs into the platform
- Health data is securely managed using Supabase
- Users can:
- Add medicines
- Schedule appointments
- Create reminders
- Upload reports
- AI Chat Assistant processes user health queries
- Edge Functions communicate with the AI gateway
- Dashboard displays realtime health insights
- React 18
- TypeScript
- Vite
- Tailwind CSS
- Framer Motion
- Radix UI
- Supabase Authentication
- Supabase PostgreSQL
- Supabase Storage
- Supabase Realtime
- Supabase Edge Functions
- React Query
- React Router DOM
- React Hook Form
- Zod
- Recharts
- Lucide React
- Vitest
- ESLint
healthsphere-ai
โ
โโโ public
โ
โโโ src
โ โโโ components
โ โ โโโ chat
โ โ โ โโโ ChatBot.tsx
โ โ โ
โ โ โโโ ui
โ โ โโโ layout
โ โ
โ โโโ contexts
โ โ โโโ AuthContext
โ โ โโโ ThemeContext
โ โ
โ โโโ hooks
โ โ โโโ useGeolocation
โ โ โโโ useSpeechRecognition
โ โ โโโ useMediaPermissions
โ โ โโโ use-toast
โ โ
โ โโโ integrations
โ โ โโโ supabase
โ โ โโโ client.ts
โ โ
โ โโโ pages
โ โ โโโ Dashboard
โ โ โโโ Medicines
โ โ โโโ Reports
โ โ โโโ Appointments
โ โ โโโ Reminders
โ โ โโโ Emergency
โ โ โโโ Profile
โ โ โโโ Settings
โ โ
โ โโโ services
โ โ โโโ locationsService.ts
โ โ
โ โโโ App.tsx
โ โโโ main.tsx
โ
โโโ supabase
โ โโโ functions
โ โโโ health-chat
โ โโโ index.ts
โ
โโโ .env.example
โโโ package.json
โโโ SUPABASE_SETUP.md
โโโ README.mdCreate a .env file in the root directory:
VITE_SUPABASE_URL=your_supabase_project_url
VITE_SUPABASE_PUBLISHABLE_KEY=your_supabase_anon_key
VITE_GOOGLE_MAPS_API_KEY=your_google_maps_api_keySupabase Edge Function Variables:
LOVABLE_API_KEY=your_ai_gateway_api_key
โ ๏ธ Never expose service-role keys in frontend applications.
The application uses the following Supabase tables:
profilesmedicinesappointmentsremindersreportschat_messages
Storage Bucket:
reports
git clone https://github.com/YOUR_USERNAME/healthsphere-ai.gitcd healthsphere-ainpm installCreate a .env file and add the required keys.
npm run devApplication will run at:
http://localhost:5173Run tests using:
npm run testnpm run buildDeploy easily on:
- Vercel
- Netlify
- Firebase Hosting
- Any static hosting platform
- Supabase Row Level Security (RLS)
- Secure authentication handling
- Protected API routes
- Cloud-based storage security
- Environment variable protection
- HTTPS recommended for production
/functions/v1/health-chatUsed for:
- AI chat requests
- Message forwarding
- AI gateway communication
Add screenshots here:
/sscreenshots/dashboard.png
/screenshots/chat.png
/screenshots/reports.pngExample:
Planned future improvements include:
- Real hospital & clinic APIs
- Advanced AI symptom analysis
- Health analytics & insights
- Medicine recommendation system
- Emergency SOS system
- Wearable device integration
- Push notifications
- Mobile app version
- Better AI personalization
- Advanced healthcare dashboards
Contributions are welcome.
Steps to contribute:
-
Fork the repository
-
Create a new branch
git checkout -b feature-name- Commit changes
git commit -m "Added new feature"- Push branch
git push origin feature-name- Open a Pull Request
- Full Stack Developer
- AI & Web Development Enthusiast
- Frontend & Healthcare Platform Contributor
.env.exampleโ Environment variables referenceSUPABASE_SETUP.mdโ Database & Supabase setup guidescreenshots/README.mdโ Screenshot guide
If you like this project, consider giving it a star on GitHub โญ
- .env.example โ Environment variables reference
- SUPABASE_SETUP.md โ Complete Supabase database setup guide with SQL schemas and RLS policies
- screenshots/README.md โ Guide for adding and optimizing application screenshots
