How mohithbs-stack/mahe_sanket works
Sanket protects elders during live calls: audio is captured, transcribed, scored, and—when risk warrants—surfaced as a vernacular takeover and guardian alert. Guardians can configure a profile and review saved incidents and reports; the elder companion and guardian console are separate entry surfaces. The graph follows documented features and indexed imports, but several page and service implementations were not sampled, so those links rely on README statements or are omitted where ownership is unclear.
Main entry points: Console.jsx Guardian console · ElderIdle.jsx Elder companion · App.jsx Route shell · db.js Local incident store
Components 27
User surfaces
- Route shell
sanket/src/App.jsx - Guardian console
sanket/src/pages/Console.jsx - Elder companion
sanket/src/pages/ElderIdle.jsx - Profile setup
sanket/src/pages/Onboarding.jsx - Protection settings
sanket/src/pages/Settings.jsx
Live call defense
- Audio capture
sanket/src/hooks/useAudioCapture.js - Session telemetry
sanket/src/hooks/useTranscriptSession.js - Speech recognition
sanket/src/services/sarvamASR.js - Threat scoring
sanket/src/services/riskScoring.js - Scam scenarios
sanket/src/data/riskTestSet.js - Risk gauge
sanket/src/components/RiskGauge.jsx - Transcript stream
sanket/src/components/TranscriptStream.jsx - Threat state
sanket/src/components/StateChip.jsx - Alert takeover
sanket/src/components/AlertTakeover.jsx
Incident records
- Incident history
sanket/src/pages/History.jsx - Incident report
sanket/src/pages/IncidentReport.jsx - Local incident store
sanket/src/services/db.js - Report generator
sanket/src/services/incidentReportGenerator.js - Incident card
sanket/src/components/IncidentCard.jsx
External integrations
- Warning speech
sanket/src/services/sarvamTTS.js - Guardian notification
sanket/src/services/telegramNotify.js
Other components
- Elder
- Guardian
- Browser local storage
- Sarvam AI
- n8n webhook
- Telegram
Connections 42
- Elder → Elder companion: uses
README.md - Guardian → Guardian console: uses
README.md - Route shell → Profile setup: routes
sanket/src/App.jsx - Route shell → Guardian console: routes
sanket/src/App.jsx - Route shell → Elder companion: routes
sanket/src/App.jsx - Route shell → Incident history: routes
sanket/src/App.jsx - Route shell → Incident report: routes
sanket/src/App.jsx - Route shell → Protection settings: routes
sanket/src/App.jsx - Guardian console → Audio capture: starts
sanket/src/pages/Console.jsx - Elder companion → Audio capture: starts
sanket/src/pages/ElderIdle.jsx - Audio capture → Speech recognition: sends audio
- Guardian console → Speech recognition: transcribes chunks
sanket/src/pages/Console.jsx - Elder companion → Speech recognition: transcribes chunks
sanket/src/pages/ElderIdle.jsx - Guardian console → Threat scoring: scores transcript
sanket/src/pages/Console.jsx - Elder companion → Threat scoring: scores transcript
sanket/src/pages/ElderIdle.jsx - Threat scoring → n8n webhook: posts optionally
sanket/src/services/riskScoring.js - Threat scoring → Scam scenarios: evaluates scenarios
sanket/src/data/riskTestSet.js - Guardian console → Session telemetry: manages session
sanket/src/pages/Console.jsx - Elder companion → Session telemetry: manages session
sanket/src/pages/ElderIdle.jsx - Session telemetry → Local incident store: saves qualifying sessions
sanket/src/hooks/useTranscriptSession.js - Local incident store → Browser local storage: reads and writes
sanket/src/services/db.js - Guardian console → Risk gauge: renders score
sanket/src/pages/Console.jsx - Guardian console → Transcript stream: renders transcript
sanket/src/pages/Console.jsx - Guardian console → Threat state: renders state
sanket/src/pages/Console.jsx - Guardian console → Alert takeover: renders alert
sanket/src/pages/Console.jsx - Elder companion → Alert takeover: renders alert
sanket/src/pages/ElderIdle.jsx - Guardian console → Warning speech: plays warning
README.md - Elder companion → Warning speech: plays warning
README.md - Guardian console → Guardian notification: sends alert
sanket/src/pages/Console.jsx - Guardian notification → Telegram: notifies
README.md - Warning speech → Sarvam AI: requests speech
sanket/src/services/sarvamTTS.js - Speech recognition → Sarvam AI: requests transcription
README.md - Profile setup → Local incident store: saves profile
sanket/src/pages/Onboarding.jsx - Protection settings → Local incident store: updates settings
sanket/src/pages/Settings.jsx - Protection settings → Guardian notification: tests alert
sanket/src/pages/Settings.jsx - Protection settings → Warning speech: tests speech
sanket/src/pages/Settings.jsx - Incident history → Local incident store: loads incidents
sanket/src/pages/History.jsx - Incident history → Incident card: renders incidents
sanket/src/pages/History.jsx - Incident report → Local incident store: loads session
sanket/src/pages/IncidentReport.jsx - Incident report → Report generator: generates report
sanket/src/pages/IncidentReport.jsx - Incident report → Risk gauge: renders score
sanket/src/pages/IncidentReport.jsx - Guardian console → Incident report: links incident report