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

| Feature | Status | |---|---| | ✅ | 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

| Method | Setup Time | Notes | |---|---|---| | Single Executable | 2 seconds | Double click EXE file, no installation required | | Node.js | 1 minute | Works on any operating system | | Static HTML File | 0 seconds | Single file that runs in any browser | | Raspberry Pi | 5 minutes | Vehicle mounted edge deployment | | Cloud Server | 2 minutes | Any VPS provider | | Docker | 1 minute | Optional container deployment |


🧩 Modules

| Module | Status | |---|---| | 🔥 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

| Layer | Technology | Reason | |---|---|---| | Frontend | SolidJS + Tailwind | Fastest performance, smallest bundle | | Backend | Fastify | Low resource usage, extremely fast | | Database | SQLite + IndexedDB | Zero setup, single file | | Mapping | MapLibre GL | 100% open source, offline support | | Realtime | Socket.IO | Reliable connections | | PWA | Workbox | Standard offline service worker | | Packaging | pkg | Compiles 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

| Task | Count | |---|---| | Completed | 17 | | Remaining | 32 | | Total | 49 |

See TODO.md for full implementation checklist.