# aditisahu-cs/easydrop- architecture

> Architecture diagram of the GitHub repository aditisahu-cs/easydrop-, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-09). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/aditisahu-cs/easydrop-
- Repository: https://github.com/aditisahu-cs/easydrop-

## Overview

EasyDrop is a delivery-booking and dispatch demo: customers select a delivery window, submit a booking, and can review or cancel deliveries; dispatchers manage slot capacity and AI capacity suggestions. Address normalization and DropBot chat extend the booking workflow, while rover telemetry is presented in the delivery UI. The React app coordinates the views and booking state; the AI service calls backend endpoints. The server is substantial, but its endpoint wiring is not visible in the supplied excerpts, so that connection is marked unverified.

Main entry points: [`src/App.tsx`](https://github.com/aditisahu-cs/easydrop-/blob/main/src/App.tsx) (App Coordinator), [`src/services/aiService.ts`](https://github.com/aditisahu-cs/easydrop-/blob/main/src/services/aiService.ts) (AI Service), [`src/components/BookDeliveryView.tsx`](https://github.com/aditisahu-cs/easydrop-/blob/main/src/components/BookDeliveryView.tsx) (Book Delivery), [`src/types.ts`](https://github.com/aditisahu-cs/easydrop-/blob/main/src/types.ts) (Domain Types)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Customer App"]
  node_app["App Coordinator<br/>[App.tsx]"]
  node_booking["Book Delivery"]
  node_confirmation["Slot Confirmation"]
  node_deliveries["Deliveries View<br/>[DeliveriesView.tsx]"]
  node_rover["Rover Display<br/>[RoboticsRover.tsx]"]
  node_addressmodal["Address Review"]
  node_header["Header<br/>[Header.tsx]"]
  node_navigation["Bottom Navigation"]
end

subgraph group_dispatch["Dispatch Operations"]
  node_admin["Admin Portal"]
end

subgraph group_assist["AI Assistance"]
  node_dropbot["DropBot Chat"]
  node_ai["AI Service<br/>[aiService.ts]"]
end

subgraph group_core["Shared Runtime"]
  node_mockdata["Demo Data<br/>[mockData.ts]"]
  node_types["Domain Types<br/>[types.ts]"]
  node_server["API Server<br/>[server.ts]"]
  node_entry["React Entry<br/>[main.tsx]"]
end

node_customer(("Customer"))
node_dispatcher(("Dispatcher"))

node_customer -->|"uses"| node_app
node_dispatcher -->|"uses"| node_app
node_entry -->|"renders"| node_app
node_app -->|"renders"| node_booking
node_app -->|"renders"| node_deliveries
node_app -->|"renders"| node_admin
node_app -->|"renders"| node_header
node_app -->|"renders"| node_navigation
node_app -->|"renders"| node_addressmodal
node_app -->|"renders"| node_confirmation
node_app -->|"renders"| node_dropbot
node_booking -->|"renders"| node_rover
node_deliveries -.->|"shows telemetry"| node_rover
node_app -->|"loads demo state"| node_mockdata
node_booking -->|"calculates recommendation"| node_mockdata
node_app -->|"normalizes address"| node_ai
node_app -->|"syncs slot capacity"| node_ai
node_dropbot -->|"sends chat"| node_ai
node_ai -.->|"requests API"| node_server
node_app -->|"uses domain models"| node_types
node_booking -->|"uses domain models"| node_types
node_deliveries -->|"uses booking model"| node_types
node_ai -->|"uses response models"| node_types

click node_app "https://github.com/aditisahu-cs/easydrop-/blob/main/src/App.tsx"
click node_booking "https://github.com/aditisahu-cs/easydrop-/blob/main/src/components/BookDeliveryView.tsx"
click node_confirmation "https://github.com/aditisahu-cs/easydrop-/blob/main/src/components/SlotConfirmationModal.tsx"
click node_deliveries "https://github.com/aditisahu-cs/easydrop-/blob/main/src/components/DeliveriesView.tsx"
click node_rover "https://github.com/aditisahu-cs/easydrop-/blob/main/src/components/RoboticsRover.tsx"
click node_addressmodal "https://github.com/aditisahu-cs/easydrop-/blob/main/src/components/AddressCleanupModal.tsx"
click node_header "https://github.com/aditisahu-cs/easydrop-/blob/main/src/components/Header.tsx"
click node_navigation "https://github.com/aditisahu-cs/easydrop-/blob/main/src/components/BottomNavigation.tsx"
click node_admin "https://github.com/aditisahu-cs/easydrop-/blob/main/src/components/AdminPortalView.tsx"
click node_dropbot "https://github.com/aditisahu-cs/easydrop-/blob/main/src/components/DropBotChatModal.tsx"
click node_ai "https://github.com/aditisahu-cs/easydrop-/blob/main/src/services/aiService.ts"
click node_mockdata "https://github.com/aditisahu-cs/easydrop-/blob/main/src/data/mockData.ts"
click node_types "https://github.com/aditisahu-cs/easydrop-/blob/main/src/types.ts"
click node_server "https://github.com/aditisahu-cs/easydrop-/blob/main/server.ts"
click node_entry "https://github.com/aditisahu-cs/easydrop-/blob/main/src/main.tsx"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_app,node_booking,node_confirmation,node_deliveries,node_rover,node_addressmodal,node_header,node_navigation toneBlue
class node_admin toneAmber
class node_dropbot,node_ai toneMint
class node_mockdata,node_types,node_server,node_entry toneRose
class node_customer,node_dispatcher toneIndigo
```

## Components

### Customer App

- [App Coordinator](https://github.com/aditisahu-cs/easydrop-/blob/main/src/App.tsx): `src/App.tsx`
- [Book Delivery](https://github.com/aditisahu-cs/easydrop-/blob/main/src/components/BookDeliveryView.tsx): `src/components/BookDeliveryView.tsx`
- [Slot Confirmation](https://github.com/aditisahu-cs/easydrop-/blob/main/src/components/SlotConfirmationModal.tsx): `src/components/SlotConfirmationModal.tsx`
- [Deliveries View](https://github.com/aditisahu-cs/easydrop-/blob/main/src/components/DeliveriesView.tsx): `src/components/DeliveriesView.tsx`
- [Rover Display](https://github.com/aditisahu-cs/easydrop-/blob/main/src/components/RoboticsRover.tsx): `src/components/RoboticsRover.tsx`
- [Address Review](https://github.com/aditisahu-cs/easydrop-/blob/main/src/components/AddressCleanupModal.tsx): `src/components/AddressCleanupModal.tsx`
- [Header](https://github.com/aditisahu-cs/easydrop-/blob/main/src/components/Header.tsx): `src/components/Header.tsx`
- [Bottom Navigation](https://github.com/aditisahu-cs/easydrop-/blob/main/src/components/BottomNavigation.tsx): `src/components/BottomNavigation.tsx`

### Dispatch Operations

- [Admin Portal](https://github.com/aditisahu-cs/easydrop-/blob/main/src/components/AdminPortalView.tsx): `src/components/AdminPortalView.tsx`

### AI Assistance

- [DropBot Chat](https://github.com/aditisahu-cs/easydrop-/blob/main/src/components/DropBotChatModal.tsx): `src/components/DropBotChatModal.tsx`
- [AI Service](https://github.com/aditisahu-cs/easydrop-/blob/main/src/services/aiService.ts): `src/services/aiService.ts`

### Shared Runtime

- [Demo Data](https://github.com/aditisahu-cs/easydrop-/blob/main/src/data/mockData.ts): `src/data/mockData.ts`
- [Domain Types](https://github.com/aditisahu-cs/easydrop-/blob/main/src/types.ts): `src/types.ts`
- [API Server](https://github.com/aditisahu-cs/easydrop-/blob/main/server.ts): `server.ts`
- [React Entry](https://github.com/aditisahu-cs/easydrop-/blob/main/src/main.tsx): `src/main.tsx`

### Other components

- **Customer**
- **Dispatcher**

## Connections

- Customer → App Coordinator: uses
- Dispatcher → App Coordinator: uses
- React Entry → App Coordinator: renders (evidence: `src/main.tsx`)
- App Coordinator → Book Delivery: renders (evidence: `src/App.tsx`)
- App Coordinator → Deliveries View: renders (evidence: `src/App.tsx`)
- App Coordinator → Admin Portal: renders (evidence: `src/App.tsx`)
- App Coordinator → Header: renders (evidence: `src/App.tsx`)
- App Coordinator → Bottom Navigation: renders (evidence: `src/App.tsx`)
- App Coordinator → Address Review: renders (evidence: `src/App.tsx`)
- App Coordinator → Slot Confirmation: renders (evidence: `src/App.tsx`)
- App Coordinator → DropBot Chat: renders (evidence: `src/App.tsx`)
- Book Delivery → Rover Display: renders (evidence: `src/components/BookDeliveryView.tsx`)
- Deliveries View → Rover Display: shows telemetry
- App Coordinator → Demo Data: loads demo state (evidence: `src/App.tsx`)
- Book Delivery → Demo Data: calculates recommendation (evidence: `src/components/BookDeliveryView.tsx`)
- App Coordinator → AI Service: normalizes address (evidence: `src/App.tsx`)
- App Coordinator → AI Service: syncs slot capacity (evidence: `src/App.tsx`)
- DropBot Chat → AI Service: sends chat (evidence: `src/components/DropBotChatModal.tsx`)
- AI Service → API Server: requests API
- App Coordinator → Domain Types: uses domain models (evidence: `src/App.tsx`)
- Book Delivery → Domain Types: uses domain models (evidence: `src/components/BookDeliveryView.tsx`)
- Deliveries View → Domain Types: uses booking model (evidence: `src/components/DeliveriesView.tsx`)
- AI Service → Domain Types: uses response models (evidence: `src/services/aiService.ts`)
