Inspiration:- We looked at the traditional logistics industry and saw massive inefficiencies: trucks driving half-empty, drivers burning out on 500km+ routes, and bureaucratic nightmares whenever cargo needed to change vehicles mid-transit. We realized that if we could transform rigid, point-to-point freight lines into a dynamic, interconnected "mesh network," we could drastically cut carbon emissions, save money, and protect driver well-being. We wanted to build a system where trucks could intelligently share the load.

What it does:- EcoLogiq is a real-time logistics ecosystem that completely rewires how freight moves. Its standout feature is "Synergy Handovers." Using a live-tracking heartbeat, the system actively pairs a half-empty truck with an overloaded one sharing the same route. The drivers meet, scan a secure peer-to-peer QR code to physically swap cargo, and our system automatically updates the government E-Way Bill in the background to keep everything perfectly legal.

Additionally, it enforces "Driver Relay Logic" to prevent dispatchers from giving exhausting long-haul routes to overworked drivers, and features an automated Backhaul Marketplace to ensure trucks never return empty.

How we built it:- We architected a highly decoupled, multi-platform system:

Backend: Powered by Node.js, Express, and Prisma ORM connected to a PostgreSQL database. We used Socket.io to power the real-time proximity matchmaking engine.

Web Dashboard (Dispatchers): Built with React 18, Vite, and Zustand for state management, featuring a custom dark-themed Ant Design UI and Google Maps integration.

Mobile App (Drivers & Shippers): Built using Flutter and Riverpod. We implemented a headless background service (flutter_background_service) to maintain a persistent 3-minute GPS "heartbeat," ensuring live tracking even when the phone screen is locked.

Challenges we ran into:- Getting the 3-minute background GPS heartbeat to work reliably on mobile without the OS killing the app to save battery was a massive hurdle.

Additionally, engineering the "Synergy Engine" was mathematically complex. We couldn't just match trucks based on location; we had to write algorithms that simultaneously checked volume limits, weight capacities, and cargo compatibility (e.g., ensuring chemicals aren't transferred into a truck carrying food) before allowing a mid-route handover. Finally, ensuring the database didn't corrupt if a QR handshake failed mid-swap required implementing strict atomic $transaction rollbacks via Prisma.

Accomplishments that we're proud of:- We are incredibly proud of our Automated Compliance Engine. In the real world, transferring goods between trucks is an administrative nightmare, but we managed to make it as simple as scanning a QR code, with our backend instantly updating the Part-B E-Way Bill records.

We're also proud of successfully implementing the "Driver Relay Logic." It proves that an application can prioritize human health over raw efficiency by hardcoding guardrails that actively block dispatchers from assigning unfair workloads.

What we learned:- We learned how to architect a complex system where three distinct user roles (Dispatcher, Driver, Shipper) interact with the exact same real-time data graph, but with completely different UI constraints and permissions. We also gained deep technical knowledge in managing background isolates in Flutter and structuring complex, multi-table relational database schemas.

What's next for Team EcoLogiq:- Our next step is integrating an AI-powered predictive routing engine that learns traffic and weather patterns to suggest handovers proactively, before trucks even depart the warehouse. We also plan to integrate IoT sensor data to monitor temperature for cold-chain cargo during physical handovers, and ultimately, we want to run a real-world pilot with a regional logistics company to test our marketplace in the wild.

Built With

Share this project:

Updates