# shivambharre/mediapipe-face-filter architecture

> Architecture diagram of the GitHub repository shivambharre/mediapipe-face-filter, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-08-15). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/shivambharre/mediapipe-face-filter
- Repository: https://github.com/shivambharre/mediapipe-face-filter

## Overview

#### Purpose and runtime
This is a small static browser project containing several independent interactive visual experiences. There is no visible server-side code, package manifest, build system, or external-service integration; each HTML document is an entry point intended to run directly in a web browser.

#### Entry points
- `index.html` is the likely landing page or primary navigation entry.
- `finger_filter.html` provides a standalone finger-filter experience.
- `pinch_puzzle_filter.html` provides a standalone pinch/puzzle filter experience.
- `zen-sand-garden.html` provides a standalone zen sand garden experience.

Each page is a separate deployable browser document rather than a route handled by an application server.

#### Experience isolation boundary
The architecture is page-oriented: each interactive feature is isolated at the HTML-document boundary. This avoids a shared application runtime but also means navigation, state, assets, and scripts—if present—are expected to be owned by each page.

Relevant boundaries:
- `finger_filter.html`
- `pinch_puzzle_filter.html`
- `zen-sand-garden.html`

#### Primary control flow
A user opens `index.html` or a feature-specific HTML file in a browser. The selected document initializes its own DOM and any embedded client-side interaction logic, then responds to browser input such as pointer, touch, or pinch gestures. No repository evidence indicates persistence, API calls, authentication, background jobs, or cross-page shared state.

#### Interaction domains
Two pages are explicitly named for gesture-driven filter/puzzle behavior:
- `finger_filter.html`
- `pinch_puzzle_filter.html`

`zen-sand-garden.html` is a distinct simulation or drawing-oriented interaction domain. These experiences should be treated as separate UI modules unless common code is introduced outside the currently visible tree.

#### Infrastructure and deployment
Deployment can be static-file hosting: serve the repository root over HTTP(S), with `index.html` as the conventional default document. Material runtime requirements are a modern browser and its DOM/input APIs. There are no visible infrastructure definitions, dependency manifests, backend services, or build artifacts in the repository tree.

Main entry points: [`index.html`](https://github.com/shivambharre/mediapipe-face-filter/blob/main/index.html) (Landing Page), [`finger_filter.html`](https://github.com/shivambharre/mediapipe-face-filter/blob/main/finger_filter.html) (Finger Filter), [`pinch_puzzle_filter.html`](https://github.com/shivambharre/mediapipe-face-filter/blob/main/pinch_puzzle_filter.html) (Pinch Puzzle Filter), [`zen-sand-garden.html`](https://github.com/shivambharre/mediapipe-face-filter/blob/main/zen-sand-garden.html) (Zen Sand Garden)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_browser["Browser Runtime"]
  node_browser(("Modern Browser<br/>runtime"))
  node_dom_logic["Page DOM &amp; Interaction Logic<br/>client-side logic"]
  node_gesture_input(("Pointer &amp; Touch Input<br/>browser API"))
end

subgraph group_experiences["Interactive Experiences"]
  node_index["Landing Page<br/>HTML entry point<br/>[index.html]"]
  node_finger_filter["Finger Filter<br/>interactive HTML<br/>[finger_filter.html]"]
  node_pinch_puzzle["Pinch Puzzle Filter<br/>interactive HTML"]
  node_zen_garden["Zen Sand Garden<br/>interactive HTML"]
end

node_static_host{{"Static File Host<br/>deployment"}}

node_static_host -->|"serves HTML"| node_browser
node_browser -->|"opens"| node_index
node_browser -->|"opens directly"| node_finger_filter
node_browser -->|"opens directly"| node_pinch_puzzle
node_browser -->|"opens directly"| node_zen_garden
node_index -.->|"navigates to"| node_finger_filter
node_index -.->|"navigates to"| node_pinch_puzzle
node_index -.->|"navigates to"| node_zen_garden
node_finger_filter -->|"initializes own"| node_dom_logic
node_pinch_puzzle -->|"initializes own"| node_dom_logic
node_zen_garden -->|"initializes own"| node_dom_logic
node_gesture_input -->|"drives interactions"| node_dom_logic

click node_index "https://github.com/shivambharre/mediapipe-face-filter/blob/main/index.html"
click node_finger_filter "https://github.com/shivambharre/mediapipe-face-filter/blob/main/finger_filter.html"
click node_pinch_puzzle "https://github.com/shivambharre/mediapipe-face-filter/blob/main/pinch_puzzle_filter.html"
click node_zen_garden "https://github.com/shivambharre/mediapipe-face-filter/blob/main/zen-sand-garden.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_browser,node_dom_logic,node_gesture_input toneBlue
class node_index,node_finger_filter,node_pinch_puzzle,node_zen_garden toneAmber
class node_static_host toneNeutral
```

## Components

### Browser Runtime

Each document runs as an isolated client-side experience.

- **Modern Browser**: runtime · Provides DOM and pointer/touch input APIs.
- **Page DOM & Interaction Logic**: client-side logic · Document-owned UI initialization and input handling.
- **Pointer & Touch Input**: browser API · Supplies pointer, touch, and pinch gestures.

### Interactive Experiences

Standalone HTML document boundaries.

- [Landing Page](https://github.com/shivambharre/mediapipe-face-filter/blob/main/index.html): HTML entry point · Primary navigation entry document. · `index.html`
- [Finger Filter](https://github.com/shivambharre/mediapipe-face-filter/blob/main/finger_filter.html): interactive HTML · Standalone gesture-driven filter experience. · `finger_filter.html`
- [Pinch Puzzle Filter](https://github.com/shivambharre/mediapipe-face-filter/blob/main/pinch_puzzle_filter.html): interactive HTML · Standalone pinch and puzzle interaction experience. · `pinch_puzzle_filter.html`
- [Zen Sand Garden](https://github.com/shivambharre/mediapipe-face-filter/blob/main/zen-sand-garden.html): interactive HTML · Standalone drawing or simulation experience. · `zen-sand-garden.html`

### Other components

- **Static File Host**: deployment · Serves repository files over HTTP(S).

## Connections

- Static File Host → Modern Browser: serves HTML
- Modern Browser → Landing Page: opens
- Modern Browser → Finger Filter: opens directly
- Modern Browser → Pinch Puzzle Filter: opens directly
- Modern Browser → Zen Sand Garden: opens directly
- Landing Page → Finger Filter: navigates to
- Landing Page → Pinch Puzzle Filter: navigates to
- Landing Page → Zen Sand Garden: navigates to
- Finger Filter → Page DOM & Interaction Logic: initializes own
- Pinch Puzzle Filter → Page DOM & Interaction Logic: initializes own
- Zen Sand Garden → Page DOM & Interaction Logic: initializes own
- Pointer & Touch Input → Page DOM & Interaction Logic: drives interactions
