Skip to content

About

Sentinel - Armed Forces Personnel Wellbeing & Cognitive Readiness Platform (SIH)

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

ย 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ›ก๏ธ SENTINEL

Armed Forces Personnel Wellbeing & Cognitive Readiness Intelligence Platform

Smart India Hackathon (SIH 2026) โ€ข Ministry of Home Affairs

React Node.js Supabase WebRTC PWA License: MIT

A confidential, mission-resilient health intelligence portal engineered for India's Army, Navy, Air Force, Coast Guard, CAPFs, and Special Forces.

๐ŸŒ Live Web Portal โ€ข ๐Ÿ“ฑ Live Care Room โ€ข ๐Ÿ“Š Command Center


๐Ÿ“Œ Mission Statement & Problem Context

Deployments in high-altitude forward posts, remote border outposts, submarines, and counter-insurgency sectors demand extraordinary physical and psychological resilience. Operational isolation, extreme climatic exposure, and mission stress can severely impact personnel mental endurance.

Sentinel bridges the frontline wellness divide by providing defense personnel with confidential, judgment-free daily cognitive check-ins, offline binaural soundscapes, live AI voice companionship, and secure military telehealth.

Commanding Officers and Regimental Medical Officers (RMO) receive anonymized, aggregated squad readiness telemetry to identify high-burnout cohorts without compromising individual soldier confidentiality or dignity.


๐ŸŒŸ Key Engineering Capabilities

                  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
                  โ”‚                 ๐Ÿ›ก๏ธ SENTINEL PLATFORM                    โ”‚
                  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                                               โ”‚
             โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
             โ–ผ                                 โ–ผ                                โ–ผ
   โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”             โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”            โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
   โ”‚ ๐Ÿค– SENTINEL AI    โ”‚             โ”‚ ๐ŸŽง SOUNDSCAPES    โ”‚            โ”‚ ๐Ÿ“ˆ READINESS      โ”‚
   โ”‚ โ€ข Live Voice Call โ”‚             โ”‚ โ€ข 7 HD Audio Hub  โ”‚            โ”‚ โ€ข 5-Signal Trends โ”‚
   โ”‚ โ€ข Soldier Persona โ”‚             โ”‚ โ€ข Offline Loop    โ”‚            โ”‚ โ€ข Box Breathing   โ”‚
   โ”‚ โ€ข Multi-lingual   โ”‚             โ”‚ โ€ข Sleep Countdown โ”‚            โ”‚ โ€ข Encrypted Diary โ”‚
   โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜             โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜            โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

1. ๐Ÿค– Sentinel AI Live Voice Companion (Comrade Persona)

  • Natural Dynamic Dialogue Engine: Contextual Natural Language Understanding spanning 100+ military operational scenarios (tactical fatigue, watch shifts, decompression, homesickness).
  • Brother-in-Arms Tone: Balanced military dignity with loyal, judgment-free camaraderie ("Jai Hind brother", "Bhai, I've got your six").
  • Low-Latency Speech Synthesis: 1.15x tempo audio playback supporting English, เคนเคฟเคจเฅเคฆเฅ€ (Hindi), and เฎคเฎฎเฎฟเฎดเฏ (Tamil).

2. ๐ŸŽง Tactical Soundscapes (7 HD Offline Audio Loops)

Procedurally synthesized, infinite stereo soundscapes bundled locally for zero-signal forward operating bases:

  • ๐ŸŒง๏ธ Thunderstorm & Heavy Rain (38 Hz binaural roll for deep recovery)
  • ๐ŸŒŠ Tidal Swell Ocean Waves (8s breathing swell rhythm)
  • ๐Ÿ”ฅ Crackling Barracks Fireplace (Randomized thermal crackle)
  • ๐ŸŒฒ Pine Forest Wind & Rustle (Calibrated pink-spectrum breeze)
  • ๐Ÿง  4 Hz Delta Brainwave Beats (Deep REM sleep restoration)
  • ๐ŸŒŒ Velvet Brown Noise (1/fยฒ cognitive tinnitus masking)
  • ๐Ÿฆ Dawn Mountain Birds (High-frequency morning alertness)
  • Persistent floating mini-player bar with sleep timers (15m, 30m, 60m, โˆž).

3. ๐Ÿ“Š Longitudinal Signals & Predictive Readiness Telemetry

  • Multi-series trend analysis tracking 5 Key Wellness Indicators:
    1. Stress Index (operational pressure calibration)
    2. Sleep Quality (circadian restoration tracking)
    3. Cognitive Energy (focus and reflex readiness)
    4. Mood Stability (psychological baseline equilibrium)
    5. Operational Fatigue (physical stamina depletion)
  • 2-minute daily baseline check-in generating immediate circadian and resilience recommendations.
  • Interactive Tactical Box Breathing radar (4-4-4-4 Navy SEAL protocol) for rapid adrenaline reset.

4. ๐Ÿ“ด 100% Offline-First Architecture

  • Built on localForage (IndexedDB) with automated background sync.
  • Personnel can log daily assessments, write private encrypted journals, and listen to audio in forward outposts with zero cellular or satellite coverage.
  • Data automatically synchronizes upon network restoration without data loss.

5. ๐Ÿฉบ Encrypted WebRTC Telehealth & Care Room

  • Peer-to-peer encrypted video and audio consultations with assigned Regimental Medical Officers.
  • Dynamic STUN/TURN fallback signaling for seamless connectivity across defense intranet and NAT environments.
  • In-call sensory grounding protocols and tactical calming tools.

