Skip to content

Repository files navigation

BlockTrain Flowing Gradient Header


Replacing archaic paper-based track approvals with a live, interactive map, automated AI path optimization, and instantaneous voice/SMS dispatch protocols.

πŸš€ The Core Vision

Currently, authorizing a railway maintenance "block" requires a staggering amount of phone calls, physical paper trails, and radio miscommunications. If a train is on an intercept path, the results can be catastrophic. BlockTrain completely digitizes this workflow to remove human error and prioritize human lives.


✨ Platform Features

πŸ—ΊοΈ Live Digital Twin

A beautifully rendered, fully interactive SVG map of the railway network. Visualizes active trains, maintenance blocks (yellow hazard zones), and station platforms in real-time.

πŸš‚ Physics-Based Kinematics

Trains move smoothly across the network using custom mathematical physics hooks, preventing instant teleportation and providing a realistic simulation of network traffic.

πŸŽ™οΈ Emergency Voice Dispatch

Click any track to schedule a block and record live emergency audio. Instantly triggers native SMS protocols to blast the custom text and Cloudinary audio link to field workers.

🧠 AI-Powered Rerouting

Integrated with Grok AI to analyze blocked tracks, calculate ripple effects, and automatically suggest optimized routing paths to minimize delays.


πŸ—οΈ Enterprise Architecture

Our backend employs a strict Domain-Driven Design (DDD), cleanly structured into highly scalable feature modules.

πŸ“‚ modules/blocks β€” Maintenance scheduling logic
πŸ“‚ modules/dispatch β€” Native SMS, telecom, and Cloudinary media
πŸ“‚ modules/workers β€” Personnel and department routing
πŸ“‚ modules/chatbot β€” Grok AI analytics and prompting
πŸ“‚ modules/optimization β€” Railway pathfinding and kinematic scheduling


πŸ› οΈ Getting Started

1. Boot the API Server

cd apps/api
npm install
npm run dev

API mounts on http://localhost:5000

2. Launch the Digital Twin

cd frontend
npm install
npm run dev

Map & Dispatch UI available at http://localhost:3000


Flowing Gradient Footer

About

🚈 Next-gen railway simulation & digital twin for the Southern Railway. Equipped with autonomous multi-lane routing, live train telemetry, and smart AI-driven maintenance blocking. ⚑

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages