Skip to content

๐ŸŽ™๏ธ ResQ-Connect: transforming 911 calls into instant tactical actions using Generative AI. Listen. Analyze. Dispatch.

Notifications You must be signed in to change notification settings

sanjayrohith/ResQ-Desk

Repository files navigation

React TypeScript Vite TailwindCSS

Status License PRs Welcome


๐ŸŽฏ Real-time Emergency Response Management System

AI-powered dispatch platform that transforms emergency calls into actionable intelligence


ResQ-Desk Dashboard




๐Ÿ”— Explore The Ecosystem

Frontend

React โ€ข TypeScript โ€ข Vite
โœจ Tactical Dashboard & Live UI
Backend

FastAPI โ€ข AI/NLP โ€ข Python
๐Ÿ”ฅ AI Engine & Command Center

๐Ÿ‘จโ€๐Ÿ’ป The Architects



Sanjay Rohith
๐Ÿš€ Lead Developer

GitHub


Sanjay E
๐Ÿง  AI & Backend

GitHub


Abishek Raj
๐ŸŽจ Frontend Architect

GitHub


๐Ÿ’ก The Problem We're Solving

โฑ๏ธ Every Second Matters

Emergency dispatchers are the unsung heroes operating under extreme pressure:

Challenge Impact
๐Ÿ“ Manual Data Entry Precious seconds wasted during high-stress calls
โŒ Human Error Incorrect resource deployment risks lives
๐Ÿง  Cognitive Overload Managing multiple streams simultaneously
๐ŸŒ Delayed Response Inefficient incident classification
    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
    โ”‚   BEFORE ResQ    โ”‚
    โ”‚                  โ”‚
    โ”‚   ๐Ÿ“ž โ”€โ”€โ†’ ๐Ÿ“     โ”‚
    โ”‚   Call   Manual  โ”‚
    โ”‚          Entry   โ”‚
    โ”‚                  โ”‚
    โ”‚   โฐ +45 seconds โ”‚
    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
    โ”‚   WITH ResQ-Desk โ”‚
    โ”‚                  โ”‚
    โ”‚   ๐Ÿ“ž โ”€โ”€โ†’ ๐Ÿค–     โ”‚
    โ”‚   Call   AI Auto โ”‚
    โ”‚          Fill    โ”‚
    โ”‚                  โ”‚
    โ”‚   โšก <3 seconds  โ”‚
    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜


โœจ Features That Save Lives

๐ŸŽ™๏ธ Live Call Management ๐Ÿง  AI Intelligence ๐Ÿ“‹ Auto Reports ๐Ÿ—บ๏ธ Tactical Maps
Push-to-talk interface Real-time NLP analysis Zero-touch form filling Live unit tracking
Audio visualization Smart data extraction Severity classification Route optimization
Language detection Keyword detection AI reasoning display Multi-unit coordination
Encrypted channels Confidence scoring Tactical alerts ETA calculations

๐ŸŽ™๏ธ Live Call Management

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚  ๐Ÿ”ด LIVE CALL                                    00:01:23   โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚                                                             โ”‚
โ”‚  โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘  โ”‚
โ”‚  โ–โ–‚โ–ƒโ–…โ–‚โ–โ–‚โ–ƒโ–…โ–‡โ–…โ–ƒโ–‚โ–โ–‚โ–ƒโ–…โ–†โ–…โ–ƒโ–‚โ–โ–‚โ–ƒโ–„โ–…โ–†โ–‡โ–†โ–…โ–„โ–ƒโ–‚โ–โ–‚โ–ƒโ–„โ–…โ–†โ–‡โ–†โ–…โ–„โ–ƒโ–‚โ–          โ”‚
โ”‚                                                             โ”‚
โ”‚  [๐ŸŽค PTT ACTIVE]    [๐Ÿ”‡ MUTE]    [๐Ÿ“ LOCATE]    [๐Ÿšจ ALERT]  โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

๐Ÿง  AI-Powered Intelligence

"There's a fire on the second floor..."

โฌ‡๏ธ Instant AI Analysis โฌ‡๏ธ

