# manojjagtap1981/melanies_smoothies architecture

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

- Interactive diagram: https://gitdiagram.com/manojjagtap1981/melanies_smoothies
- Repository: https://github.com/manojjagtap1981/melanies_smoothies

## Overview

This is a small Streamlit smoothie-ordering app. Users enter a name, choose up to five fruits loaded from Snowflake, review nutrition information fetched for each choice, then submit an order that is inserted into Snowflake. The single source file implements the UI and orchestration; no separate domain modules are present. The graph follows the calls visible in that excerpt and omits the unused requests dependency beyond its shown API call.

Main entry points: [`streamlit_app.py`](https://github.com/manojjagtap1981/melanies_smoothies/blob/main/streamlit_app.py) (Order interface)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Smoothie app"]
  node_streamlit["Order interface<br/>[streamlit_app.py]"]
end

subgraph group_services["External services"]
  node_fruit_catalog[("Fruit catalog")]
  node_nutrition_api["Nutrition API"]
  node_orders[("Order records")]
end

node_customer(("Customer"))

node_customer -->|"chooses fruits"| node_streamlit
node_streamlit -->|"loads options"| node_fruit_catalog
node_streamlit -->|"fetches nutrition"| node_nutrition_api
node_streamlit -->|"inserts order"| node_orders
node_streamlit -->|"shows confirmation"| node_customer

click node_streamlit "https://github.com/manojjagtap1981/melanies_smoothies/blob/main/streamlit_app.py"

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_streamlit toneBlue
class node_fruit_catalog,node_nutrition_api,node_orders toneAmber
class node_customer toneIndigo
```

## Components

### Smoothie app

- [Order interface](https://github.com/manojjagtap1981/melanies_smoothies/blob/main/streamlit_app.py): `streamlit_app.py`

### External services

- **Fruit catalog**
- **Nutrition API**
- **Order records**

### Other components

- **Customer**

## Connections

- Customer → Order interface: chooses fruits (evidence: `streamlit_app.py`)
- Order interface → Fruit catalog: loads options (evidence: `streamlit_app.py`)
- Order interface → Nutrition API: fetches nutrition (evidence: `streamlit_app.py`)
- Order interface → Order records: inserts order (evidence: `streamlit_app.py`)
- Order interface → Customer: shows confirmation (evidence: `streamlit_app.py`)
