# tejashmakwana/motionmaxxing architecture

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

- Interactive diagram: https://gitdiagram.com/tejashmakwana/motionmaxxing
- Repository: https://github.com/tejashmakwana/motionmaxxing

## Overview

motionmaxxing is an agent skill for creating and checking locally rendered motion-design films. The documented workflow starts from a brand website, develops a brand-specific idea and visual world, builds and animates an HTML composition, then renders and inspects the result. The graph includes the runtime and documented capabilities; several links rely on README descriptions because their implementation files were not excerpted.

Main entry points: [`templates/film.html`](https://github.com/tejashmakwana/motionmaxxing/blob/main/templates/film.html) (HTML composition), [`scripts/brand.mjs`](https://github.com/tejashmakwana/motionmaxxing/blob/main/scripts/brand.mjs) (Brand capture), [`scripts/render.mjs`](https://github.com/tejashmakwana/motionmaxxing/blob/main/scripts/render.mjs) (Film renderer), [`scripts/_cdp.mjs`](https://github.com/tejashmakwana/motionmaxxing/blob/main/scripts/_cdp.mjs) (Chrome DevTools helper)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_discovery["Brand and direction"]
  node_brand["Brand capture<br/>[brand.mjs]"]
  node_logo["Logo retrieval<br/>[fetch_logo.mjs]"]
  node_idea["Idea development<br/>[idea.md]"]
  node_world["Visual world<br/>[world.md]"]
  node_precedent["Motion precedents<br/>[precedent.py]"]
  node_moments["Measured moments<br/>[moments.jsonl]"]
end

subgraph group_creation["Film creation"]
  node_composition["HTML composition<br/>[film.html]"]
  node_imagegen["Image generation<br/>[imagegen.py]"]
  node_voice["Voice and sound<br/>[voice.py]"]
end

subgraph group_runtime["Composition runtime"]
  node_motion["Motion runtime<br/>[motion.js]"]
  node_hero3d["3D hero objects<br/>[hero3d.js]"]
  node_nativeui["Native UI elements<br/>[native-ui.js]"]
end

subgraph group_delivery["Render and review"]
  node_render["Film renderer<br/>[render.mjs]"]
  node_lint["Composition gates<br/>[lint.mjs]"]
  node_look["Film inspection<br/>[look.py]"]
  node_blind["Blind review<br/>[blind_review.py]"]
  node_cdp["Chrome DevTools helper<br/>[_cdp.mjs]"]
end

node_agent(("Agent / user"))
node_website["Brand website"]
node_elevenlabs["ElevenLabs services"]
node_ffmpeg["ffmpeg"]

node_agent -->|"provides URL"| node_brand
node_brand -->|"captures brand"| node_website
node_agent -->|"requests mark"| node_logo
node_brand -->|"informs"| node_idea
node_idea -->|"develops"| node_world
node_world -->|"guides design"| node_composition
node_precedent -.->|"measures"| node_moments
node_moments -->|"guides timing"| node_composition
node_agent -->|"authors"| node_composition
node_composition -->|"uses"| node_motion
node_composition -.->|"may use"| node_hero3d
node_composition -.->|"may use"| node_nativeui
node_agent -.->|"creates assets"| node_imagegen
node_agent -.->|"creates audio"| node_voice
node_voice -.->|"requests audio"| node_elevenlabs
node_agent -->|"renders film"| node_render
node_render -->|"captures frames"| node_composition
node_render -->|"encodes output"| node_ffmpeg
node_agent -->|"checks composition"| node_lint
node_agent -->|"inspects film"| node_look
node_agent -.->|"reviews versions"| node_blind
node_brand -->|"uses browser"| node_cdp
node_logo -->|"uses browser"| node_cdp
node_render -->|"uses browser"| node_cdp
node_lint -->|"uses browser"| node_cdp

click node_brand "https://github.com/tejashmakwana/motionmaxxing/blob/main/scripts/brand.mjs"
click node_logo "https://github.com/tejashmakwana/motionmaxxing/blob/main/scripts/fetch_logo.mjs"
click node_idea "https://github.com/tejashmakwana/motionmaxxing/blob/main/references/idea.md"
click node_world "https://github.com/tejashmakwana/motionmaxxing/blob/main/references/world.md"
click node_precedent "https://github.com/tejashmakwana/motionmaxxing/blob/main/scripts/precedent.py"
click node_moments "https://github.com/tejashmakwana/motionmaxxing/blob/main/library/moments.jsonl"
click node_composition "https://github.com/tejashmakwana/motionmaxxing/blob/main/templates/film.html"
click node_imagegen "https://github.com/tejashmakwana/motionmaxxing/blob/main/scripts/imagegen.py"
click node_voice "https://github.com/tejashmakwana/motionmaxxing/blob/main/scripts/voice.py"
click node_motion "https://github.com/tejashmakwana/motionmaxxing/blob/main/runtime/motion.js"
click node_hero3d "https://github.com/tejashmakwana/motionmaxxing/blob/main/runtime/hero3d/hero3d.js"
click node_nativeui "https://github.com/tejashmakwana/motionmaxxing/blob/main/runtime/native-ui/native-ui.js"
click node_render "https://github.com/tejashmakwana/motionmaxxing/blob/main/scripts/render.mjs"
click node_lint "https://github.com/tejashmakwana/motionmaxxing/blob/main/scripts/lint.mjs"
click node_look "https://github.com/tejashmakwana/motionmaxxing/blob/main/scripts/look.py"
click node_blind "https://github.com/tejashmakwana/motionmaxxing/blob/main/scripts/blind_review.py"
click node_cdp "https://github.com/tejashmakwana/motionmaxxing/blob/main/scripts/_cdp.mjs"

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_brand,node_logo,node_idea,node_world,node_precedent,node_moments,node_agent toneBlue
class node_composition,node_imagegen,node_voice toneAmber
class node_motion,node_hero3d,node_nativeui toneMint
class node_render,node_lint,node_look,node_blind,node_cdp toneRose
class node_website,node_elevenlabs,node_ffmpeg toneIndigo
```

## Components

### Brand and direction

- [Brand capture](https://github.com/tejashmakwana/motionmaxxing/blob/main/scripts/brand.mjs): `scripts/brand.mjs`
- [Logo retrieval](https://github.com/tejashmakwana/motionmaxxing/blob/main/scripts/fetch_logo.mjs): `scripts/fetch_logo.mjs`
- [Idea development](https://github.com/tejashmakwana/motionmaxxing/blob/main/references/idea.md): `references/idea.md`
- [Visual world](https://github.com/tejashmakwana/motionmaxxing/blob/main/references/world.md): `references/world.md`
- [Motion precedents](https://github.com/tejashmakwana/motionmaxxing/blob/main/scripts/precedent.py): `scripts/precedent.py`
- [Measured moments](https://github.com/tejashmakwana/motionmaxxing/blob/main/library/moments.jsonl): `library/moments.jsonl`

### Film creation

- [HTML composition](https://github.com/tejashmakwana/motionmaxxing/blob/main/templates/film.html): `templates/film.html`
- [Image generation](https://github.com/tejashmakwana/motionmaxxing/blob/main/scripts/imagegen.py): `scripts/imagegen.py`
- [Voice and sound](https://github.com/tejashmakwana/motionmaxxing/blob/main/scripts/voice.py): `scripts/voice.py`

### Composition runtime

- [Motion runtime](https://github.com/tejashmakwana/motionmaxxing/blob/main/runtime/motion.js): `runtime/motion.js`
- [3D hero objects](https://github.com/tejashmakwana/motionmaxxing/blob/main/runtime/hero3d/hero3d.js): `runtime/hero3d/hero3d.js`
- [Native UI elements](https://github.com/tejashmakwana/motionmaxxing/blob/main/runtime/native-ui/native-ui.js): `runtime/native-ui/native-ui.js`

### Render and review

- [Film renderer](https://github.com/tejashmakwana/motionmaxxing/blob/main/scripts/render.mjs): `scripts/render.mjs`
- [Composition gates](https://github.com/tejashmakwana/motionmaxxing/blob/main/scripts/lint.mjs): `scripts/lint.mjs`
- [Film inspection](https://github.com/tejashmakwana/motionmaxxing/blob/main/scripts/look.py): `scripts/look.py`
- [Blind review](https://github.com/tejashmakwana/motionmaxxing/blob/main/scripts/blind_review.py): `scripts/blind_review.py`
- [Chrome DevTools helper](https://github.com/tejashmakwana/motionmaxxing/blob/main/scripts/_cdp.mjs): `scripts/_cdp.mjs`

### Other components

- **Agent / user**
- **Brand website**
- **ElevenLabs services**
- **ffmpeg**

## Connections

- Agent / user → Brand capture: provides URL (evidence: `README.md`)
- Brand capture → Brand website: captures brand (evidence: `scripts/brand.mjs`)
- Agent / user → Logo retrieval: requests mark (evidence: `scripts/fetch_logo.mjs`)
- Brand capture → Idea development: informs (evidence: `README.md`)
- Idea development → Visual world: develops (evidence: `README.md`)
- Visual world → HTML composition: guides design (evidence: `README.md`)
- Motion precedents → Measured moments: measures
- Measured moments → HTML composition: guides timing (evidence: `README.md`)
- Agent / user → HTML composition: authors (evidence: `README.md`)
- HTML composition → Motion runtime: uses (evidence: `README.md`)
- HTML composition → 3D hero objects: may use (evidence: `runtime/hero3d/hero3d.js`)
- HTML composition → Native UI elements: may use (evidence: `runtime/native-ui/native-ui.js`)
- Agent / user → Image generation: creates assets
- Agent / user → Voice and sound: creates audio
- Voice and sound → ElevenLabs services: requests audio (evidence: `scripts/voice.py`)
- Agent / user → Film renderer: renders film (evidence: `README.md`)
- Film renderer → HTML composition: captures frames (evidence: `scripts/render.mjs`)
- Film renderer → ffmpeg: encodes output (evidence: `README.md`)
- Agent / user → Composition gates: checks composition (evidence: `README.md`)
- Agent / user → Film inspection: inspects film (evidence: `README.md`)
- Agent / user → Blind review: reviews versions (evidence: `scripts/blind_review.py`)
- Brand capture → Chrome DevTools helper: uses browser (evidence: `scripts/brand.mjs`)
- Logo retrieval → Chrome DevTools helper: uses browser (evidence: `scripts/fetch_logo.mjs`)
- Film renderer → Chrome DevTools helper: uses browser (evidence: `scripts/render.mjs`)
- Composition gates → Chrome DevTools helper: uses browser (evidence: `scripts/lint.mjs`)
