# dhanuszsu/poo architecture

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

- Interactive diagram: https://gitdiagram.com/dhanuszsu/poo
- Repository: https://github.com/dhanuszsu/poo

## Overview

This is a self-contained, client-side hand-tracking flower garden. The user enables the camera, then uses MediaPipe-powered hand gestures to bloom flowers or scatter them; the garden is rendered with HTML Canvas and includes drifting petals and butterflies. The README documents these capabilities but no source excerpts were provided, so relationships below are limited to those stated in the README. The single HTML file implements the app; internal responsibilities are shown as separate nodes sharing that path.

Main entry points: [`index.html`](https://github.com/dhanuszsu/poo/blob/main/index.html) (Garden Page)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_input["Camera And Gestures"]
  node_app["Garden Page<br/>[index.html]"]
  node_gestures["Gesture Controls<br/>[index.html]"]
end

subgraph group_garden["Garden Behavior"]
  node_bloom["Flower Blooming<br/>[index.html]"]
  node_scatter["Flower Scattering<br/>[index.html]"]
  node_flower_types["Flower Types<br/>[index.html]"]
  node_ambient["Petals And Butterflies<br/>[index.html]"]
end

subgraph group_display["Canvas Display"]
  node_canvas["Canvas Rendering<br/>[index.html]"]
  node_client_only["Client-Side Privacy<br/>[index.html]"]
end

node_user(("User"))
node_camera["Webcam"]
node_mediapipe["MediaPipe Hands"]

node_user -->|"opens and starts"| node_app
node_app -->|"requests access"| node_camera
node_camera -->|"provides hand input"| node_mediapipe
node_mediapipe -->|"powers tracking"| node_gestures
node_gestures -->|"point gesture blooms"| node_bloom
node_gestures -->|"open-hand gesture scatters"| node_scatter
node_bloom -->|"uses 11 types"| node_flower_types
node_bloom -->|"renders flowers"| node_canvas
node_scatter -->|"renders scattering"| node_canvas
node_ambient -->|"renders drifting effects"| node_canvas
node_app -->|"runs entirely client-side"| node_client_only

click node_app "https://github.com/dhanuszsu/poo/blob/main/index.html"
click node_gestures "https://github.com/dhanuszsu/poo/blob/main/index.html"
click node_bloom "https://github.com/dhanuszsu/poo/blob/main/index.html"
click node_scatter "https://github.com/dhanuszsu/poo/blob/main/index.html"
click node_flower_types "https://github.com/dhanuszsu/poo/blob/main/index.html"
click node_ambient "https://github.com/dhanuszsu/poo/blob/main/index.html"
click node_canvas "https://github.com/dhanuszsu/poo/blob/main/index.html"
click node_client_only "https://github.com/dhanuszsu/poo/blob/main/index.html"

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_gestures,node_user toneBlue
class node_bloom,node_scatter,node_flower_types,node_ambient toneAmber
class node_canvas,node_client_only,node_mediapipe toneMint
class node_camera toneIndigo
```

## Components

### Camera And Gestures

- [Garden Page](https://github.com/dhanuszsu/poo/blob/main/index.html): `index.html`
- [Gesture Controls](https://github.com/dhanuszsu/poo/blob/main/index.html): `index.html`

### Garden Behavior

- [Flower Blooming](https://github.com/dhanuszsu/poo/blob/main/index.html): `index.html`
- [Flower Scattering](https://github.com/dhanuszsu/poo/blob/main/index.html): `index.html`
- [Flower Types](https://github.com/dhanuszsu/poo/blob/main/index.html): `index.html`
- [Petals And Butterflies](https://github.com/dhanuszsu/poo/blob/main/index.html): `index.html`

### Canvas Display

- [Canvas Rendering](https://github.com/dhanuszsu/poo/blob/main/index.html): `index.html`
- [Client-Side Privacy](https://github.com/dhanuszsu/poo/blob/main/index.html): `index.html`

### Other components

- **User**
- **Webcam**
- **MediaPipe Hands**

## Connections

- User → Garden Page: opens and starts (evidence: `README.md`)
- Garden Page → Webcam: requests access (evidence: `README.md`)
- Webcam → MediaPipe Hands: provides hand input (evidence: `README.md`)
- MediaPipe Hands → Gesture Controls: powers tracking (evidence: `README.md`)
- Gesture Controls → Flower Blooming: point gesture blooms (evidence: `README.md`)
- Gesture Controls → Flower Scattering: open-hand gesture scatters (evidence: `README.md`)
- Flower Blooming → Flower Types: uses 11 types (evidence: `README.md`)
- Flower Blooming → Canvas Rendering: renders flowers (evidence: `README.md`)
- Flower Scattering → Canvas Rendering: renders scattering (evidence: `README.md`)
- Petals And Butterflies → Canvas Rendering: renders drifting effects (evidence: `README.md`)
- Garden Page → Client-Side Privacy: runs entirely client-side (evidence: `README.md`)
