CareSync is a full-stack AI-powered telehealth system built using Flask, designed to connect doctors and patients through secure chat, video calls, prescriptions, and automated reminders — all in one professional and responsive interface.
CareSync unifies healthcare communication into one system. It includes doctor and patient dashboards, appointment management, real-time messaging, and Gemini AI integration for smart health insights.
- Python 3.x, Flask
- Flask-SQLAlchemy, Flask-Migrate
- Flask-Mail, Flask-SocketIO, Flask-WTF
- APScheduler, Werkzeug Security, python-dotenv
- HTML5, CSS3, JavaScript (Socket.IO Client)
- Jinja2 Templating
- Fully responsive and mobile-optimized UI
- Google Generative AI (Gemini)
- Pillow and pdf2image for PDF/Image analysis
- SQLite (Default) — Easily replaceable with PostgreSQL/MySQL
- Approve and manage patient appointments & calls
- Issue digital e-prescriptions
- Toggle real-time availability
- Review chat and call history
- Search and book verified doctors
- Access health records, prescriptions, and reminders
- Start secure chat or video calls
- Receive AI-driven insights via Gemini
- Socket.IO for real-time updates
- Flask-Mail + APScheduler for automated reminders
- AI prompt response system for intelligent interactions
- Built-in dataset of Indian blood banks
- Location-based filtering using the Haversine algorithm
https://github.com/zygisk-enc/caresync/blob/main/pc%20demo.mp4
https://github.com/zygisk-enc/caresync/blob/main/phone%20demo.mp4
git clone https://github.com/zygisk-enc/caresync.git
cd caresyncpython -m venv venv
source venv/bin/activate # Linux/macOS
venv\Scripts\activate # Windowspip install -r requirements.txtExample .env configuration (placeholders — replace with your own values):
SECRET_KEY="your_secret_key_here"GOOGLE_API_KEY="your_google_gemini_api_key_here"BLOOD_API_KEY="your_blood_bank_api_key_here"ADMIN_EMAIL="your_admin_email_here"ADMIN_PASSWORD="your_admin_password_here"MAIL_SERVER="smtp.gmail.com"MAIL_PORT=587MAIL_USE_TLS=TrueMAIL_USERNAME="your_email_here"MAIL_PASSWORD="your_email_app_password_here"ADMIN_URL_PREFIX="/your-random-admin-url-prefix"SSL_CERTFILE="certs/your-cert-file.pem"SSL_KEYFILE="certs/your-key-file.pem"SQLALCHEMY_DATABASE_URI="sqlite:///caresync.db"
⚠️ Important: Never commit.envor credentials to GitHub.
Keep this file local or use environment variables in production.
flask db init
flask db migrate -m "Initial migration"
flask db upgradepython app.pyVisit: http://localhost:5000 or use mkcert to generate a certificate to get CA and https
CareSync uses APScheduler for:
- Video call reminders
- Medication notifications
You can trigger manually if required:
python -c "from scheduler import send_call_reminders; from app import app; send_call_reminders(app)"- Use HTTPS and secure cookies
- Enable CSRF protection for all forms
- Use strong mail passwords or App Passwords
Frontend (HTML, CSS, JS)
↓
Flask Blueprints (Auth, Chat, Video, AI)
↓
Database Layer (SQLAlchemy ORM)
↓
Scheduler & Flask-Mail → Notifications
↓
Gemini AI API → Smart Prompt Responses
- Dockerized deployment
- Two-Factor Authentication
- Admin analytics dashboard
- Multi-language interface
- Dedicated mobile app version
- Fork the repository
- Create your feature branch (
git checkout -b feature/new-feature) - Commit changes (
git commit -m "Add new feature") - Push to your fork (
git push origin feature/new-feature) - Open a Pull Request
Licensed under the MIT License.
--
Give this project a ⭐ if you find it helpful!