Skip to content

vikrant-project/FamilyGuard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

1 Commit
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ›ก๏ธ FamilyGuard - Elderly Safety & Monitoring System

Android Node.js Socket.IO License

๐Ÿ† Complete elderly care solution with real-time GPS tracking, health monitoring, SOS alerts, and family video calling


๐Ÿ“– Table of Contents


โœจ Features

๐Ÿ“ Real-Time Location Tracking

  • GPS updates every 30 seconds
  • Background tracking even when app is closed
  • Geofencing with safe zone alerts
  • Location history and route playback

๐Ÿšจ SOS Emergency System

  • 2-second hold emergency button
  • Instant alerts to family members
  • Automatic location sharing
  • Optional photo capture during emergency

๐Ÿ’Š Health Monitoring

  • Daily mood tracking (๐Ÿ˜Š ๐Ÿ˜ ๐Ÿ˜Ÿ ๐Ÿ˜ด ๐Ÿค’)
  • Water intake logging
  • Medication reminders and compliance tracking
  • Activity monitoring (steps, movement)

๐Ÿ“ธ Media Features

  • "I Am Safe" check-in with selfie
  • Voice message recording and playback
  • Live camera streaming to dashboard
  • Live audio monitoring (with consent)

๐Ÿ“ž Video Calling (WebRTC)

  • One-tap video calls between app and dashboard
  • Real-time bidirectional communication
  • Low latency peer-to-peer connection

โšก Fall Detection

  • Accelerometer-based fall detection
  • Auto-alert if no response within 30 seconds
  • Confirmation prompt to prevent false alarms

๐Ÿ”” Smart Alerts

  • Check-in reminders
  • Low battery warnings
  • Geofence boundary alerts
  • Missed check-in notifications

๐Ÿ—๏ธ Architecture

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚                        FamilyGuard System                        โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚                                                                  โ”‚
โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”          โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”                    โ”‚
โ”‚  โ”‚   ๐Ÿ“ฑ Mobile   โ”‚โ—„โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–บโ”‚   ๐Ÿ–ฅ๏ธ Backend  โ”‚                    โ”‚
โ”‚  โ”‚    App        โ”‚  REST    โ”‚   Server     โ”‚                    โ”‚
โ”‚  โ”‚  (Android)    โ”‚  API     โ”‚  (Node.js)   โ”‚                    โ”‚
โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜          โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜                    โ”‚
โ”‚         โ”‚                         โ”‚                             โ”‚
โ”‚         โ”‚      Socket.IO          โ”‚                             โ”‚
โ”‚         โ”‚โ—„โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–บโ”‚                             โ”‚
โ”‚         โ”‚      (Real-time)        โ”‚                             โ”‚
โ”‚         โ”‚                         โ”‚                             โ”‚
โ”‚         โ”‚                    โ”Œโ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”                       โ”‚
โ”‚         โ”‚                    โ”‚ ๐Ÿ’พ SQLiteโ”‚                       โ”‚
โ”‚         โ”‚                    โ”‚ Database โ”‚                       โ”‚
โ”‚         โ”‚                    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜                        โ”‚
โ”‚         โ”‚                                                       โ”‚
โ”‚         โ”‚      WebRTC             โ”‚                             โ”‚
โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”          โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”                    โ”‚
โ”‚  โ”‚   ๐Ÿ“น Video    โ”‚โ—„โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–บโ”‚ ๐ŸŒ Dashboard  โ”‚                    โ”‚
โ”‚  โ”‚    Stream     โ”‚  P2P     โ”‚   (Web UI)   โ”‚                    โ”‚
โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜          โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜                    โ”‚
โ”‚                                                                  โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

๐Ÿ“ฑ Mobile App

The native Android app provides:

Feature Description
๐Ÿ  Home Screen Large, elderly-friendly buttons with clear labels
โœ… Check-in "I Am Safe" with optional selfie
๐Ÿšจ SOS Emergency button with 2-second hold
๐Ÿ’Š Health Mood, water, medication tracking
๐ŸŽค Voice Record and send voice messages
๐Ÿ“ GPS Continuous background tracking
๐Ÿ“ž Video Call WebRTC video calling