Field Extracted Value Confidence
๐Ÿ“ Location 123 Main Street, 2nd Floor 94%
๐Ÿ”ฅ Type FIRE 98%
โš ๏ธ Severity CRITICAL 91%
๐Ÿท๏ธ Keywords FIRE SMOKE TRAPPED โ€”


๐Ÿ—๏ธ System Architecture

                    โ•”โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•—
                    โ•‘         ResQ-Desk Architecture        โ•‘
                    โ•šโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•

    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”         โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”         โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
    โ”‚                 โ”‚         โ”‚                 โ”‚         โ”‚                 โ”‚
    โ”‚   ๐ŸŽค Web Speech โ”‚โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ถโ”‚  โš›๏ธ React UI   โ”‚โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ถโ”‚  ๐Ÿง  AI Backend  โ”‚
    โ”‚       API       โ”‚         โ”‚   (This Repo)   โ”‚         โ”‚   (FastAPI)     โ”‚
    โ”‚                 โ”‚         โ”‚                 โ”‚         โ”‚                 โ”‚
    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜         โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜         โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
           โ”‚                           โ”‚                           โ”‚
           โ”‚                           โ”‚                           โ”‚
           โ–ผ                           โ–ผ                           โ–ผ
    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”         โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”         โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
    โ”‚  Voice โ†’ Text   โ”‚         โ”‚  Tactical UI    โ”‚         โ”‚  NLP Analysis   โ”‚
    โ”‚  Recognition    โ”‚         โ”‚  Live Dashboard โ”‚         โ”‚  Data Extract   โ”‚
    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜         โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜         โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

๐Ÿ› ๏ธ Tech Stack

Layer Technology Badge
UI Framework React 18 React
Language TypeScript TypeScript
Build Tool Vite Vite
Styling Tailwind CSS Tailwind
Components shadcn/ui shadcn
State TanStack Query TanStack


๐Ÿš€ Quick Start

๐Ÿ“‹ Prerequisites
  • โœ… Node.js 18+ or Bun
  • โœ… Modern browser (Chrome 80+, Firefox 76+, Safari 14+)
  • โœ… Microphone access for speech recognition

โšก Installation

# 1๏ธโƒฃ Clone the repository
git clone https://github.com/sanjayrohith/ResQ-Desk.git

# 2๏ธโƒฃ Navigate to project
cd ResQ-Desk

# 3๏ธโƒฃ Install dependencies
npm install

# 4๏ธโƒฃ Launch development server
npm run dev

๐ŸŽ‰ Open http://localhost:5173 and start saving lives!



๐Ÿ“ Project Structure

ResQ-Desk/
โ”‚
โ”œโ”€โ”€ ๐Ÿ“‚ src/
โ”‚   โ”œโ”€โ”€ ๐Ÿ“‚ components/
โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿ“‚ dashboard/
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ ๐ŸŽฏ Header.tsx           # System status & nav
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿ“ž LiveCall.tsx         # PTT controls & timer
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿ“ LiveTranscription.tsx # Speech-to-text engine
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿ“‹ IncidentDetails.tsx  # AI form automation
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿ—บ๏ธ MapPanel.tsx         # Tactical deployment
โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ ๐Ÿšจ DispatchPopup.tsx    # Unit assignment
โ”‚   โ”‚   โ”‚
โ”‚   โ”‚   โ””โ”€โ”€ ๐Ÿ“‚ ui/                      # shadcn/ui components
โ”‚   โ”‚
โ”‚   โ”œโ”€โ”€ ๐Ÿ“‚ pages/
โ”‚   โ”‚   โ””โ”€โ”€ ๐Ÿ  Index.tsx                # Main orchestration
โ”‚   โ”‚
โ”‚   โ”œโ”€โ”€ ๐Ÿ“‚ hooks/                       # Custom React hooks
โ”‚   โ””โ”€โ”€ ๐Ÿ“‚ lib/                         # Utilities
โ”‚
โ””โ”€โ”€ โš™๏ธ Configuration files


๐Ÿ”„ How It Works

graph LR
    A[๐Ÿ“ž Emergency Call] -->|Voice Input| B[๐ŸŽค Live Transcription]
    B -->|Text Stream| C[๐Ÿง  AI Analysis]
    C -->|Structured Data| D[๐Ÿ“‹ Auto-fill Form]
    D -->|Dispatch Ready| E[๐Ÿ—บ๏ธ Resource Dispatch]
    E -->|Unit Assigned| F[๐Ÿš‘ Deployment]
    
    style A fill:#FF6B6B,color:#fff
    style B fill:#4ECDC4,color:#fff
    style C fill:#45B7D1,color:#fff
    style D fill:#96CEB4,color:#fff
    style E fill:#FFEAA7,color:#333
    style F fill:#00D26A,color:#fff
Loading
Step Action Time
1๏ธโƒฃ Call Initiated โ€” Operator activates PTT, caller speaks 0s
2๏ธโƒฃ Real-time Transcription โ€” Speech converted instantly <1.5s
3๏ธโƒฃ AI Processing โ€” Backend extracts location, type, severity ~2-3s
4๏ธโƒฃ Form Auto-fill โ€” Incident details populate automatically instant
5๏ธโƒฃ Dispatch Decision โ€” System suggests optimal unit ready
6๏ธโƒฃ Unit Deployment โ€” Responders receive coordinates & ETA ๐Ÿš€


๐Ÿ”Œ API Integration

๐Ÿ“ก Backend Communication

Endpoint

POST http://127.0.0.1:8000/analyze

Request

{
  "text": "There's a fire on the second floor of 123 Main Street"
}

Response

{
  "incident_id": "INC-2024-001",
  "location": "123 Main Street, 2nd Floor",
  "emergency_type": "FIRE",
  "severity": "Critical",
  "keywords": ["FIRE", "SMOKE", "TRAPPED"],
  "reasoning": "Multiple fire indicators detected with potential victims",
  "confidence_score": 0.94,
  "suggested_unit": "F07"
}


๐Ÿ“Š Performance

Metric Value Status
๐ŸŽค Transcription Latency <1.5s ๐ŸŸข
๐Ÿง  AI Analysis Time ~2-3s ๐ŸŸข
๐Ÿ“‹ Form Auto-fill Instant ๐ŸŸข
๐Ÿ—บ๏ธ Map Rendering 60 FPS ๐ŸŸข


๐ŸŒ Browser Support

Chrome Firefox Safari Edge
80+ โœ… 76+ โœ… 14+ โš ๏ธ 80+ โœ…
Recommended Full Support Limited Speech API Full Support


๐Ÿ” Security

๐Ÿ”’ Feature Description
โœ… Encrypted Channels All communications secured
โœ… No Persistent Storage Sensitive call data not stored
โœ… Client-side Processing Privacy-first voice handling
โœ… Secure API Protected backend communication


๐Ÿšง Roadmap

    ๐ŸŽฏ CURRENT                    ๐Ÿ”ฎ FUTURE
    โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”
    
    โœ… Real-time transcription    โฌœ Multi-language support
    โœ… AI incident analysis       โฌœ Analytics dashboard
    โœ… Auto-form filling          โฌœ CAD integration
    โœ… Tactical map               โฌœ Mobile app
    โœ… Unit dispatch              โฌœ Voice biometrics
                                  โฌœ Predictive ML


๐Ÿ› ๏ธ Scripts

npm run dev      # ๐Ÿ”ฅ Development server with HMR
npm run build    # ๐Ÿ“ฆ Production build
npm run preview  # ๐Ÿ‘€ Preview production build
npm run lint     # ๐Ÿ” ESLint analysis


๐Ÿค Contributing

We welcome contributions from the community!

Report Bug Request Feature


๐Ÿ“„ License

Released under the MIT License

See LICENSE for details




๐Ÿ’– Built with passion for first responders

โฑ๏ธ Saving seconds to save lives


Made with โค๏ธ by the ResQ Team


Star this repo

About

๐ŸŽ™๏ธ ResQ-Connect: transforming 911 calls into instant tactical actions using Generative AI. Listen. Analyze. Dispatch.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages