# ishitachvn/ecobite-ai architecture

> Architecture diagram of the GitHub repository ishitachvn/ecobite-ai, 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/ishitachvn/ecobite-ai
- Repository: https://github.com/ishitachvn/ecobite-ai

## Overview

EcoBite is presented as a food-waste and donation assistant. The sampled frontend implements a chat interface and donation-safety assessment, including rule-based food handling guidance. The README also describes recipe recommendations and waste prediction, but their implementation is not shown. The backend file is empty in the provided excerpt, so no backend or AI-service flow is represented.

Main entry points: [`frontend/script.js`](https://github.com/ishitachvn/ecobite-ai/blob/main/frontend/script.js) (Chat Interface)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_conversation["Chat Experience"]
  node_chat["Chat Interface<br/>[script.js]"]
end

subgraph group_guidance["Food Guidance"]
  node_donation["Donation Assessment<br/>[script.js]"]
  node_storage["Storage Guidance<br/>[script.js]"]
end

subgraph group_capabilities["Product Capabilities"]
  node_recipes["Recipe Recommendations<br/>[script.js]"]
  node_waste["Waste Prediction<br/>[script.js]"]
  node_donation_suggestions["Donation Suggestions<br/>[script.js]"]
end

node_user(("User"))

node_user -->|"sends messages"| node_chat
node_chat -->|"starts assessment"| node_donation
node_chat -.->|"offers recommendations"| node_recipes
node_chat -.->|"offers prediction"| node_waste
node_chat -.->|"offers suggestions"| node_donation_suggestions

click node_chat "https://github.com/ishitachvn/ecobite-ai/blob/main/frontend/script.js"
click node_donation "https://github.com/ishitachvn/ecobite-ai/blob/main/frontend/script.js"
click node_storage "https://github.com/ishitachvn/ecobite-ai/blob/main/frontend/script.js"
click node_recipes "https://github.com/ishitachvn/ecobite-ai/blob/main/frontend/script.js"
click node_waste "https://github.com/ishitachvn/ecobite-ai/blob/main/frontend/script.js"
click node_donation_suggestions "https://github.com/ishitachvn/ecobite-ai/blob/main/frontend/script.js"

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_chat,node_user toneBlue
class node_donation,node_storage toneAmber
class node_recipes,node_waste,node_donation_suggestions toneMint
```

## Components

### Chat Experience

- [Chat Interface](https://github.com/ishitachvn/ecobite-ai/blob/main/frontend/script.js): `frontend/script.js`

### Food Guidance

- [Donation Assessment](https://github.com/ishitachvn/ecobite-ai/blob/main/frontend/script.js): `frontend/script.js`
- [Storage Guidance](https://github.com/ishitachvn/ecobite-ai/blob/main/frontend/script.js): `frontend/script.js`

### Product Capabilities

- [Recipe Recommendations](https://github.com/ishitachvn/ecobite-ai/blob/main/frontend/script.js): `frontend/script.js`
- [Waste Prediction](https://github.com/ishitachvn/ecobite-ai/blob/main/frontend/script.js): `frontend/script.js`
- [Donation Suggestions](https://github.com/ishitachvn/ecobite-ai/blob/main/frontend/script.js): `frontend/script.js`

### Other components

- **User**

## Connections

- User → Chat Interface: sends messages (evidence: `frontend/script.js`)
- Chat Interface → Donation Assessment: starts assessment (evidence: `frontend/script.js`)
- Chat Interface → Recipe Recommendations: offers recommendations (evidence: `README.md`)
- Chat Interface → Waste Prediction: offers prediction (evidence: `README.md`)
- Chat Interface → Donation Suggestions: offers suggestions (evidence: `README.md`)
