# riiimooon/flowermadtools architecture

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

- Interactive diagram: https://gitdiagram.com/riiimooon/flowermadtools
- Repository: https://github.com/riiimooon/flowermadtools

## Overview

FlowerMad Ops Hub is a browser-based launcher for the team’s Apps Script tools. Users choose a configured tool from the sidebar; the hub embeds its web app in an iframe and offers a new-tab fallback. The documented capabilities include nearest-supplier lookup, supplier order data, payment links, Orange Cash, and adding tools through configuration. The available excerpts show the launcher and configuration wiring, not the internal implementations of those remote tools.

Main entry points: [`app.js`](https://github.com/riiimooon/flowermadtools/blob/main/app.js) (Navigation and launch), [`index.html`](https://github.com/riiimooon/flowermadtools/blob/main/index.html) (Hub interface), [`config.js`](https://github.com/riiimooon/flowermadtools/blob/main/config.js) (Tool registry)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_hub["Ops Hub"]
  node_hub_ui["Hub interface<br/>[index.html]"]
  node_tool_config["Tool registry<br/>[config.js]"]
  node_launcher["Navigation and launch<br/>[app.js]"]
end

subgraph group_tools["Remote Tools"]
  node_nearest["Nearest supplier"]
  node_orders["Supplier orders"]
  node_payments["Payment links"]
  node_orange["Orange Cash"]
end

node_team(("Team user"))

node_team -->|"opens"| node_hub_ui
node_hub_ui -->|"loads"| node_launcher
node_launcher -->|"reads registry"| node_tool_config
node_launcher -->|"embeds or opens"| node_nearest
node_launcher -->|"embeds or opens"| node_orders
node_launcher -->|"embeds or opens"| node_payments
node_launcher -->|"embeds or opens"| node_orange

click node_hub_ui "https://github.com/riiimooon/flowermadtools/blob/main/index.html"
click node_tool_config "https://github.com/riiimooon/flowermadtools/blob/main/config.js"
click node_launcher "https://github.com/riiimooon/flowermadtools/blob/main/app.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_hub_ui,node_tool_config,node_launcher,node_team toneBlue
class node_nearest,node_orders,node_payments,node_orange toneAmber
```

## Components

### Ops Hub

- [Hub interface](https://github.com/riiimooon/flowermadtools/blob/main/index.html): `index.html`
- [Tool registry](https://github.com/riiimooon/flowermadtools/blob/main/config.js): `config.js`
- [Navigation and launch](https://github.com/riiimooon/flowermadtools/blob/main/app.js): `app.js`

### Remote Tools

- **Nearest supplier**
- **Supplier orders**
- **Payment links**
- **Orange Cash**

### Other components

- **Team user**

## Connections

- Team user → Hub interface: opens (evidence: `README.md`)
- Hub interface → Navigation and launch: loads (evidence: `README.md`)
- Navigation and launch → Tool registry: reads registry (evidence: `app.js`)
- Navigation and launch → Nearest supplier: embeds or opens
- Navigation and launch → Supplier orders: embeds or opens
- Navigation and launch → Payment links: embeds or opens
- Navigation and launch → Orange Cash: embeds or opens
