Skip to content

Ashmita1206/HealthSphere

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

21 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿฅ HealthSphere AI

React TypeScript Vite Supabase TailwindCSS AI Realtime Storage

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

๐Ÿš€ Project Overview

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.


โœจ Core Features

๐Ÿ” Authentication System

  • Email/password authentication using Supabase
  • User registration & login
  • Persistent session management
  • Protected routes & secure pages

๐Ÿ‘ค Profile Management

  • Update personal profile information
  • Store user-specific health data
  • Personalized dashboard experience

๐Ÿ’Š Medicine Management

  • Add medicines
  • Update medicine details
  • Delete medicines
  • Track active medications

โฐ Smart Reminders

  • Create reminders for medicines & tasks
  • Enable/disable reminders
  • Delete reminders
  • Realtime updates using Supabase Realtime

๐Ÿ“… Appointment Tracking

  • Schedule appointments
  • View upcoming appointments
  • Delete completed appointments

๐Ÿ“ Medical Reports Vault

  • Upload medical reports securely
  • Download reports anytime
  • Delete uploaded reports
  • Cloud storage using Supabase Storage

๐Ÿค– AI Health Assistant

  • AI-powered healthcare chatbot
  • Chat persistence for logged-in users
  • Speech-to-text support
  • Text-to-speech responses
  • Edge Function powered AI integration

๐Ÿ“Š Dashboard & Analytics

  • Health overview dashboard
  • Medicine summaries
  • Appointment insights
  • Interactive charts using Recharts

๐ŸŽค Accessibility & Media Features

  • Browser Speech Recognition
  • Speech Synthesis API
  • Webcam & microphone permission handling
  • Responsive UI for multiple devices

๐Ÿ“ Location Features

  • Geolocation support
  • Nearby hospital/clinic integration (mock service currently)

๐Ÿง  How It Works

  1. User signs into the platform
  2. Health data is securely managed using Supabase
  3. Users can:
    • Add medicines
    • Schedule appointments
    • Create reminders
    • Upload reports
  4. AI Chat Assistant processes user health queries
  5. Edge Functions communicate with the AI gateway
  6. Dashboard displays realtime health insights

๐Ÿ›  Tech Stack

Frontend

  • React 18
  • TypeScript
  • Vite
  • Tailwind CSS
  • Framer Motion
  • Radix UI

Backend Services

  • Supabase Authentication
  • Supabase PostgreSQL
  • Supabase Storage
  • Supabase Realtime
  • Supabase Edge Functions

Libraries & Tools

  • React Query
  • React Router DOM
  • React Hook Form
  • Zod
  • Recharts
  • Lucide React
  • Vitest
  • ESLint

๐Ÿ“‚ Project Structure

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.md

โš™๏ธ Environment Variables

Create 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_key

Supabase Edge Function Variables:

LOVABLE_API_KEY=your_ai_gateway_api_key

โš ๏ธ Never expose service-role keys in frontend applications.


๐Ÿ—„ Database Tables

The application uses the following Supabase tables:

  • profiles
  • medicines
  • appointments
  • reminders
  • reports
  • chat_messages

Storage Bucket:

  • reports

๐Ÿš€ Running the Project Locally

1. Clone Repository

git clone https://github.com/YOUR_USERNAME/healthsphere-ai.git

2. Navigate to Project

cd healthsphere-ai

3. Install Dependencies

npm install

4. Configure Environment Variables

Create a .env file and add the required keys.


5. Start Development Server

npm run dev

Application will run at:

http://localhost:5173

๐Ÿงช Testing

Run tests using:

npm run test

๐Ÿ“ฆ Build for Production

npm run build

Deploy easily on:

  • Vercel
  • Netlify
  • Firebase Hosting
  • Any static hosting platform

๐Ÿ”’ Security & Best Practices

  • Supabase Row Level Security (RLS)
  • Secure authentication handling
  • Protected API routes
  • Cloud-based storage security
  • Environment variable protection
  • HTTPS recommended for production

๐Ÿ“ก API & Backend Services

Supabase Edge Function

/functions/v1/health-chat

Used for:

  • AI chat requests
  • Message forwarding
  • AI gateway communication

๐Ÿ“ธ Screenshots

Add screenshots here:

/sscreenshots/dashboard.png
/screenshots/chat.png
/screenshots/reports.png

Example:

Dashboard


๐Ÿ”ฎ Future Plans

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

๐Ÿค Contributing

Contributions are welcome.

Steps to contribute:

  1. Fork the repository

  2. Create a new branch

git checkout -b feature-name
  1. Commit changes
git commit -m "Added new feature"
  1. Push branch
git push origin feature-name
  1. Open a Pull Request

๐Ÿ‘จโ€๐Ÿ’ป Authors

Neeraj Mishra

  • Full Stack Developer
  • AI & Web Development Enthusiast

Ashmita Goyal

  • Frontend & Healthcare Platform Contributor

๐Ÿ“š Additional Resources

  • .env.example โ†’ Environment variables reference
  • SUPABASE_SETUP.md โ†’ Database & Supabase setup guide
  • screenshots/README.md โ†’ Screenshot guide

โญ Support

If you like this project, consider giving it a star on GitHub โญ

About

AI-powered healthcare management platform with medicine tracking, reminders, appointments, medical reports, Supabase integration, and an AI health assistant built using React, TypeScript, and Vite.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors