SupplyWaveSA

Live Now: https://supplywave-snowy.vercel.app Run it instantly β€” no setup needed. Free-tier hosted build by Kirov Dynamics.

Live Deployment


SupplyWave B2B Supply Chain & Logistics OS πŸ“¦πŸŒ

[![CI/CD](https://github.com/Raphasha27/SupplyWaveSA/actions/workflows/ci.yml/badge.svg)](https://github.com/Raphasha27/SupplyWaveSA/actions/workflows/ci.yml) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=for-the-badge)](http://makeapullrequest.com) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg?style=for-the-badge)](https://opensource.org/licenses/MIT) [![Flutter](https://img.shields.io/badge/Flutter-3.x-02569B?style=for-the-badge&logo=flutter)](https://flutter.dev) [![FastAPI](https://img.shields.io/badge/FastAPI-005571?style=for-the-badge&logo=fastapi)](https://fastapi.tiangolo.com) [![React](https://img.shields.io/badge/React-20232A?style=for-the-badge&logo=react&logoColor=61DAFB)](https://react.dev) **A comprehensive, native-first autonomous B2B supply chain cost-optimization & logistics mesh.** *Real-time shipment tracking Β· Automated procurement Β· ML-powered inventory forecasting Β· SLA compliance* [πŸš€ Quick Start](#-quick-start) Β· [πŸ—ΊοΈ Architecture](#️-architecture) Β· [πŸ“‹ Features](#-feature-matrix) Β· [🀝 Contributing](/SupplyWaveSA/CONTRIBUTING.md)

🌍 Overview

SupplyWave is a complete, end-to-end B2B supply chain operating system built for modern logistics networks. It connects Suppliers, Logistics Providers, Warehouse Managers, and Customers through a efficient, real-time dispatch and shipment tracking mesh β€” supporting a diverse fleet from light electric delivery scooters to multi-ton cargo containers.

Designed web and mobile native, backed by a FastAPI + Socket.IO production mesh, and monitored via a React-powered Admin Command Center with God-View cost intelligence and AI-driven risk mitigation.


πŸ—οΈ System Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                   SupplyWave Ecosystem                  β”‚
β”‚ β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ β”‚Supplier Portalβ”‚ Logistics Driver β”‚    Admin Command      β”‚
β”‚ β”‚ (React Web)  β”‚  (Flutter App)   β”‚    (React + Vite)     β”‚
β”‚ β”‚  Stateful    β”‚  Riverpod Mobile β”‚    Leaflet maps       β”‚
β”‚ β””β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
β”‚        β”‚                β”‚                     β”‚
β”‚        β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
β”‚                         β”‚  Socket.IO (V2 Mesh)
β”‚                         β–Ό
β”‚           β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚           β”‚   FastAPI V2 Backend    β”‚
β”‚           β”‚   Port 8000             β”‚
β”‚           β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚           β”‚  GeoEngine (Redis)      β”‚
β”‚           β”‚  RoutingEngine (TSP)    β”‚
β”‚           β”‚  JWT RBAC Auth          β”‚
β”‚           β”‚  SQLAlchemy ORM         β”‚
β”‚           β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
β”‚                     β”‚
β”‚           β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚           β”‚  PostgreSQL + Redis      β”‚
β”‚           β”‚  (Shipments, Inventory)  β”‚
β”‚           β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

πŸ’Ž Feature Matrix

Version Feature Status
V1–V3 Real-time shipment tracking mesh & geospatial matching βœ…
V4–V5 Route optimization & persistent SQL database integration βœ…
V6 In-app bidirectional chat between warehouses & carriers βœ…
V7 Ledger & atomic transaction wallet for shipping settlements βœ…
V8 Multi-role JWT Role-Based Access Control (RBAC) βœ…
V9 Fleet analytics & admin telemetry βœ…
V10 SOS emergency protocol & immediate exception hijack βœ…
V11 Multi-modal fleet: Scooter, Small, 7-Seater, Heavy Van βœ…
V12 Animated real-time vehicle/delivery tracking βœ…
V13 Demand heatmap overlays & warehouse surge indicators βœ…
V14 VoIP call signaling with pulsing communications screen βœ…
V15 Predictive demand forecasting & inventory optimization (ML simulation) βœ…
V16 Glassmorphism UI & premium dark-mode console styling βœ…
V17 Proximity spotlighting for warehouse arriving zones βœ…
V18 PostGIS spatial geometry migration πŸ”œ
V19 Full WebRTC carrier voice calls πŸ”œ
V20 Driver/Carrier KYC verification pipeline πŸ”œ
V21 FCM push notifications for order statuses πŸ”œ

πŸ—‚οΈ Project Structure

SupplyWaveSA/
β”œβ”€β”€ backend/
β”‚   β”œβ”€β”€ app/                     # πŸš€ Core API Backend
β”‚   β”‚   β”œβ”€β”€ api/                 # REST Routers & Sockets
β”‚   β”‚   β”œβ”€β”€ core/                # Redis client, Event Bus, Config
β”‚   β”‚   β”œβ”€β”€ db/                  # Database session management
β”‚   β”‚   β”œβ”€β”€ models/              # SQLAlchemy Data Models (Trip, User, AuditLog)
β”‚   β”‚   └── services/            # MatchingService, Dispatch, Rate-limiting
β”‚   β”œβ”€β”€ logiwave/                # Autonomous Logistics Engine
β”‚   └── v2_production/           # FastAPI Production entry points
β”‚
β”œβ”€β”€ frontend/
β”‚   └── apps/
β”‚       β”œβ”€β”€ admin/               # πŸ–₯️ SupplyWave Cost Intelligence (React + Vite)
β”‚       β”œβ”€β”€ passenger/           # πŸ§‘ Supplier Portal Web Client (React)
β”‚       └── driver/              # πŸš— Logistics Carrier Terminal (React)
β”‚
└── .github/
    └── workflows/ci.yml         # CI/CD Pipeline

πŸš€ Quick Start

Prerequisites

1. Start the Production Backend

cd backend/app
pip install -r ../requirements.txt
uvicorn main:app --reload

2. Start the Admin Dashboard

cd frontend/apps/admin
npm install
npm run dev

3. Simulate 100 Active Carriers

cd backend/v2_production
python simulation/stress_test_100.py

πŸš— Vehicle Fleet & Shipping Fees

Class Vehicle Fee Multiplier Use Case
πŸ›΅ Scooter Electric Scooter 0.6Γ— Documents, small parcels, rapid dispatch
πŸš— Small Light Delivery Vehicle 1.0Γ— Standard urban freight
πŸš™ Medium XL / Multi-tier Van 1.5Γ— Multi-pallet delivery, heavy parcels
🚐 Heavy 8-Ton Cargo Truck 2.2Γ— Bulk warehouse transport

Base Shipping Formula: base_rate + (distance_rate Γ— km) + (weight_rate Γ— kg) Γ— vehicle_multiplier


🀝 Contributing & Community

Join our global network of developers and supply chain logistics engineers! We appreciate contributions of all shapes and sizes.


❀️ Sponsors & Backing

Sponsorships support continuous integration testing, API sandbox servers, and active swarm research. Join our awesome backers!

MIT Β© 2026 Raphasha27 / SupplyWave SA

Contributors

«««< Updated upstream This project is developed and maintained together with the team:

Stashed changes