6. ๐Ÿ”’ Military-Grade Confidentiality & Role Security

  • End-to-end encrypted session tokens.
  • Strict role-based separation:
    • Personnel: Private check-ins, journal, AI voice calls, and direct medical officer booking.
    • Medical Officers & RMOs: Cohort trend analytics, live WebRTC video telehealth, and electronic health record (EHR) notes.
    • Commanding Officers: Anonymized squad readiness aggregations only; individual records remain private to protect soldier dignity.

๐Ÿ› ๏ธ Architecture & Tech Stack

Layer Technologies
Frontend React 18, Vite, Vanilla CSS Design System, Lucide Icons, Canvas API
Mobile & PWA Progressive Web App (PWA) Workbox, Capacitor Android Wrapper
Backend API Node.js, Express, Socket.io (WebSocket signaling & live dispatch)
Database & Auth Supabase (PostgreSQL), JWT Bearer Auth, LocalForage IndexedDB
Voice & Speech Edge Neural HD Voice, Web Speech API, Synthesized Web Audio
Video Telehealth WebRTC Peer-to-Peer encrypted video streaming
Deployment Render Cloud (Infrastructure-as-Code blueprint via render.yaml)

๐Ÿ“ Project Structure

Sentinel_SIH/
โ”œโ”€โ”€ client/                     # Frontend Application (React 18 + Vite PWA)
โ”‚   โ”œโ”€โ”€ android/                # Native Android Project (Capacitor)
โ”‚   โ”œโ”€โ”€ ios/                    # Native iOS Project (Capacitor)
โ”‚   โ”œโ”€โ”€ public/                 # Static Assets, Defense Crest Logo, Sounds
โ”‚   โ”‚   โ”œโ”€โ”€ sentinel-logo.png   # Official Defense Crest Logo
โ”‚   โ”‚   โ””โ”€โ”€ sounds/             # 7 Offline HD Soundscapes (.wav)
โ”‚   โ””โ”€โ”€ src/
โ”‚       โ”œโ”€โ”€ components/         # Reusable UI (TacticalBoxBreathing, Soundscapes, etc.)
โ”‚       โ”œโ”€โ”€ context/            # AuthContext, LanguageContext, SoundscapeContext
โ”‚       โ”œโ”€โ”€ pages/              # 16 Specialized Pages (PatientDashboard, CallRoom, etc.)
โ”‚       โ””โ”€โ”€ utils/              # sentinelDialogueEngine, voiceSynthesizer
โ”œโ”€โ”€ server/                     # Backend API & WebSocket Signaling (Node.js)
โ”‚   โ”œโ”€โ”€ src/
โ”‚   โ”‚   โ”œโ”€โ”€ routes/             # auth, triage, appointments, records, ai
โ”‚   โ”‚   โ”œโ”€โ”€ sockets/            # WebRTC signaling & real-time chat
โ”‚   โ”‚   โ””โ”€โ”€ utils/              # aiModel, triageEngine, sentinelDialogueEngine
โ”‚   โ””โ”€โ”€ package.json
โ”œโ”€โ”€ supabase/                   # PostgreSQL Database Schemas & Migrations
โ”‚   โ”œโ”€โ”€ schema.sql              # Core Base Schema (Profiles, Roles, Consultations)
โ”‚   โ”œโ”€โ”€ schema_v2_patch.sql     # Onboarding & Auth Flow Patches
โ”‚   โ”œโ”€โ”€ schema_v3_records.sql   # Health Records & Prescription Storage
โ”‚   โ”œโ”€โ”€ schema_v4_sentinel.sql  # Sentinel 5-Signal Readiness Telemetry
โ”‚   โ””โ”€โ”€ patch_on_duty.sql       # Doctor On-Duty State Machine
โ”œโ”€โ”€ render.yaml                 # Infrastructure-as-Code Configuration
โ”œโ”€โ”€ .gitignore                  # Git Ignore Rules
โ””โ”€โ”€ README.md                   # Project Documentation

๐Ÿš€ Getting Started Locally

Prerequisites

  • Node.js: v18.0.0 or higher
  • npm: v9.0.0 or higher

1. Clone the Repository

git clone https://github.com/sautrikroy17/Sentinel_SIH.git
cd Sentinel_SIH

2. Backend Setup

cd server
npm install
# Configure your environment variables
cp .env.example .env
npm run dev
# Express server runs on http://localhost:4000

3. Frontend Setup

cd ../client
npm install
# Configure your environment variables
cp .env.example .env
npm run dev
# Vite dev server runs on http://localhost:5173

4. Database Setup

Execute the SQL schemas in your Supabase project in order:

  1. supabase/schema.sql
  2. supabase/schema_v2_patch.sql
  3. supabase/schema_v3_records.sql
  4. supabase/schema_v4_sentinel.sql
  5. supabase/patch_on_duty.sql

๐Ÿ›ก๏ธ Security & Defensive Hardening

  1. Zero Hardcoded Secrets: Sensitive API keys and Supabase credentials are strictly injected via runtime environment variables.
  2. Defensive Headers: Server fingerprinting is disabled (x-powered-by: false), payload limits enforced, and HTTP security headers applied across all endpoints.
  3. Resilient Error Boundaries: React Error Boundary wrappers prevent blank screen crashes in forward operational environments.

๐Ÿ‡ฎ๐Ÿ‡ณ Built for the Protectors of the Nation ๐Ÿ‡ฎ๐Ÿ‡ณ
Smart India Hackathon 2026 โ€ข Top 100 Shortlisted Team

About

Sentinel - Armed Forces Personnel Wellbeing & Cognitive Readiness Platform (SIH)

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages