tpt-emergency

JavaScript

Open-source offline-first emergency response platform — modular fire, ambulance, police & disaster management, live dispatch console, Bluetooth mesh networking, unit tracking, and offline mapping. PWA. MIT.

0 stars0 forks0 watchersMIT License
ambulancebluetoothdispatchemergency-managementemergency-servicesfire-departmentjavascriptoffline-firstopen-sourcepwa

Languages

JavaScript90.1%HTML9.8%CSS0.0%Dockerfile0.0%
README

✅ TPT Emergency Services System

Modular Offline-First Emergency Response Platform


🎯 Core System Capabilities

FeatureStatus
100% Offline First - All features work without internet
Progressive Web App - Installs on any device
Native Bluetooth - Direct browser bluetooth integration
Modular Architecture - Fire / Ambulance / Police / Disaster
Flexible Deployment - Laptop, Server, Cloud, Edge
Real-time Communications - Socket.IO mesh network
Dispatch Console - Full call center operations
Unit Tracking - Vehicle and personnel monitoring
Offline Mapping - Map tile caching
Zero Configuration - Runs immediately

🚀 Quick Start

✅ Run in 3 commands:

git clone https://github.com/PhillipC05/tpt-emergency.git
cd tpt-emergency
npm install
npm run dev

System will automatically open in your browser at http://localhost:8383


📦 Deployment Options

MethodSetup TimeNotes
Single Executable2 secondsDouble click EXE file, no installation required
Node.js1 minuteWorks on any operating system
Static HTML File0 secondsSingle file that runs in any browser
Raspberry Pi5 minutesVehicle mounted edge deployment
Cloud Server2 minutesAny VPS provider
Docker1 minuteOptional container deployment

🧩 Modules

ModuleStatus
🔥 Fire Department✅ Implemented
🚑 Ambulance Service✅ Implemented
🚔 Police✅ Implemented
🌪️ Disaster Response✅ Implemented
📞 Dispatch Console✅ Implemented
📡 Bluetooth Manager✅ Implemented
🗺️ Live Mapping✅ Implemented
📋 Incident Management✅ Implemented

📡 Bluetooth Features

  • ✅ Beacon Monitoring
  • ✅ Personnel Tracking
  • ✅ Equipment Status
  • ✅ Peer to Peer Sync
  • ✅ Medical Device Integration
  • ✅ Radio Interface

🛠️ Technical Stack

LayerTechnologyReason
FrontendSolidJS + TailwindFastest performance, smallest bundle
BackendFastifyLow resource usage, extremely fast
DatabaseSQLite + IndexedDBZero setup, single file
MappingMapLibre GL100% open source, offline support
RealtimeSocket.IOReliable connections
PWAWorkboxStandard offline service worker
PackagingpkgCompiles to native single executables

✅ System Requirements

  • Windows 10+, MacOS 10.15+, Linux
  • Any modern browser (Chrome, Edge, Safari 15.4+)
  • 2GB RAM minimum
  • No internet connection required

⚠️ Emergency Use Notice

This software is designed for emergency services operations. All data is stored locally and never leaves your network. No external connections required.


Current Progress: 51% Complete

TaskCount
Completed17
Remaining32
Total49

See TODO.md for full implementation checklist.