# khandkar-sajiduzzaman/shebakrishi architecture

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

- Interactive diagram: https://gitdiagram.com/khandkar-sajiduzzaman/shebakrishi
- Repository: https://github.com/khandkar-sajiduzzaman/shebakrishi

## Overview

ShebaKrishi is a static, role-based marketplace mockup, not a functioning marketplace backend. The user journey is presented through routed screens: farmers view prices and lots, hub agents record and review lots, buyers browse produce and inspect a pooled-order delivery, and admins view network summaries. The README describes forecasting, AI grading, pooling, routing and bKash payouts as sample or planned capabilities; this repository has no backend, database or AI model. Edges show only routing, imports, or explicitly documented demo transitions and data usage.

Main entry points: [`frontend/src/App.jsx`](https://github.com/khandkar-sajiduzzaman/shebakrishi/blob/main/frontend/src/App.jsx) (Route dispatcher), [`frontend/src/components/AppShell.jsx`](https://github.com/khandkar-sajiduzzaman/shebakrishi/blob/main/frontend/src/components/AppShell.jsx) (Role navigation), [`frontend/src/components/ui.jsx`](https://github.com/khandkar-sajiduzzaman/shebakrishi/blob/main/frontend/src/components/ui.jsx) (Interface primitives), [`frontend/src/pages/FarmerHome.jsx`](https://github.com/khandkar-sajiduzzaman/shebakrishi/blob/main/frontend/src/pages/FarmerHome.jsx) (Farmer prices)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_navigation["App Navigation"]
  node_app["Route dispatcher<br/>[App.jsx]"]
end

subgraph group_marketplace["Marketplace Screens"]
  node_home["Overview<br/>[Home.jsx]"]
  node_farmerhome["Farmer prices<br/>[FarmerHome.jsx]"]
  node_farmerlots["Farmer lots<br/>[FarmerLots.jsx]"]
  node_hubnew["Record lot<br/>[HubNewLot.jsx]"]
  node_hubgrading["Review grade<br/>[HubGrading.jsx]"]
  node_catalogue["Buyer catalogue<br/>[BuyerCatalogue.jsx]"]
  node_buyerorder["Order delivery<br/>[BuyerOrder.jsx]"]
  node_admin["Admin dashboard<br/>[AdminDashboard.jsx]"]
end

subgraph group_shared["Shared Interface"]
  node_shell["Role navigation<br/>[AppShell.jsx]"]
  node_forecast["Price forecast chart<br/>[ForecastChart.jsx]"]
  node_ladder["Price comparison<br/>[PriceLadder.jsx]"]
  node_produceart["Produce imagery<br/>[ProduceArt.jsx]"]
  node_routemap["Delivery map<br/>[RouteMap.jsx]"]
  node_ui["Interface primitives<br/>[ui.jsx]"]
  node_i18n["Language provider<br/>[i18n.jsx]"]
  node_utils["Formatting helpers<br/>[utils.js]"]
end

subgraph group_mockdata["Mock Data"]
  node_marketdata["Marketplace samples"]
end

node_visitor(("Marketplace user"))

node_visitor -->|"opens"| node_app
node_app -->|"routes to"| node_home
node_app -->|"routes to"| node_farmerhome
node_app -->|"routes to"| node_farmerlots
node_app -->|"routes to"| node_hubnew
node_app -->|"routes to"| node_hubgrading
node_app -->|"routes to"| node_catalogue
node_app -->|"routes to"| node_buyerorder
node_app -->|"routes to"| node_admin
node_home -->|"renders"| node_shell
node_farmerhome -->|"renders"| node_shell
node_farmerlots -->|"renders"| node_shell
node_hubnew -->|"renders"| node_shell
node_hubgrading -->|"renders"| node_shell
node_catalogue -->|"renders"| node_shell
node_buyerorder -->|"renders"| node_shell
node_admin -->|"renders"| node_shell
node_farmerhome -->|"renders"| node_forecast
node_home -->|"renders"| node_ladder
node_catalogue -->|"renders"| node_produceart
node_farmerlots -->|"renders"| node_produceart
node_hubnew -->|"renders"| node_produceart
node_hubgrading -->|"renders"| node_produceart
node_buyerorder -->|"renders"| node_routemap
node_home -->|"uses"| node_ui
node_farmerhome -->|"uses"| node_ui
node_farmerlots -->|"uses"| node_ui
node_hubnew -->|"uses"| node_ui
node_hubgrading -->|"uses"| node_ui
node_catalogue -->|"uses"| node_ui
node_buyerorder -->|"uses"| node_ui
node_admin -->|"uses"| node_ui
node_shell -->|"reads language"| node_i18n
node_farmerhome -->|"reads language"| node_i18n
node_hubnew -->|"reads language"| node_i18n
node_hubgrading -->|"reads language"| node_i18n
node_ui -->|"reads language"| node_i18n
node_catalogue -->|"validates quantities"| node_utils
node_buyerorder -->|"formats prices"| node_utils
node_shell -->|"styles links"| node_utils
node_ui -->|"merges classes"| node_utils
node_farmerhome -->|"reads samples"| node_marketdata
node_farmerlots -->|"reads samples"| node_marketdata
node_hubnew -->|"uses sample records"| node_marketdata
node_hubgrading -->|"uses sample records"| node_marketdata
node_catalogue -->|"reads samples"| node_marketdata
node_buyerorder -->|"reads samples"| node_marketdata
node_admin -->|"reads samples"| node_marketdata

click node_app "https://github.com/khandkar-sajiduzzaman/shebakrishi/blob/main/frontend/src/App.jsx"
click node_home "https://github.com/khandkar-sajiduzzaman/shebakrishi/blob/main/frontend/src/pages/Home.jsx"
click node_farmerhome "https://github.com/khandkar-sajiduzzaman/shebakrishi/blob/main/frontend/src/pages/FarmerHome.jsx"
click node_farmerlots "https://github.com/khandkar-sajiduzzaman/shebakrishi/blob/main/frontend/src/pages/FarmerLots.jsx"
click node_hubnew "https://github.com/khandkar-sajiduzzaman/shebakrishi/blob/main/frontend/src/pages/HubNewLot.jsx"
click node_hubgrading "https://github.com/khandkar-sajiduzzaman/shebakrishi/blob/main/frontend/src/pages/HubGrading.jsx"
click node_catalogue "https://github.com/khandkar-sajiduzzaman/shebakrishi/blob/main/frontend/src/pages/BuyerCatalogue.jsx"
click node_buyerorder "https://github.com/khandkar-sajiduzzaman/shebakrishi/blob/main/frontend/src/pages/BuyerOrder.jsx"
click node_admin "https://github.com/khandkar-sajiduzzaman/shebakrishi/blob/main/frontend/src/pages/AdminDashboard.jsx"
click node_shell "https://github.com/khandkar-sajiduzzaman/shebakrishi/blob/main/frontend/src/components/AppShell.jsx"
click node_forecast "https://github.com/khandkar-sajiduzzaman/shebakrishi/blob/main/frontend/src/components/ForecastChart.jsx"
click node_ladder "https://github.com/khandkar-sajiduzzaman/shebakrishi/blob/main/frontend/src/components/PriceLadder.jsx"
click node_produceart "https://github.com/khandkar-sajiduzzaman/shebakrishi/blob/main/frontend/src/components/ProduceArt.jsx"
click node_routemap "https://github.com/khandkar-sajiduzzaman/shebakrishi/blob/main/frontend/src/components/RouteMap.jsx"
click node_ui "https://github.com/khandkar-sajiduzzaman/shebakrishi/blob/main/frontend/src/components/ui.jsx"
click node_i18n "https://github.com/khandkar-sajiduzzaman/shebakrishi/blob/main/frontend/src/i18n.jsx"
click node_utils "https://github.com/khandkar-sajiduzzaman/shebakrishi/blob/main/frontend/src/lib/utils.js"
click node_marketdata "https://github.com/khandkar-sajiduzzaman/shebakrishi/tree/main/frontend/src/mock"

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_visitor toneBlue
class node_home,node_farmerhome,node_farmerlots,node_hubnew,node_hubgrading,node_catalogue,node_buyerorder,node_admin toneAmber
class node_shell,node_forecast,node_ladder,node_produceart,node_routemap,node_ui,node_i18n,node_utils toneMint
class node_marketdata toneRose
```

## Components

### App Navigation

- [Route dispatcher](https://github.com/khandkar-sajiduzzaman/shebakrishi/blob/main/frontend/src/App.jsx): `frontend/src/App.jsx`

### Marketplace Screens

- [Overview](https://github.com/khandkar-sajiduzzaman/shebakrishi/blob/main/frontend/src/pages/Home.jsx): `frontend/src/pages/Home.jsx`
- [Farmer prices](https://github.com/khandkar-sajiduzzaman/shebakrishi/blob/main/frontend/src/pages/FarmerHome.jsx): `frontend/src/pages/FarmerHome.jsx`
- [Farmer lots](https://github.com/khandkar-sajiduzzaman/shebakrishi/blob/main/frontend/src/pages/FarmerLots.jsx): `frontend/src/pages/FarmerLots.jsx`
- [Record lot](https://github.com/khandkar-sajiduzzaman/shebakrishi/blob/main/frontend/src/pages/HubNewLot.jsx): `frontend/src/pages/HubNewLot.jsx`
- [Review grade](https://github.com/khandkar-sajiduzzaman/shebakrishi/blob/main/frontend/src/pages/HubGrading.jsx): `frontend/src/pages/HubGrading.jsx`
- [Buyer catalogue](https://github.com/khandkar-sajiduzzaman/shebakrishi/blob/main/frontend/src/pages/BuyerCatalogue.jsx): `frontend/src/pages/BuyerCatalogue.jsx`
- [Order delivery](https://github.com/khandkar-sajiduzzaman/shebakrishi/blob/main/frontend/src/pages/BuyerOrder.jsx): `frontend/src/pages/BuyerOrder.jsx`
- [Admin dashboard](https://github.com/khandkar-sajiduzzaman/shebakrishi/blob/main/frontend/src/pages/AdminDashboard.jsx): `frontend/src/pages/AdminDashboard.jsx`

### Shared Interface

- [Role navigation](https://github.com/khandkar-sajiduzzaman/shebakrishi/blob/main/frontend/src/components/AppShell.jsx): `frontend/src/components/AppShell.jsx`
- [Price forecast chart](https://github.com/khandkar-sajiduzzaman/shebakrishi/blob/main/frontend/src/components/ForecastChart.jsx): `frontend/src/components/ForecastChart.jsx`
- [Price comparison](https://github.com/khandkar-sajiduzzaman/shebakrishi/blob/main/frontend/src/components/PriceLadder.jsx): `frontend/src/components/PriceLadder.jsx`
- [Produce imagery](https://github.com/khandkar-sajiduzzaman/shebakrishi/blob/main/frontend/src/components/ProduceArt.jsx): `frontend/src/components/ProduceArt.jsx`
- [Delivery map](https://github.com/khandkar-sajiduzzaman/shebakrishi/blob/main/frontend/src/components/RouteMap.jsx): `frontend/src/components/RouteMap.jsx`
- [Interface primitives](https://github.com/khandkar-sajiduzzaman/shebakrishi/blob/main/frontend/src/components/ui.jsx): `frontend/src/components/ui.jsx`
- [Language provider](https://github.com/khandkar-sajiduzzaman/shebakrishi/blob/main/frontend/src/i18n.jsx): `frontend/src/i18n.jsx`
- [Formatting helpers](https://github.com/khandkar-sajiduzzaman/shebakrishi/blob/main/frontend/src/lib/utils.js): `frontend/src/lib/utils.js`

### Mock Data

- [Marketplace samples](https://github.com/khandkar-sajiduzzaman/shebakrishi/tree/main/frontend/src/mock): `frontend/src/mock`

### Other components

- **Marketplace user**

## Connections

- Marketplace user → Route dispatcher: opens (evidence: `README.md`)
- Route dispatcher → Overview: routes to (evidence: `frontend/src/App.jsx`)
- Route dispatcher → Farmer prices: routes to (evidence: `frontend/src/App.jsx`)
- Route dispatcher → Farmer lots: routes to (evidence: `frontend/src/App.jsx`)
- Route dispatcher → Record lot: routes to (evidence: `frontend/src/App.jsx`)
- Route dispatcher → Review grade: routes to (evidence: `frontend/src/App.jsx`)
- Route dispatcher → Buyer catalogue: routes to (evidence: `frontend/src/App.jsx`)
- Route dispatcher → Order delivery: routes to (evidence: `frontend/src/App.jsx`)
- Route dispatcher → Admin dashboard: routes to (evidence: `frontend/src/App.jsx`)
- Overview → Role navigation: renders (evidence: `frontend/src/pages/Home.jsx`)
- Farmer prices → Role navigation: renders (evidence: `frontend/src/pages/FarmerHome.jsx`)
- Farmer lots → Role navigation: renders (evidence: `frontend/src/pages/FarmerLots.jsx`)
- Record lot → Role navigation: renders (evidence: `frontend/src/pages/HubNewLot.jsx`)
- Review grade → Role navigation: renders (evidence: `frontend/src/pages/HubGrading.jsx`)
- Buyer catalogue → Role navigation: renders (evidence: `frontend/src/pages/BuyerCatalogue.jsx`)
- Order delivery → Role navigation: renders (evidence: `frontend/src/pages/BuyerOrder.jsx`)
- Admin dashboard → Role navigation: renders (evidence: `frontend/src/pages/AdminDashboard.jsx`)
- Farmer prices → Price forecast chart: renders (evidence: `frontend/src/pages/FarmerHome.jsx`)
- Overview → Price comparison: renders (evidence: `frontend/src/pages/Home.jsx`)
- Buyer catalogue → Produce imagery: renders (evidence: `frontend/src/pages/BuyerCatalogue.jsx`)
- Farmer lots → Produce imagery: renders (evidence: `frontend/src/pages/FarmerLots.jsx`)
- Record lot → Produce imagery: renders (evidence: `frontend/src/pages/HubNewLot.jsx`)
- Review grade → Produce imagery: renders (evidence: `frontend/src/pages/HubGrading.jsx`)
- Order delivery → Delivery map: renders (evidence: `frontend/src/pages/BuyerOrder.jsx`)
- Overview → Interface primitives: uses (evidence: `frontend/src/pages/Home.jsx`)
- Farmer prices → Interface primitives: uses (evidence: `frontend/src/pages/FarmerHome.jsx`)
- Farmer lots → Interface primitives: uses (evidence: `frontend/src/pages/FarmerLots.jsx`)
- Record lot → Interface primitives: uses (evidence: `frontend/src/pages/HubNewLot.jsx`)
- Review grade → Interface primitives: uses (evidence: `frontend/src/pages/HubGrading.jsx`)
- Buyer catalogue → Interface primitives: uses (evidence: `frontend/src/pages/BuyerCatalogue.jsx`)
- Order delivery → Interface primitives: uses (evidence: `frontend/src/pages/BuyerOrder.jsx`)
- Admin dashboard → Interface primitives: uses (evidence: `frontend/src/pages/AdminDashboard.jsx`)
- Role navigation → Language provider: reads language (evidence: `frontend/src/components/AppShell.jsx`)
- Farmer prices → Language provider: reads language (evidence: `frontend/src/pages/FarmerHome.jsx`)
- Record lot → Language provider: reads language (evidence: `frontend/src/pages/HubNewLot.jsx`)
- Review grade → Language provider: reads language (evidence: `frontend/src/pages/HubGrading.jsx`)
- Interface primitives → Language provider: reads language (evidence: `frontend/src/components/ui.jsx`)
- Buyer catalogue → Formatting helpers: validates quantities (evidence: `frontend/src/pages/BuyerCatalogue.jsx`)
- Order delivery → Formatting helpers: formats prices (evidence: `frontend/src/pages/BuyerOrder.jsx`)
- Role navigation → Formatting helpers: styles links (evidence: `frontend/src/components/AppShell.jsx`)
- Interface primitives → Formatting helpers: merges classes (evidence: `frontend/src/components/ui.jsx`)
- Farmer prices → Marketplace samples: reads samples (evidence: `README.md`)
- Farmer lots → Marketplace samples: reads samples (evidence: `README.md`)
- Record lot → Marketplace samples: uses sample records (evidence: `README.md`)
- Review grade → Marketplace samples: uses sample records (evidence: `README.md`)
- Buyer catalogue → Marketplace samples: reads samples (evidence: `README.md`)
- Order delivery → Marketplace samples: reads samples (evidence: `README.md`)
- Admin dashboard → Marketplace samples: reads samples (evidence: `README.md`)
