Skip to content

jayanthwritescode/Health-Vault

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

4 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Health Vault ๐Ÿฅ

AI-Powered Healthcare Communication Platform for India
Breaking language barriers in healthcare with voice-first AI assistance

Next.js TypeScript Tailwind CSS License

๐ŸŽฏ Problem Statement

India faces a critical healthcare communication gap:

  • Language barriers prevent effective doctor-patient communication
  • Documentation burden reduces time doctors spend with patients
  • Limited access to healthcare information in regional languages
  • Pre-consultation inefficiency leads to longer wait times

๐Ÿ’ก Our Solution

Health Vault is a comprehensive healthcare communication platform that:

For Doctors ๐Ÿ‘จโ€โš•๏ธ

  • Smart Documentation: Auto-generate SOAP notes, prescriptions, and medical records from consultations
  • Pre-Consultation Insights: Review AI-collected patient histories before appointments
  • Appointment Management: Streamlined scheduling and patient tracking
  • Voice Transcription: Real-time consultation recording with speaker diarization

For Patients ๐Ÿ‘ฅ

  • Voice-First Interface: Speak naturally in your preferred language
  • 8 Indian Languages: English, Hindi, Tamil, Telugu, Bengali, Marathi, Gujarati, Kannada
  • Health Assistant: Get instant answers about symptoms, medications, and reports
  • Easy Scheduling: Book appointments through conversational AI
  • Pre-Consultation History: Share your medical history before visiting the doctor

๐Ÿ› ๏ธ Tech Stack

Frontend

  • Framework: Next.js 14 with App Router
  • Language: TypeScript
  • Styling: Tailwind CSS + shadcn/ui components
  • Animations: Framer Motion
  • Icons: Lucide React

AI & Voice

  • LLM: Groq API (Llama 3.3 70B) - Fast, free inference
  • Speech-to-Text: Web Speech API (Browser-native)
  • Text-to-Speech: Web Speech Synthesis API
  • Voice Recognition: Multi-language support with Indian accents

State & Storage

  • State Management: Zustand + React Context
  • Data Persistence: Local Storage (demo mode)
  • Form Handling: React Hook Form + Zod validation

๐Ÿš€ Quick Start

Prerequisites

  • Node.js 18+ installed
  • npm or yarn package manager
  • Modern browser with Web Speech API support (Chrome, Edge recommended)

Installation

  1. Clone the repository
git clone https://github.com/yourusername/health-vault.git
cd health-vault
  1. Install dependencies
npm install
  1. Set up environment variables
cp .env.example .env.local

Add your API keys to .env.local:

GROQ_API_KEY=your_groq_api_key_here

Get your free Groq API key at console.groq.com

  1. Run the development server
npm run dev
  1. Open in browser

Navigate to http://localhost:3000

First Time Setup

  1. Allow microphone permissions when prompted
  2. Select your preferred language
  3. Choose your role (Doctor or Patient)
  4. Start exploring!

๐Ÿ“ Project Structure

health-vault/
โ”œโ”€โ”€ app/
โ”‚   โ”œโ”€โ”€ page.tsx                    # Landing page
โ”‚   โ”œโ”€โ”€ doctor/
โ”‚   โ”‚   โ”œโ”€โ”€ page.tsx               # Doctor dashboard
โ”‚   โ”‚   โ””โ”€โ”€ consultation/          # Consultation recording
โ”‚   โ”œโ”€โ”€ patient/
โ”‚   โ”‚   โ”œโ”€โ”€ assistant/             # Health assistant chat
โ”‚   โ”‚   โ”œโ”€โ”€ assistant-voice/       # Voice mode assistant
โ”‚   โ”‚   โ”œโ”€โ”€ history-voice/         # Voice history collection
โ”‚   โ”‚   โ””โ”€โ”€ select-language/       # Language selection
โ”‚   โ””โ”€โ”€ api/
โ”‚       โ”œโ”€โ”€ chat/route.ts          # AI chat endpoint
โ”‚       โ””โ”€โ”€ transcribe/route.ts    # Audio transcription
โ”œโ”€โ”€ components/
โ”‚   โ”œโ”€โ”€ ui/                        # shadcn/ui components
โ”‚   โ”œโ”€โ”€ theme-provider.tsx         # Dark mode support
โ”‚   โ”œโ”€โ”€ theme-toggle.tsx           # Theme switcher
โ”‚   โ””โ”€โ”€ voice-waveform.tsx         # Voice visualizations
โ”œโ”€โ”€ lib/
โ”‚   โ”œโ”€โ”€ use-voice-chat.ts          # Voice chat hook
โ”‚   โ”œโ”€โ”€ appointments-store.ts      # Appointment state
โ”‚   โ””โ”€โ”€ utils.ts                   # Utilities
โ””โ”€โ”€ public/                        # Static assets

๐ŸŽฏ Key Features

๐ŸŽค Voice-First Design

  • Natural conversation in 8 Indian languages
  • Real-time speech recognition with high accuracy
  • Text-to-speech responses in the same language
  • Works offline after initial load

๐Ÿฅ Clinical Documentation

  • Auto-generate SOAP notes from consultations
  • ICD-10 and CPT code suggestions
  • Prescription generation
  • Insurance claim documentation

๐Ÿ“‹ Pre-Consultation History

  • Conversational patient history collection
  • Structured data extraction from natural language
  • Review summaries before appointments
  • Saves 10-15 minutes per consultation

๐ŸŒ Multilingual Support

  • English (en-IN)
  • เคนเคฟเค‚เคฆเฅ€ (hi-IN)
  • เฎคเฎฎเฎฟเฎดเฏ (ta-IN)
  • เฐคเฑ†เฐฒเฑเฐ—เฑ (te-IN)
  • เฆฌเฆพเฆ‚เฆฒเฆพ (bn-IN)
  • เคฎเคฐเคพเค เฅ€ (mr-IN)
  • เช—เซเชœเชฐเชพเชคเซ€ (gu-IN)
  • เฒ•เฒจเณเฒจเฒก (kn-IN)

๐ŸŽจ Professional Design

  • Clean, modern UI inspired by Linear and Stripe
  • Fully responsive (mobile, tablet, desktop)
  • Dark mode support
  • Accessible (WCAG 2.1 AA compliant)
  • Smooth animations and transitions

๐Ÿ”’ Privacy & Security

  • HIPAA Compliant Design: Built with healthcare privacy in mind
  • Client-Side Processing: Audio never leaves your device
  • No Data Storage: Demo mode uses local storage only
  • Secure API Calls: All AI requests encrypted in transit
  • Clear Disclaimers: Medical advice limitations clearly stated
  • Session Management: Automatic timeouts for security

๐ŸŒ Deployment

Vercel (Recommended)

Deploy with Vercel

npm run build
vercel deploy

Environment Variables

Set these in your deployment platform:

  • GROQ_API_KEY: Your Groq API key

Screenshots

Landing Page Landing Page

Patient Chatbot Assistant Patient Chatbot

Voice Mode Interface Voice Mode

Appointment Scheduling Appointment Scheduling

๐Ÿ† Hackathon Submission

This project was built for HackX 3.0 with the goal of improving healthcare accessibility in India through AI-powered voice interfaces.

Team

  • Developer: Team LocalHost ~ Jayanth Neelaiahgari
  • Role: Full Stack Development, UI/UX Design, AI Integration

Built With

  • โšก Next.js 14 for blazing-fast performance
  • ๐ŸŽจ Professional design system (no AI-generated UI)
  • ๐Ÿ—ฃ๏ธ Native browser speech APIs (no external dependencies)
  • ๐Ÿค– Groq's ultra-fast LLM inference
  • ๐ŸŒ Built specifically for Indian healthcare context

๐Ÿ“ License

MIT License - See LICENSE file for details

๐Ÿ™ Acknowledgments

  • Groq for providing free, fast LLM inference
  • shadcn/ui for beautiful component primitives
  • The open-source community for inspiration

๐Ÿ“ง Contact

For questions or feedback:


Made with โค๏ธ for Indian Healthcare

About

Reviving Health Vault

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors