# aditisahu-cs/easydrop-an-ai-delivery-app architecture

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

- Interactive diagram: https://gitdiagram.com/aditisahu-cs/easydrop-an-ai-delivery-app
- Repository: https://github.com/aditisahu-cs/easydrop-an-ai-delivery-app

## Overview

EasyDrop is a doorstep-delivery booking and dispatch application for autonomous rovers. Customers choose a delivery day and time window, create or manage bookings, and can use address cleanup and DropBot assistance; operators review bookings and capacity suggestions. The React app coordinates these workflows, while an Express API exposes booking, tracking, slot, and AI endpoints and a SQLite layer provides persistent storage. Several UI modules are indexed but not excerpted, so their connections are shown only where supported or left unverified.

Main entry points: [`src/App.tsx`](https://github.com/aditisahu-cs/easydrop-an-ai-delivery-app/blob/main/src/App.tsx) (App Coordinator), [`src/components/BookDeliveryView.tsx`](https://github.com/aditisahu-cs/easydrop-an-ai-delivery-app/blob/main/src/components/BookDeliveryView.tsx) (Book Delivery), [`server.ts`](https://github.com/aditisahu-cs/easydrop-an-ai-delivery-app/blob/main/server.ts) (Express API), [`src/services/aiService.ts`](https://github.com/aditisahu-cs/easydrop-an-ai-delivery-app/blob/main/src/services/aiService.ts) (API Client)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Customer App"]
  node_app["App Coordinator<br/>[App.tsx]"]
  node_booking["Book Delivery"]
  node_address["Address Cleanup"]
  node_confirmation["Slot Confirmation"]
  node_chat["DropBot Chat"]
end

subgraph group_operations["Delivery Operations"]
  node_deliveries["Delivery Tracking<br/>[DeliveriesView.tsx]"]
  node_map["Delivery Map"]
  node_rover["Rover Display<br/>[RoboticsRover.tsx]"]
  node_admin["Admin Portal"]
  node_mockdata["Demo and Slot Data<br/>[mockData.ts]"]
end

subgraph group_backend["API and AI"]
  node_service["API Client<br/>[aiService.ts]"]
  node_server["Express API<br/>[server.ts]"]
end

subgraph group_persistence["Booking Data"]
  node_db[("SQLite Store<br/>[sqliteDb.ts]")]
  node_sqlitefile[("SQLite Database File<br/>[easydrop.sqlite]")]
end

node_user(("Customer"))
node_operator(("Dispatcher"))
node_gemini{{"Google Gemini"}}

node_user -->|"uses"| node_app
node_operator -.->|"uses"| node_app
node_app -.->|"shows booking"| node_booking
node_app -.->|"shows tracking"| node_deliveries
node_app -.->|"shows portal"| node_admin
node_app -.->|"opens modal"| node_address
node_app -.->|"opens modal"| node_confirmation
node_app -->|"renders"| node_chat
node_app -->|"loads and updates bookings"| node_service
node_app -->|"normalizes address"| node_service
node_app -->|"loads demo data"| node_mockdata
node_booking -->|"renders"| node_rover
node_booking -->|"gets coordinates"| node_mockdata
node_map -->|"uses map data"| node_mockdata
node_service -->|"requests API routes"| node_server
node_server -.->|"uses persistence"| node_db
node_server -.->|"uses AI service"| node_gemini
node_db -.->|"stores records"| node_sqlitefile

click node_app "https://github.com/aditisahu-cs/easydrop-an-ai-delivery-app/blob/main/src/App.tsx"
click node_booking "https://github.com/aditisahu-cs/easydrop-an-ai-delivery-app/blob/main/src/components/BookDeliveryView.tsx"
click node_address "https://github.com/aditisahu-cs/easydrop-an-ai-delivery-app/blob/main/src/components/AddressCleanupModal.tsx"
click node_confirmation "https://github.com/aditisahu-cs/easydrop-an-ai-delivery-app/blob/main/src/components/SlotConfirmationModal.tsx"
click node_chat "https://github.com/aditisahu-cs/easydrop-an-ai-delivery-app/blob/main/src/components/DropBotChatModal.tsx"
click node_deliveries "https://github.com/aditisahu-cs/easydrop-an-ai-delivery-app/blob/main/src/components/DeliveriesView.tsx"
click node_map "https://github.com/aditisahu-cs/easydrop-an-ai-delivery-app/blob/main/src/components/DeliveryMapView.tsx"
click node_rover "https://github.com/aditisahu-cs/easydrop-an-ai-delivery-app/blob/main/src/components/RoboticsRover.tsx"
click node_admin "https://github.com/aditisahu-cs/easydrop-an-ai-delivery-app/blob/main/src/components/AdminPortalView.tsx"
click node_mockdata "https://github.com/aditisahu-cs/easydrop-an-ai-delivery-app/blob/main/src/data/mockData.ts"
click node_service "https://github.com/aditisahu-cs/easydrop-an-ai-delivery-app/blob/main/src/services/aiService.ts"
click node_server "https://github.com/aditisahu-cs/easydrop-an-ai-delivery-app/blob/main/server.ts"
click node_db "https://github.com/aditisahu-cs/easydrop-an-ai-delivery-app/blob/main/src/db/sqliteDb.ts"
click node_sqlitefile "https://github.com/aditisahu-cs/easydrop-an-ai-delivery-app/blob/main/easydrop.sqlite"

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_address,node_confirmation,node_chat toneBlue
class node_deliveries,node_map,node_rover,node_admin,node_mockdata toneAmber
class node_service,node_server toneMint
class node_db,node_sqlitefile toneRose
class node_user,node_operator,node_gemini toneIndigo
```

## Components

### Customer App

- [App Coordinator](https://github.com/aditisahu-cs/easydrop-an-ai-delivery-app/blob/main/src/App.tsx): `src/App.tsx`
- [Book Delivery](https://github.com/aditisahu-cs/easydrop-an-ai-delivery-app/blob/main/src/components/BookDeliveryView.tsx): `src/components/BookDeliveryView.tsx`
- [Address Cleanup](https://github.com/aditisahu-cs/easydrop-an-ai-delivery-app/blob/main/src/components/AddressCleanupModal.tsx): `src/components/AddressCleanupModal.tsx`
- [Slot Confirmation](https://github.com/aditisahu-cs/easydrop-an-ai-delivery-app/blob/main/src/components/SlotConfirmationModal.tsx): `src/components/SlotConfirmationModal.tsx`
- [DropBot Chat](https://github.com/aditisahu-cs/easydrop-an-ai-delivery-app/blob/main/src/components/DropBotChatModal.tsx): `src/components/DropBotChatModal.tsx`

### Delivery Operations

- [Delivery Tracking](https://github.com/aditisahu-cs/easydrop-an-ai-delivery-app/blob/main/src/components/DeliveriesView.tsx): `src/components/DeliveriesView.tsx`
- [Delivery Map](https://github.com/aditisahu-cs/easydrop-an-ai-delivery-app/blob/main/src/components/DeliveryMapView.tsx): `src/components/DeliveryMapView.tsx`
- [Rover Display](https://github.com/aditisahu-cs/easydrop-an-ai-delivery-app/blob/main/src/components/RoboticsRover.tsx): `src/components/RoboticsRover.tsx`
- [Admin Portal](https://github.com/aditisahu-cs/easydrop-an-ai-delivery-app/blob/main/src/components/AdminPortalView.tsx): `src/components/AdminPortalView.tsx`
- [Demo and Slot Data](https://github.com/aditisahu-cs/easydrop-an-ai-delivery-app/blob/main/src/data/mockData.ts): `src/data/mockData.ts`

### API and AI

- [API Client](https://github.com/aditisahu-cs/easydrop-an-ai-delivery-app/blob/main/src/services/aiService.ts): `src/services/aiService.ts`
- [Express API](https://github.com/aditisahu-cs/easydrop-an-ai-delivery-app/blob/main/server.ts): `server.ts`

### Booking Data

- [SQLite Store](https://github.com/aditisahu-cs/easydrop-an-ai-delivery-app/blob/main/src/db/sqliteDb.ts): `src/db/sqliteDb.ts`
- [SQLite Database File](https://github.com/aditisahu-cs/easydrop-an-ai-delivery-app/blob/main/easydrop.sqlite): `easydrop.sqlite`

### Other components

- **Customer**
- **Dispatcher**
- **Google Gemini**

## Connections

- Customer → App Coordinator: uses
- Dispatcher → App Coordinator: uses
- App Coordinator → Book Delivery: shows booking (evidence: `src/App.tsx`)
- App Coordinator → Delivery Tracking: shows tracking (evidence: `src/App.tsx`)
- App Coordinator → Admin Portal: shows portal (evidence: `src/App.tsx`)
- App Coordinator → Address Cleanup: opens modal (evidence: `src/App.tsx`)
- App Coordinator → Slot Confirmation: opens modal (evidence: `src/App.tsx`)
- App Coordinator → DropBot Chat: renders (evidence: `src/App.tsx`)
- App Coordinator → API Client: loads and updates bookings (evidence: `src/App.tsx`)
- App Coordinator → API Client: normalizes address (evidence: `src/App.tsx`)
- App Coordinator → Demo and Slot Data: loads demo data (evidence: `src/App.tsx`)
- Book Delivery → Rover Display: renders (evidence: `src/components/BookDeliveryView.tsx`)
- Book Delivery → Demo and Slot Data: gets coordinates (evidence: `src/components/BookDeliveryView.tsx`)
- Delivery Map → Demo and Slot Data: uses map data (evidence: `src/components/DeliveryMapView.tsx`)
- API Client → Express API: requests API routes (evidence: `src/services/aiService.ts`)
- Express API → SQLite Store: uses persistence (evidence: `server.ts`)
- Express API → Google Gemini: uses AI service
- SQLite Store → SQLite Database File: stores records