Screenshots

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚   Good morning  โ”‚  โ”‚   Health Check  โ”‚  โ”‚   ๐Ÿšจ EMERGENCY  โ”‚
โ”‚      Dad        โ”‚  โ”‚                 โ”‚  โ”‚                 โ”‚
โ”‚   โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”‚  โ”‚  ๐Ÿ˜Š ๐Ÿ˜ ๐Ÿ˜Ÿ ๐Ÿ˜ด ๐Ÿค’ โ”‚  โ”‚    Hold for    โ”‚
โ”‚                 โ”‚  โ”‚                 โ”‚  โ”‚    2 seconds    โ”‚
โ”‚  โœ… I Am Safe   โ”‚  โ”‚  Water: ๐Ÿ’ง x 5  โ”‚  โ”‚                 โ”‚
โ”‚                 โ”‚  โ”‚                 โ”‚  โ”‚                 โ”‚
โ”‚  ๐Ÿ“ท Take Photo  โ”‚  โ”‚  ๐Ÿ’Š Meds Today  โ”‚  โ”‚                 โ”‚
โ”‚                 โ”‚  โ”‚  โ˜‘๏ธ Morning     โ”‚  โ”‚                 โ”‚
โ”‚  ๐ŸŽค Send Voice  โ”‚  โ”‚  โ˜ Evening      โ”‚  โ”‚                 โ”‚
โ”‚                 โ”‚  โ”‚                 โ”‚  โ”‚                 โ”‚
โ”‚  ๐Ÿ’Š Health      โ”‚  โ”‚  [Save]         โ”‚  โ”‚                 โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

๐Ÿ–ฅ๏ธ Dashboard

Family members access the web dashboard to:

  • ๐Ÿ“ View real-time location on map
  • ๐Ÿ“Š Monitor health data and activity
  • ๐Ÿ”” Receive instant alerts
  • ๐Ÿ“ž Initiate video calls
  • ๐ŸŽค Listen to live audio (with consent)
  • ๐Ÿ“ธ View camera stream
  • โš™๏ธ Configure geofences and alerts

๐Ÿš€ Quick Start

Prerequisites

  • Node.js 18+
  • Android device (for mobile app)
  • Ubuntu/Linux server (recommended)

1๏ธโƒฃ Clone Repository

git clone https://github.com/vikrant-project/FamilyGuard.git
cd FamilyGuard

2๏ธโƒฃ Setup Backend

cd backend

# Install dependencies
npm install

# Configure environment
cp .env.example .env
# Edit .env with your server IP

# Start server
npm start

3๏ธโƒฃ Access Dashboard

Open browser: http://YOUR_SERVER_IP:8888

4๏ธโƒฃ Install Mobile App

Download and install the APK from the /apk folder on your Android device.


๐Ÿ“ฒ APK Installation

Download APK

The pre-built APK is available in the /apk folder:

# From your server
scp user@your-server:/path/to/FamilyGuard/apk/familyguard.apk ./

Install on Android

  1. Enable Unknown Sources

    • Go to Settings โ†’ Security โ†’ Unknown Sources โ†’ Enable
  2. Install APK

    • Transfer APK to phone
    • Tap to install
    • Grant all permissions when prompted
  3. First Launch

    • Read and accept consent screen
    • Grant location, camera, microphone permissions
    • App will start tracking automatically

Permissions Required

Permission Purpose
ACCESS_FINE_LOCATION GPS tracking
ACCESS_BACKGROUND_LOCATION Background tracking
CAMERA Check-in photos, video calls
RECORD_AUDIO Voice messages, live audio
RECEIVE_BOOT_COMPLETED Auto-start on reboot
FOREGROUND_SERVICE Keep tracking alive

โš™๏ธ Configuration

Backend .env

PORT=8888
SERVER_URL=http://YOUR_SERVER_IP:8888
JWT_SECRET=your-secure-secret

Mobile App

Edit mobile-app/src/utils/constants.js:

