Skip to content

Xenon010101/ArogyaAI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

88 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿš€ ArogyaAI โ€” AI-Powered Healthcare Analysis Platform

๐Ÿฉบ Smart Health Insights | ๐Ÿค– AI Triage | ๐Ÿ“„ Intelligent Reports
Built to make healthcare guidance fast, accessible, and scalable


๐Ÿง  Overview

ArogyaAI is a full-stack MERN application that leverages Google Gemini AI to analyze symptoms, prescriptions, and health data.

It delivers structured medical insights, triage detection, and actionable recommendations โ€” helping users make faster and smarter healthcare decisions.


โœจ Key Features

  • ๐Ÿง  AI Symptom Analysis
  • ๐Ÿšจ Emergency Triage Detection
  • ๐Ÿ–ผ๏ธ Prescription & Image Analysis
  • ๐Ÿ“„ PDF Medical Reports
  • ๐Ÿ” JWT Authentication System
  • ๐Ÿ“Š Analysis History Tracking
  • ๐Ÿ›ก๏ธ Enterprise-Level Security

๐Ÿ—๏ธ Tech Stack

Layer Technology
Frontend React, Tailwind CSS, Vite
Backend Node.js, Express
Database MongoDB, Mongoose
AI Engine Google Gemini API
Auth JWT
Security Helmet, Rate Limiting, Joi

๐Ÿ“ธ Demo Preview


โš™๏ธ Quick Start

1๏ธโƒฃ Clone Repository

git clone https://github.com/Xenon010101/ArogyaAI.git
cd ArogyaAI

2๏ธโƒฃ Setup Environment

cp backend/.env.example backend/.env
cp frontend/.env.example frontend/.env

Edit backend/.env:

PORT=5000
NODE_ENV=development
MONGODB_URI=your_mongodb_uri
JWT_SECRET=your_secure_secret
JWT_EXPIRES_IN=7d
GEMINI_API_KEY=your_gemini_api_key
CLIENT_URL=http://localhost:5173

3๏ธโƒฃ Install Dependencies

# Backend
cd backend && npm install

# Frontend
cd ../frontend && npm install

4๏ธโƒฃ Run Development

# Backend
cd backend
npm run dev

# Frontend
cd frontend
npm run dev

๐ŸŒ Access


๐Ÿš€ Production Deployment

cd frontend
npm run build

Environment Variables

Backend

  • NODE_ENV=production
  • MONGODB_URI
  • JWT_SECRET
  • GEMINI_API_KEY
  • CLIENT_URL

Frontend

  • VITE_API_URL

๐Ÿ“ก API Overview

๐Ÿ” Authentication

  • POST /api/auth/register
  • POST /api/auth/login
  • GET /api/auth/me
  • PATCH /api/auth/reset-password/:token

๐Ÿง  Analysis

  • POST /api/analyze
  • GET /api/analyze/:id
  • GET /api/analyze/my-analyses
  • POST /api/analyze/pre-check

โค๏ธ Health

  • GET /api/health

๐Ÿง  AI Response Structure

{
  "risk_level": "low | moderate | high | critical",
  "summary": "Brief analysis",
  "conditions": ["Possible conditions"],
  "recommendations": ["Next steps"],
  "red_flags": ["Warning signs"],
  "confidence": 0.0
}

๐Ÿ“ Project Structure

ArogyaAI/
โ”œโ”€โ”€ backend/
โ”‚   โ”œโ”€โ”€ src/
โ”‚   โ”œโ”€โ”€ config/
โ”‚   โ”œโ”€โ”€ controllers/
โ”‚   โ”œโ”€โ”€ models/
โ”‚   โ”œโ”€โ”€ routes/
โ”‚   โ”œโ”€โ”€ services/
โ”‚   โ””โ”€โ”€ utils/
โ”œโ”€โ”€ frontend/
โ”‚   โ”œโ”€โ”€ src/
โ”‚   โ”œโ”€โ”€ components/
โ”‚   โ”œโ”€โ”€ pages/
โ”‚   โ””โ”€โ”€ hooks/

๐Ÿ”’ Security

  • ๐Ÿ” JWT Authentication
  • ๐Ÿ›ก๏ธ Helmet Security Headers
  • ๐Ÿšฆ Rate Limiting
  • ๐Ÿงผ Input Validation (Joi)
  • โŒ XSS Protection
  • ๐ŸŒ CORS Configuration
  • ๐Ÿ”‘ Bcrypt Password Hashing

๐ŸŒ Real-World Impact

  • ๐Ÿฅ Faster preliminary diagnosis
  • ๐ŸŒ Helps rural & low-access areas
  • โณ Reduces unnecessary hospital visits
  • ๐Ÿ“Š Supports doctors with structured insights

๐Ÿ† Hackathon Highlights

  • ๐Ÿ’ก Real-world problem solving
  • ๐Ÿค– AI + Full Stack integration
  • ๐Ÿ“ˆ Scalable architecture
  • ๐ŸŒ Social impact driven

๐Ÿ”ฎ Future Improvements

  • ๐Ÿ“ฑ Mobile App (Flutter)
  • ๐ŸŒ Multi-language support
  • ๐Ÿง  Fine-tuned AI model
  • ๐Ÿ“Š Health analytics dashboard
  • ๐Ÿฅ Doctor-patient integration

๐Ÿค Contributing

git checkout -b feature-name
git commit -m "Add feature"
git push origin feature-name

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

Anmol Patel ๐Ÿ”— https://github.com/Xenon010101


๐Ÿค Contributors


โญ Support

If you like this project:

  • Star โญ the repo
  • Share it on LinkedIn

๐Ÿ’ฌ Feedback

Have suggestions or ideas? Feel free to open an issue or connect! ๐Ÿš€

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages