# bijan6699/protobazar architecture

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

- Interactive diagram: https://gitdiagram.com/bijan6699/protobazar
- Repository: https://github.com/bijan6699/protobazar

## Overview

ProtoBazar is a local Streamlit dashboard for sales analysis and product pricing. Users choose a dashboard page, then work with sales reports or upload product and purchase files for pricing analysis and Excel editing. The dashboard explicitly dispatches to both page modules; the launcher starts the local Streamlit server and opens a browser. Sales-module excerpts show report parsing and management-report output, but not enough of the implementation to map its full analytics pipeline.

Main entry points: [`dashboard.py`](https://github.com/bijan6699/protobazar/blob/main/dashboard.py) (Page dashboard), [`launcher.py`](https://github.com/bijan6699/protobazar/blob/main/launcher.py) (Local launcher), [`sales_analytics_module.py`](https://github.com/bijan6699/protobazar/blob/main/sales_analytics_module.py) (Sales analysis page), [`pricing_module.py`](https://github.com/bijan6699/protobazar/blob/main/pricing_module.py) (Pricing page)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Local application"]
  node_launcher["Local launcher<br/>[launcher.py]"]
  node_browser(("Local browser"))
  node_dashboard["Page dashboard<br/>[dashboard.py]"]
end

subgraph group_sales["Sales analysis"]
  node_sales_page["Sales analysis page"]
  node_sales_report["Management report"]
end

subgraph group_pricing["Pricing workflow"]
  node_pricing_page["Pricing page<br/>[pricing_module.py]"]
  node_pricing_inputs["Product and purchase files<br/>[pricing_module.py]"]
  node_pricing_calcs["Markup analysis<br/>[pricing_module.py]"]
  node_pricing_workbook["Excel editing and export<br/>[pricing_module.py]"]
end

node_user(("User"))

node_user -->|"uses"| node_browser
node_launcher -->|"opens"| node_browser
node_launcher -->|"starts Streamlit"| node_dashboard
node_user -->|"selects pages"| node_dashboard
node_dashboard -->|"dispatches to"| node_sales_page
node_dashboard -->|"dispatches to"| node_pricing_page
node_user -->|"uploads"| node_pricing_inputs
node_pricing_page -->|"shows analysis"| node_pricing_calcs
node_sales_page -->|"offers download"| node_sales_report

click node_launcher "https://github.com/bijan6699/protobazar/blob/main/launcher.py"
click node_dashboard "https://github.com/bijan6699/protobazar/blob/main/dashboard.py"
click node_sales_page "https://github.com/bijan6699/protobazar/blob/main/sales_analytics_module.py"
click node_sales_report "https://github.com/bijan6699/protobazar/blob/main/sales_analytics_module.py"
click node_pricing_page "https://github.com/bijan6699/protobazar/blob/main/pricing_module.py"
click node_pricing_inputs "https://github.com/bijan6699/protobazar/blob/main/pricing_module.py"
click node_pricing_calcs "https://github.com/bijan6699/protobazar/blob/main/pricing_module.py"
click node_pricing_workbook "https://github.com/bijan6699/protobazar/blob/main/pricing_module.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_launcher,node_browser,node_dashboard,node_user toneBlue
class node_sales_page,node_sales_report toneAmber
class node_pricing_page,node_pricing_inputs,node_pricing_calcs,node_pricing_workbook toneMint
```

## Components

### Local application

- [Local launcher](https://github.com/bijan6699/protobazar/blob/main/launcher.py): `launcher.py`
- **Local browser**
- [Page dashboard](https://github.com/bijan6699/protobazar/blob/main/dashboard.py): `dashboard.py`

### Sales analysis

- [Sales analysis page](https://github.com/bijan6699/protobazar/blob/main/sales_analytics_module.py): `sales_analytics_module.py`
- [Management report](https://github.com/bijan6699/protobazar/blob/main/sales_analytics_module.py): `sales_analytics_module.py`

### Pricing workflow

- [Pricing page](https://github.com/bijan6699/protobazar/blob/main/pricing_module.py): `pricing_module.py`
- [Product and purchase files](https://github.com/bijan6699/protobazar/blob/main/pricing_module.py): `pricing_module.py`
- [Markup analysis](https://github.com/bijan6699/protobazar/blob/main/pricing_module.py): `pricing_module.py`
- [Excel editing and export](https://github.com/bijan6699/protobazar/blob/main/pricing_module.py): `pricing_module.py`

### Other components

- **User**

## Connections

- User → Local browser: uses (evidence: `README.md`)
- Local launcher → Local browser: opens (evidence: `launcher.py`)
- Local launcher → Page dashboard: starts Streamlit (evidence: `launcher.py`)
- User → Page dashboard: selects pages (evidence: `dashboard.py`)
- Page dashboard → Sales analysis page: dispatches to (evidence: `dashboard.py`)
- Page dashboard → Pricing page: dispatches to (evidence: `dashboard.py`)
- User → Product and purchase files: uploads (evidence: `pricing_module.py`)
- Pricing page → Markup analysis: shows analysis (evidence: `pricing_module.py`)
- Sales analysis page → Management report: offers download (evidence: `sales_analytics_module.py`)
