A centralized, rule-driven, intelligent transport operations platform designed to digitize the lifecycle of fleet assets, driver compliance, dispatch orchestration, and cost analysis.
Product Vision β’ Problem Statement β’ Platform Capabilities β’ Business Rules β’ Architecture β’ Roadmap β’ Documentation
TransitOps transforms fragmented spreadsheet and paper-based transport operations into a centralized, rule-driven, intelligent operations platform. By digitizing key registry data and establishing a server-side business rule engine, the platform enforces compliance, blocks invalid vehicle/driver assignments, monitors maintenance schedules, tracks granular cost elements, and layers in automated recommendation algorithms.
The platform guarantees operational predictability while preparing logistics teams to shift from reactive firefighting to predictive asset coordination.
Logistics operations without a unified system of record experience multiple operational bottlenecks:
- Scheduling Conflicts: Double-booking of vehicles and drivers leads to idle resources and delayed deliveries.
- Underutilized Vehicles: Lack of load-matching visibility causes light cargo loads to consume high-capacity vehicles.
- Missed Maintenance: Failure to flag service milestones yields high breakdown frequencies and depreciated asset lifetimes.
- Expired Driver Licenses: Assigning drivers with expired/suspended documents poses heavy legal and safety liabilities.
- Inaccurate Expense Tracking: Manual logs hide fuel anomalies, pilferage, and bloated cost-per-kilometer statistics.
- Poor Operational Visibility: Managers struggle to coordinate without centralized dashboards or real-time status alerts.
Secure user authentication implementing Role-Based Access Control (RBAC). Dashboards, workflows, and API endpoints are restricted to authorized roles (Fleet Manager, Dispatcher, Safety Officer, Financial Analyst).
Unified operational pane showing real-time Key Performance Indicators (KPIs) such as Active Vehicles, Available Vehicles, Vehicles in Maintenance, Active Trips, Pending Trips, Drivers On Duty, and Fleet Utilization (%). Filterable by vehicle type, status, and region.
Centralized master list capturing Registration Number (validated as unique), Model, Type, Maximum Load Capacity, Odometer, Acquisition Cost, and Status (Available, On Trip, In Shop, Retired).
Full driver profiles tracking Name, License Number, License Category, License Expiry Date, Contact Number, Safety Score, and Status (Available, On Trip, Off Duty, Suspended).
Orchestrated workflow tracking source, destination, cargo weight, planned distance, and current state. Full trip lifecycle tracking from Draft to Dispatched, Completed, or Cancelled.
Centralized maintenance scheduling and tracking. Opening an active service log blocks the vehicle from dispatches, and closing it reinstates the asset.
Unified logging of fuel fills (liters, cost, dates) and auxiliary operational expenses (tolls, maintenance invoices), dynamically computing total cost of ownership.
Calculates macro-analytics including fuel efficiency (distance/fuel), overall asset utilization, operational cost-per-kilometer, and vehicle Return on Investment (ROI). Supporting CSV file export.
To separate TransitOps from basic CRUD forms, the following modular intelligence extensions are planned:
| Feature Module | Description | Implementation Status |
|---|---|---|
| Computed Driver Safety Score | Calculates a dynamic 0-100 score based on on-time delivery rate, fuel anomaly occurrences, and duty-hour compliance. | Planned (Phase 12) |
| Dispatch Recommendation Engine | Compares cargo loads and routes to rank the best driver-vehicle matches by capacity fit and wear-balancing. | Planned (Phase 12) |
| Predictive Maintenance Alerts | Tracks odometer velocity trends to trigger "Service Due Soon" notices before breakdowns occur. | Planned (Phase 12) |
| Duty-Hour Compliance | Flags and blocks dispatch assignments for drivers exceeding consecutive driving hours in rolling 24h windows. | Planned (Phase 12) |
| Cost Leakage Detection | Computes cost-per-km trends and flags anomalous spikes (e.g. fuel theft or inflated service invoices). | Planned (Phase 12) |
| Compliance Document Vault | Tracks expiry schedules for recurring documents (insurance, PUC, permits) with tiered alert indicators. | Planned (Phase 12) |
| Natural-Language Ops Assistant | Provides a conversational querying interface for fleet managers to extract metrics in plain text. | Planned (Phase 12) |
| Live Operations Map | Real-time map displaying mock/simulated GPS coordinates for active dispatches. | Planned (Phase 12) |
| Customer Tracking Link | Generates shareable, secure, tokenized URLs for customers to monitor live ETAs without logging in. | Planned (Phase 12) |
TransitOps enforces the following business logic server-side to guarantee system safety and transactional consistency:
+--------------------------+ +--------------------------+ +--------------------------+
| Vehicle Registry | | Driver Management | | Trip Creation Request |
| * Plate must be unique | | * Validate license | | * Select source/dest |
| * Must be ACTIVE status | | * Must be ACTIVE status | | * Inputs cargo weight |
+------------+-------------+ +------------+-------------+ +------------+-------------+
| | |
+-----------------------+--------+--------------------------------+
|
v
+-----------------------------+
| Business Rule Engine |
| - Check vehicle/driver OK? |
| - Cargo <= Max Load? |
| - Double-booking check? |
+-------------+---------------+
|
[Validation Checks]
|
+------------------+------------------+
| (Pass) | (Fail)
v v
+------------------------+ +-------------------+
| Allow Dispatch | | Block Dispatch |
| - Vehicle: On Trip | | - Return error |
| - Driver: On Trip | +-------------------+
+------------------------+
- Unique Registrations: No two vehicles can be registered with identical plate numbers.
- Dispatch Exclusion: Vehicles marked
In ShoporRetiredare blocked from new dispatches. - Driver Vetting: Drivers with expired licenses or marked
Suspendedare blocked from new dispatches. - No Double-Booking: Drivers or vehicles currently flagged as
On Tripare blocked from concurrent assignments. - Capacity Guard: A trip cannot be dispatched if the cargo weight exceeds the assigned vehicle's maximum load capacity.
- Atomic Transitions: Dispatching a trip automatically transitions the vehicle and driver to
On Trip. Completing or cancelling the trip automatically reverts them toAvailable. - Maintenance Locks: Creating an active maintenance record sets the vehicle to
In Shop. Closing the log restores the vehicle toAvailable(unless status isRetired).
TransitOps is designed around a modern, decoupled web architecture. All planned application layers are detailed in the target diagram below:
graph LR
subgraph Client [Frontend Layer - Planned]
A[React & Vite Client]
end
subgraph Service [Backend Layer - Planned]
B[Express.js App Router]
C[JWT & RBAC Middleware]
D[Mandatory Business Rule Engine]
E[Intelligence Service]
F[Socket.IO Server]
end
subgraph Storage [Persistence Layer - Planned]
G[Prisma ORM Client]
H[(PostgreSQL Database)]
end
A -- HTTP / HTTPS REST --> B
A -- WebSockets --> F
B --> C
C --> D
D --> G
E --> G
G --> H
Note: The current repository is in Phase 0 and contains documentation files only. Source code integration will follow in sequential stages.
The following flowchart outlines the lifecycle of assets, compliance checks, dispatch actions, and subsequent logs:
flowchart TD
A[Vehicle Registration] --> B[Driver Validation]
B --> C[Trip Creation]
C --> D{Business Rule Validation}
D -- Fails --> E[Block Dispatch & Show Error]
D -- Passes --> F[Dispatch Trip]
F --> G[Status: On Trip]
G --> H{Trip Outcome}
H -- Completion --> I[Mark Vehicle/Driver Available]
H -- Cancellation --> I
I --> J[Fuel / Expense Logs Update]
J --> K[Reports & Analytics Update]
K --> L{Maintenance Required?}
L -- Yes --> M[Create Maintenance Log]
M --> N[Status: In Shop]
N --> O[Resolve Service]
O --> I
L -- No --> P[End Workflow]
The target application implements strict separation of duties:
| Role | Operational Scope | Access Level & Intent |
|---|---|---|
| Fleet Manager | Full operational visibility and master registry control. | Write permissions on Vehicles/Drivers; read-only access to logs. |
| Dispatcher / Driver | Manages dispatch actions, logging execution steps, and capturing load weights. | Write permissions on Trips, Fuel Logs, and Expenses. |
| Safety Officer | Monitors safety scores, license expirations, and regulatory compliance. | Write permissions on Driver Compliance/Suspensions. |
| Financial Analyst | Reviews operating costs, maintenance logs, ROI metrics, and exports reports. | Read-only access to analytics; CSV export privileges. |
| Feature Module | Requirement Type | Status | Phase |
|---|---|---|---|
| Project Documentation | Foundation | Implemented | Phase 0 |
| Codebase Setup & Prisma Config | Foundation | Planned | Phase 1 |
| Authentication & RBAC Checks | Mandatory | Planned | Phase 2 |
| KPI Fleet Dashboard | Mandatory | Planned | Phase 3 |
| Vehicle Registry CRUD | Mandatory | Planned | Phase 4 |
| Driver Management CRUD | Mandatory | Planned | Phase 5 |
| Trip Dispatch Lifecycle | Mandatory | Planned | Phase 6 |
| Business Rule Checks | Mandatory | Planned | Phase 7 |
| Maintenance Records | Mandatory | Planned | Phase 8 |
| Fuel & Expense Calculations | Mandatory | Planned | Phase 9 |
| Analytics Reports & CSV Export | Mandatory | Planned | Phase 10 |
| Bidirectional WebSocket Sync | Bonus | Planned | Phase 11 |
| Computed Driver Safety Score | Advanced Differentiator | Planned | Phase 12 |
| Recommendation Engine | Advanced Differentiator | Planned | Phase 12 |
| Predictive Maintenance | Advanced Differentiator | Planned | Phase 12 |
| Duty-Hour Verification | Advanced Differentiator | Planned | Phase 12 |
| Cost Leakage Verification | Advanced Differentiator | Planned | Phase 12 |
| Document Expiry Vault | Advanced Differentiator | Planned | Phase 12 |
| Natural Language Ops Assistant | Advanced Differentiator | Planned | Phase 12 |
| Live Operations Map | Advanced Differentiator | Planned | Phase 12 |
| Customer Tracking Link | Advanced Differentiator | Planned | Phase 12 |
The platform is designed to compile with the following primary tools and framework layers:
|
React |
Vite |
Node.js |
Express |
PostgreSQL |
Prisma |
Socket.IO |
JWT |
The current structure contains only configuration files, directory setups, and documentation. No project application code is initialized.
TransitOps/
βββ docs/
β βββ ARCHITECTURE.md # System design and database flow architecture
β βββ ROADMAP.md # Development timelines and milestones
β βββ TransitOps_PRD.pdf # Original Product Requirements Document
β βββ TransitOps_Problem_Statement.pdf # Official Odoo hackathon problem statement
βββ .gitignore # Excluded project files config
βββ CODE_OF_CONDUCT.md # Contributor Covenant CoC standard
βββ CONTRIBUTING.md # Code format guidelines, branching, and commit conventions
βββ LICENSE # Project license guidelines
βββ README.md # Project landing documentation
βββ SECURITY.md # Vulnerability reporting structures
βββ TEAM.md # Development team roles and philosophies
Development transitions in phases matching ROADMAP.md:
- Phase 0 β Repository documentation and standards: (Active)
- Phases 1 to 2 β Project foundation, Auth and RBAC: Setup workspaces and routing validation middleware.
- Phases 3 to 6 β Registries & Lifecycles: Configure vehicle, driver, and trip dispatch schemas.
- Phase 7 β Business Rule Engine: Build validation logic covering capacities and availability criteria.
- Phases 8 to 10 β Cost logs & Reporting: Build maintenance, expense, and CSV export modules.
- Phases 11 to 13 β WebSockets, Intelligence Layer, and Deployment: Layer real-time notifications, recommendations, predictive tracking, document expletives, and Cypress test suites.
Refer to docs/ROADMAP.md for full acceptance checklists per phase.
- Rachit Kakkad β Team Lead / Core Developer
- Nishit Doshi β Core Developer
- Tapan Vachhani β Core Developer
- Harshit Kumar β Core Developer
Refer to TEAM.md for a detailed list of individual priorities.
- Product Requirements Document (PRD)
- Official Problem Statement
- Architecture & Data Flows
- Development Roadmap
- Team Roles
- Contributing Standards
- Code of Conduct
- Security Policy
Contributions must follow the branch naming and commit rules in CONTRIBUTING.md. Direct code updates without PR reviews are prohibited.
This project is licensed under the MIT License - see the LICENSE file for details.