Skip to content

meetnishant/OpenTrack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🗺️ OpenTrack: Enterprise Fleet Intelligence

Next.js MapLibre Redis PostGIS

OpenTrack is a high-performance, open-source fleet management platform designed for the complex urban landscape of modern global logistics. Built with a focus on zero-latency tracking and developer-first extensibility, it transforms raw GPS telemetry into actionable business intelligence.


🖼️ Gallery

Live Fleet Dashboard

OpenTrack Live Dashboard Real-time vehicle movement and high-density fleet telemetry.

API-First Developer Portal

Developer Portal Built for integration: Live API documentation and service health monitoring.

Spatial Intelligence & Geofencing

Geofencing & Alerts Draw complex perimeters to trigger real-time boundary violations.


🚀 Key Features

📡 Real-time Telemetry (60 FPS)

Experience butter-smooth vehicle movement. Using advanced interpolation and MapLibre GL JS, markers glide across the map with zero stutter, even under high network latency.

🕰️ The Time Machine (Historical Replay)

Scrub through any vehicle's history with precision. Our high-speed PostGIS backend retrieves months of data in milliseconds, rendered with synchronized "Ghost Markers" for deep incident analysis.

🛡️ The Watchman (Geofencing)

Draw complex safety zones directly on the map. Our client-side spatial engine (Turf.js) detects entry/exit events instantly, triggering native browser notifications and external webhooks.

🔌 API-First Engine

A full-featured developer portal providing REST access to every core system:

  • Routing & Matrix ETAs: OSRM-powered pathfinding and multi-vehicle dispatching (/api/v1/routing/matrix).
  • Analytics & Export: Daily distance, idle-time aggregation, and GeoJSON historical dumps (/api/v1/export).
  • Webhooks: Real-time event streaming to your own backend via location.updated subscriptions.
  • Batch Ingestion: High-throughput telemetry ingestion for IoT gateways (/api/v1/track/batch).
  • API Key Management: Secure provisioning of access tokens mapped to specific scopes (/api/v1/keys).

🏗️ Architecture

graph TD
    A[GPS Devices] -->|POST /api/v1/track| B(Next.js API)
    B -->|Persist| C[(PostGIS DB)]
    B -->|Broadcast| D[Node.js Live Engine]
    D -->|Cache| E[(Redis Snapshot)]
    D -->|Stream| F[Dashboard UI]
    F -->|Draw| G[MapLibre / PMTiles]
Loading

🛠️ Quick Start (Production)

Deploy the entire stack in seconds using Docker:

docker-compose up --build

Access the ecosystem:

  • Dashboard: http://localhost:3000/dashboard
  • Developer Portal: http://localhost:3000/developer
  • Live Engine: http://localhost:3001

👨‍💻 Tech Stack

  • Frontend: Next.js 15, Tailwind CSS, MapLibre GL JS.
  • Mapping: Protomaps (PMTiles) for offline-capable, cost-free vector tiles.
  • Backend: Node.js, Prisma ORM, Socket.io.
  • Data: PostgreSQL + PostGIS (Geospatial), Redis (High-speed Cache).
  • Analysis: Turf.js (Spatial Analysis).

📜 Documentation


Built with ❤️ for the future of logistics.

About

High-performance, open-source GPS tracking platform using MapLibre & Protomaps. Monitor fleets in real-time with zero mapping costs.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages