# johantgeorge/shop_board architecture

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

- Interactive diagram: https://gitdiagram.com/johantgeorge/shop_board
- Repository: https://github.com/johantgeorge/shop_board

## Overview

ShopBoard’s main workflow is to open the extension popup, save a product into a folder, and review or edit folder contents and totals. The popup handles the product workflow, while a content script reads product details from the current page for auto-fill; data stays in browser-local storage. The README documents these responsibilities, but no source excerpts were provided, so internal calls and extension registration details are not asserted.

Main entry points: [`dist/popup.js`](https://github.com/johantgeorge/shop_board/blob/main/dist/popup.js) (Popup workflow), [`dist/scraper.js`](https://github.com/johantgeorge/shop_board/blob/main/dist/scraper.js) (Product scraper), [`dist/popup.html`](https://github.com/johantgeorge/shop_board/blob/main/dist/popup.html) (Popup interface)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interface["Extension interface"]
  node_popup_ui["Popup interface<br/>[popup.html]"]
  node_popup_logic["Popup workflow<br/>[popup.js]"]
end

subgraph group_products["Product capture"]
  node_scraper["Product scraper<br/>[scraper.js]"]
end

subgraph group_persistence["Local data"]
  node_local_storage[("Browser storage")]
end

node_user(("Shopper"))
node_product_page["Product page"]

node_user -->|"opens"| node_popup_ui
node_product_page -->|"provides details"| node_scraper
node_popup_logic -.->|"uses for autofill"| node_scraper
node_popup_logic -->|"stores locally"| node_local_storage

click node_popup_ui "https://github.com/johantgeorge/shop_board/blob/main/dist/popup.html"
click node_popup_logic "https://github.com/johantgeorge/shop_board/blob/main/dist/popup.js"
click node_scraper "https://github.com/johantgeorge/shop_board/blob/main/dist/scraper.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_popup_ui,node_popup_logic toneBlue
class node_scraper toneAmber
class node_local_storage toneMint
class node_user,node_product_page toneIndigo
```

## Components

### Extension interface

- [Popup interface](https://github.com/johantgeorge/shop_board/blob/main/dist/popup.html): `dist/popup.html`
- [Popup workflow](https://github.com/johantgeorge/shop_board/blob/main/dist/popup.js): `dist/popup.js`

### Product capture

- [Product scraper](https://github.com/johantgeorge/shop_board/blob/main/dist/scraper.js): `dist/scraper.js`

### Local data

- **Browser storage**

### Other components

- **Shopper**
- **Product page**

## Connections

- Shopper → Popup interface: opens (evidence: `README.md`)
- Product page → Product scraper: provides details (evidence: `README.md`)
- Popup workflow → Product scraper: uses for autofill
- Popup workflow → Browser storage: stores locally (evidence: `README.md`)
