How harshpaliwal440-git/truckbuddyai works
TruckBuddy is a role-based freight booking and management platform. Shippers create and track shipments; transporters and drivers manage loads and trips, with booking, billing, and logistics assistance around those journeys. The web application also provides an administrative dashboard. The graph reflects documented product capabilities and sampled imports; several API integrations are listed in the tree but their callers are not established by the excerpts, so those links are omitted or marked unverified.
Main entry points: page.tsx TruckBuddy App · admin-store.tsx Admin Platform State · RoleWorkspaces.tsx Role Workspaces · LiveFreightMap.tsx Freight Map
Components 26
Freight Workspaces
- TruckBuddy App
app/page.tsx - Role Workspaces
components/RoleWorkspaces.tsx - Shipment Requests
app/admin/shipments/page.tsx - Booking Management
app/admin/bookings/page.tsx - Role Showcase
app/showcase/page.tsx
AI & Journey Assistance
- Freight Map
components/LiveFreightMap.tsx - Return-Load Matching
components/AIReturnLoadModule.tsx - Freight Advisor
components/RAGAndDriverAdvisor.tsx - RAG API
app/api/ai/rag/route.ts - Return-Load API
app/api/ai/return-load/route.ts - Weather Route API
app/api/weather-route/route.ts
Plans & Payments
- Shipper Membership
components/SubscriptionPassModal.tsx - Bills & Payments
components/RazorpayAndBillsModal.tsx - Razorpay Orders API
app/api/razorpay/order/route.ts
Administration
- Admin Overview
app/admin/page.tsx - User Management
app/admin/users/page.tsx - Operations Monitor
app/admin/operations/page.tsx - Payment Admin
app/admin/payments/page.tsx - Admin Shell
components/admin/AdminShell.tsx
Shared Platform
- Admin Platform State
lib/admin-store.tsx - Freight Data & Types
lib/freight-data.ts - Translations
lib/i18n.tsx - Language Selection
components/LanguageSelectionModal.tsx
Other components
- Shipper
- Transporter
- Driver
Connections 32
- Shipper → TruckBuddy App: uses
README.md - Transporter → TruckBuddy App: uses
README.md - Driver → TruckBuddy App: uses
README.md - TruckBuddy App → Role Workspaces: renders
app/page.tsx - Role Workspaces → Freight Map: renders
components/RoleWorkspaces.tsx - Role Workspaces → Return-Load Matching: renders
components/RoleWorkspaces.tsx - Role Workspaces → Freight Advisor: renders
components/RoleWorkspaces.tsx - TruckBuddy App → Shipper Membership: opens
app/page.tsx - TruckBuddy App → Bills & Payments: opens
app/page.tsx - Role Workspaces → Freight Data & Types: uses
components/RoleWorkspaces.tsx - Freight Map → Freight Data & Types: uses
components/LiveFreightMap.tsx - Return-Load Matching → Freight Data & Types: uses
components/AIReturnLoadModule.tsx - Freight Advisor → Freight Data & Types: uses
components/RAGAndDriverAdvisor.tsx - Freight Advisor → RAG API: requests
- Return-Load Matching → Return-Load API: requests
- Freight Map → Weather Route API: requests
- Bills & Payments → Razorpay Orders API: requests
- Admin Overview → Admin Platform State: uses
app/admin/page.tsx - User Management → Admin Platform State: uses
app/admin/users/page.tsx - Shipment Requests → Admin Platform State: uses
app/admin/shipments/page.tsx - Booking Management → Admin Platform State: uses
app/admin/bookings/page.tsx - Operations Monitor → Admin Platform State: uses
app/admin/operations/page.tsx - Operations Monitor → Freight Map: renders
app/admin/operations/page.tsx - Payment Admin → Admin Platform State: uses
app/admin/payments/page.tsx - Payment Admin → Bills & Payments: renders
app/admin/payments/page.tsx - Admin Shell → Admin Platform State: reads
components/admin/AdminShell.tsx - TruckBuddy App → Translations: uses
app/page.tsx - TruckBuddy App → Language Selection: renders
app/page.tsx - Language Selection → Translations: uses
components/LanguageSelectionModal.tsx - Role Showcase → Role Workspaces: renders
app/showcase/page.tsx - Role Showcase → Freight Map: renders
app/showcase/page.tsx - Role Showcase → Bills & Payments: renders
app/showcase/page.tsx