# chukhraiartur/dropshipping-tool-demo architecture

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

- Interactive diagram: https://gitdiagram.com/chukhraiartur/dropshipping-tool-demo
- Repository: https://github.com/chukhraiartur/dropshipping-tool-demo

## Overview

This Streamlit demo lets a user search for a product, choose Walmart or eBay as the selling market, and compare matching listings from the other marketplace. Its main workflow retrieves marketplace results through SerpApi, filters title matches by the selected uniqueness threshold, calculates profit, and presents a comparison table. The README also documents JSON and CSV downloads. The runtime is concentrated in main.py; the excerpts show its core calls, but omit some UI and export code, so undocumented connections are not inferred.

Main entry points: [`main.py`](https://github.com/chukhraiartur/dropshipping-tool-demo/blob/main/main.py) (Streamlit app)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interface["User interface"]
  node_app["Streamlit app<br/>[main.py]"]
end

subgraph group_comparison["Product comparison"]
  node_comparison_logic["Marketplace comparison<br/>[main.py]"]
  node_walmart_search["Walmart search<br/>[main.py]"]
  node_ebay_search["eBay search<br/>[main.py]"]
end

subgraph group_output["Results and export"]
  node_table["Comparison table<br/>[main.py]"]
  node_export["Result export<br/>[main.py]"]
end

node_user(("Dropshipper"))
node_walmart{{"Walmart SerpApi"}}
node_ebay{{"eBay SerpApi"}}

node_user -->|"submits search"| node_app
node_app -->|"runs selected comparison"| node_comparison_logic
node_comparison_logic -->|"retrieves listings"| node_walmart_search
node_comparison_logic -->|"retrieves listings"| node_ebay_search
node_walmart_search -->|"searches products"| node_walmart
node_ebay_search -->|"searches products"| node_ebay
node_app -->|"renders results"| node_table
node_app -->|"offers downloads"| node_export

click node_app "https://github.com/chukhraiartur/dropshipping-tool-demo/blob/main/main.py"
click node_comparison_logic "https://github.com/chukhraiartur/dropshipping-tool-demo/blob/main/main.py"
click node_walmart_search "https://github.com/chukhraiartur/dropshipping-tool-demo/blob/main/main.py"
click node_ebay_search "https://github.com/chukhraiartur/dropshipping-tool-demo/blob/main/main.py"
click node_table "https://github.com/chukhraiartur/dropshipping-tool-demo/blob/main/main.py"
click node_export "https://github.com/chukhraiartur/dropshipping-tool-demo/blob/main/main.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_app toneBlue
class node_comparison_logic,node_walmart_search,node_ebay_search toneAmber
class node_table,node_export,node_walmart,node_ebay toneMint
class node_user toneIndigo
```

## Components

### User interface

- [Streamlit app](https://github.com/chukhraiartur/dropshipping-tool-demo/blob/main/main.py): `main.py`

### Product comparison

- [Marketplace comparison](https://github.com/chukhraiartur/dropshipping-tool-demo/blob/main/main.py): `main.py`
- [Walmart search](https://github.com/chukhraiartur/dropshipping-tool-demo/blob/main/main.py): `main.py`
- [eBay search](https://github.com/chukhraiartur/dropshipping-tool-demo/blob/main/main.py): `main.py`

### Results and export

- [Comparison table](https://github.com/chukhraiartur/dropshipping-tool-demo/blob/main/main.py): `main.py`
- [Result export](https://github.com/chukhraiartur/dropshipping-tool-demo/blob/main/main.py): `main.py`

### Other components

- **Dropshipper**
- **Walmart SerpApi**
- **eBay SerpApi**

## Connections

- Dropshipper → Streamlit app: submits search (evidence: `README.md`)
- Streamlit app → Marketplace comparison: runs selected comparison (evidence: `main.py`)
- Marketplace comparison → Walmart search: retrieves listings (evidence: `main.py`)
- Marketplace comparison → eBay search: retrieves listings (evidence: `main.py`)
- Walmart search → Walmart SerpApi: searches products (evidence: `main.py`)
- eBay search → eBay SerpApi: searches products (evidence: `main.py`)
- Streamlit app → Comparison table: renders results (evidence: `main.py`)
- Streamlit app → Result export: offers downloads (evidence: `README.md`)