export const API_BASE_URL = 'http://YOUR_SERVER_IP:8888';
export const SOCKET_URL = 'http://YOUR_SERVER_IP:8888';

Geofence Settings

Configure via dashboard:

  • Safe zone radius (default: 500m)
  • Alert delay (default: 5 min)
  • Check-in reminder interval

๐Ÿ”ง Development

Backend Development

cd backend
npm install
npm run dev  # Hot reload with nodemon

Mobile App Development

cd mobile-app
npm install

# Run on connected device
npx react-native run-android

# Build release APK
cd android
./gradlew assembleRelease

Build APK

cd mobile-app/android
./gradlew clean
./gradlew assembleRelease

# APK location: android/app/build/outputs/apk/release/app-release.apk

๐Ÿ†š Comparison with Other Solutions

Feature FamilyGuard Life360 Find My Google Maps
Price ๐Ÿ†“ Free ๐Ÿ’ฐ Paid ๐Ÿ†“ Free ๐Ÿ†“ Free
Open Source โœ… Yes โŒ No โŒ No โŒ No
Self-Hosted โœ… Yes โŒ No โŒ No โŒ No
Health Tracking โœ… Yes โš ๏ธ Limited โŒ No โŒ No
SOS Button โœ… Yes โœ… Yes โŒ No โŒ No
Fall Detection โœ… Yes โš ๏ธ Paid โš ๏ธ Apple only โŒ No
Video Calling โœ… Yes โŒ No โŒ No โŒ No
Voice Messages โœ… Yes โŒ No โŒ No โŒ No
Medication Reminders โœ… Yes โŒ No โŒ No โŒ No
Privacy (Self-host) โœ… Full control โŒ Cloud only โŒ Cloud only โŒ Cloud only
Customizable โœ… Fully โŒ No โŒ No โŒ No

Why Choose FamilyGuard?

  1. ๐Ÿ”’ Privacy First - Your data stays on YOUR server
  2. ๐Ÿ’ฐ Completely Free - No subscriptions, no hidden fees
  3. ๐Ÿ”ง Customizable - Modify to fit your needs
  4. ๐Ÿ‘ด Designed for Elderly - Large buttons, clear text, voice feedback
  5. ๐Ÿ“ฑ Native Android - Real background tracking (not PWA limitations)
  6. ๐Ÿฅ Health Focused - Mood, meds, water tracking built-in

๐Ÿ”ฎ Future Roadmap

Version 2.0 (Planned)

  • ๐ŸŽ iOS app support
  • ๐ŸŒ Multi-language support
  • ๐Ÿ“Š Advanced health analytics
  • ๐Ÿฅ Doctor/caregiver dashboard
  • ๐Ÿ”— Smart home integration
  • ๐Ÿ’ฌ Family group chat
  • ๐Ÿ“ˆ Weekly health reports
  • ๐Ÿ”” Smart notification scheduling

Version 3.0 (Future)

  • ๐Ÿค– AI-powered anomaly detection
  • โŒš Smartwatch integration
  • ๐Ÿ  IoT sensor support
  • ๐Ÿ“ž Integration with emergency services
  • ๐Ÿ—ฃ๏ธ Voice assistant integration

๐Ÿค Contributing

We welcome contributions! Please:

  1. Fork the repository
  2. Create feature branch (git checkout -b feature/amazing-feature)
  3. Commit changes (git commit -m 'Add amazing feature')
  4. Push to branch (git push origin feature/amazing-feature)
  5. Open Pull Request

๐Ÿ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.


๐Ÿ’– Support

If FamilyGuard helps you keep your loved ones safe:

  • โญ Star this repository
  • ๐Ÿ› Report bugs
  • ๐Ÿ’ก Suggest features
  • ๐Ÿ“– Improve documentation

Made with โค๏ธ for families caring for their elderly loved ones

"Because everyone deserves to feel safe and connected"

About

๐Ÿ›ก๏ธ Complete Elderly Safety & Monitoring System - GPS tracking, SOS alerts, health monitoring, video calling. React Native Android + Node.js Backend

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors