# vibecoder10/local-loom architecture

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

- Interactive diagram: https://gitdiagram.com/vibecoder10/local-loom
- Repository: https://github.com/vibecoder10/local-loom

## Overview

Local Loom is a Chrome screen-and-camera recorder with an optional loopback helper for private transcription and edited exports. Its main workflow captures media in the extension, preserves the original, submits recordings for local processing, and presents reviewable transcript, cut, and rendered-video results. The README also documents advanced export formats and an optional Animate workflow. Edges are limited to relationships shown in excerpts, the SOURCE INDEX, or README; several advanced features are documented but their implementation was not sampled.

Main entry points: [`extension/recorder.js`](https://github.com/vibecoder10/local-loom/blob/main/extension/recorder.js) (Recorder UI), [`animate-skill/scripts/build-tutorial.mjs`](https://github.com/vibecoder10/local-loom/blob/main/animate-skill/scripts/build-tutorial.mjs) (Tutorial renderer), [`extension/recorder-core.js`](https://github.com/vibecoder10/local-loom/blob/main/extension/recorder-core.js) (Recording lifecycle), [`extension/companion-client.js`](https://github.com/vibecoder10/local-loom/blob/main/extension/companion-client.js) (Helper client)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_capture["Capture and recording"]
  node_recorder["Recorder UI<br/>[recorder.js]"]
  node_display["Source chooser<br/>[display-capture.js]"]
  node_controller["Recording lifecycle<br/>[recorder-core.js]"]
  node_compositor["Camera composition"]
  node_worker["Composition worker<br/>[camera-worker.js]"]
  node_orb["Camera preview<br/>[camera-orb.js]"]
end

subgraph group_review["Review and export"]
  node_original["Original recording<br/>[recorder-core.js]"]
  node_save["Save recording<br/>[save-recording.js]"]
  node_editmodel["Cut planning<br/>[edit-model.js]"]
  node_advanced["Advanced exports"]
end

subgraph group_helper["Local processing"]
  node_client["Helper client"]
  node_server["Loopback API<br/>[server.py]"]
  node_processing["Transcription and editing<br/>[processing.py]"]
  node_artifacts["Local job artifacts<br/>[server.py]"]
end

subgraph group_animate["Animate rendering"]
  node_animateuser(("Animate user"))
  node_animate["Take-to-video workflow<br/>[animate-take.mjs]"]
  node_tutorialbuild["Tutorial renderer<br/>[build-tutorial.mjs]"]
  node_panelplan["Panel validation<br/>[panel-plan.mjs]"]
  node_icons["Icon cache<br/>[icon-cache.mjs]"]
  node_rendered["Rendered video<br/>[template.html]"]
end

node_user(("Recorder user"))

node_user -->|"starts recording"| node_recorder
node_recorder -->|"chooses source"| node_display
node_recorder -->|"controls capture"| node_controller
node_controller -->|"composes camera"| node_compositor
node_compositor -->|"dispatches frames"| node_worker
node_recorder -->|"manages preview"| node_orb
node_controller -->|"produces recording"| node_original
node_recorder -->|"saves original"| node_save
node_recorder -->|"submits and polls"| node_client
node_client -->|"calls loopback API"| node_server
node_server -->|"runs media jobs"| node_processing
node_processing -->|"writes outputs"| node_artifacts
node_client -->|"fetches artifacts"| node_artifacts
node_recorder -->|"plans cuts"| node_editmodel
node_user -->|"chooses export"| node_advanced
node_animateuser -->|"starts rendering"| node_animate
node_animate -.->|"builds tutorial"| node_tutorialbuild
node_tutorialbuild -->|"validates panels"| node_panelplan
node_tutorialbuild -->|"loads icons"| node_icons
node_tutorialbuild -->|"generates composition"| node_rendered

click node_recorder "https://github.com/vibecoder10/local-loom/blob/main/extension/recorder.js"
click node_display "https://github.com/vibecoder10/local-loom/blob/main/extension/display-capture.js"
click node_controller "https://github.com/vibecoder10/local-loom/blob/main/extension/recorder-core.js"
click node_compositor "https://github.com/vibecoder10/local-loom/blob/main/extension/camera-compositor.js"
click node_worker "https://github.com/vibecoder10/local-loom/blob/main/extension/camera-worker.js"
click node_orb "https://github.com/vibecoder10/local-loom/blob/main/extension/camera-orb.js"
click node_original "https://github.com/vibecoder10/local-loom/blob/main/extension/recorder-core.js"
click node_save "https://github.com/vibecoder10/local-loom/blob/main/extension/save-recording.js"
click node_editmodel "https://github.com/vibecoder10/local-loom/blob/main/extension/edit-model.js"
click node_client "https://github.com/vibecoder10/local-loom/blob/main/extension/companion-client.js"
click node_server "https://github.com/vibecoder10/local-loom/blob/main/companion/server.py"
click node_processing "https://github.com/vibecoder10/local-loom/blob/main/companion/processing.py"
click node_artifacts "https://github.com/vibecoder10/local-loom/blob/main/companion/server.py"
click node_advanced "https://github.com/vibecoder10/local-loom/tree/main/extension"
click node_animate "https://github.com/vibecoder10/local-loom/blob/main/animate-skill/scripts/animate-take.mjs"
click node_tutorialbuild "https://github.com/vibecoder10/local-loom/blob/main/animate-skill/scripts/build-tutorial.mjs"
click node_panelplan "https://github.com/vibecoder10/local-loom/blob/main/animate-skill/scripts/panel-plan.mjs"
click node_icons "https://github.com/vibecoder10/local-loom/blob/main/animate-skill/scripts/icon-cache.mjs"
click node_rendered "https://github.com/vibecoder10/local-loom/blob/main/animate-skill/templates/tutorial-16x9/template.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_recorder,node_display,node_controller,node_compositor,node_worker,node_orb,node_user toneBlue
class node_original,node_save,node_editmodel,node_advanced toneAmber
class node_client,node_server,node_processing,node_artifacts toneMint
class node_animateuser,node_animate,node_tutorialbuild,node_panelplan,node_icons,node_rendered toneRose
```

## Components

### Capture and recording

- [Recorder UI](https://github.com/vibecoder10/local-loom/blob/main/extension/recorder.js): `extension/recorder.js`
- [Source chooser](https://github.com/vibecoder10/local-loom/blob/main/extension/display-capture.js): `extension/display-capture.js`
- [Recording lifecycle](https://github.com/vibecoder10/local-loom/blob/main/extension/recorder-core.js): `extension/recorder-core.js`
- [Camera composition](https://github.com/vibecoder10/local-loom/blob/main/extension/camera-compositor.js): `extension/camera-compositor.js`
- [Composition worker](https://github.com/vibecoder10/local-loom/blob/main/extension/camera-worker.js): `extension/camera-worker.js`
- [Camera preview](https://github.com/vibecoder10/local-loom/blob/main/extension/camera-orb.js): `extension/camera-orb.js`

### Review and export

- [Original recording](https://github.com/vibecoder10/local-loom/blob/main/extension/recorder-core.js): `extension/recorder-core.js`
- [Save recording](https://github.com/vibecoder10/local-loom/blob/main/extension/save-recording.js): `extension/save-recording.js`
- [Cut planning](https://github.com/vibecoder10/local-loom/blob/main/extension/edit-model.js): `extension/edit-model.js`
- [Advanced exports](https://github.com/vibecoder10/local-loom/tree/main/extension): `extension`

### Local processing

- [Helper client](https://github.com/vibecoder10/local-loom/blob/main/extension/companion-client.js): `extension/companion-client.js`
- [Loopback API](https://github.com/vibecoder10/local-loom/blob/main/companion/server.py): `companion/server.py`
- [Transcription and editing](https://github.com/vibecoder10/local-loom/blob/main/companion/processing.py): `companion/processing.py`
- [Local job artifacts](https://github.com/vibecoder10/local-loom/blob/main/companion/server.py): `companion/server.py`

### Animate rendering

- **Animate user**
- [Take-to-video workflow](https://github.com/vibecoder10/local-loom/blob/main/animate-skill/scripts/animate-take.mjs): `animate-skill/scripts/animate-take.mjs`
- [Tutorial renderer](https://github.com/vibecoder10/local-loom/blob/main/animate-skill/scripts/build-tutorial.mjs): `animate-skill/scripts/build-tutorial.mjs`
- [Panel validation](https://github.com/vibecoder10/local-loom/blob/main/animate-skill/scripts/panel-plan.mjs): `animate-skill/scripts/panel-plan.mjs`
- [Icon cache](https://github.com/vibecoder10/local-loom/blob/main/animate-skill/scripts/icon-cache.mjs): `animate-skill/scripts/icon-cache.mjs`
- [Rendered video](https://github.com/vibecoder10/local-loom/blob/main/animate-skill/templates/tutorial-16x9/template.html): `animate-skill/templates/tutorial-16x9/template.html`

### Other components

- **Recorder user**

## Connections

- Recorder user → Recorder UI: starts recording (evidence: `README.md`)
- Recorder UI → Source chooser: chooses source (evidence: `extension/recorder.js`)
- Recorder UI → Recording lifecycle: controls capture (evidence: `extension/recorder.js`)
- Recording lifecycle → Camera composition: composes camera (evidence: `extension/recorder-core.js`)
- Camera composition → Composition worker: dispatches frames (evidence: `extension/camera-compositor.js`)
- Recorder UI → Camera preview: manages preview (evidence: `extension/recorder.js`)
- Recording lifecycle → Original recording: produces recording (evidence: `extension/recorder-core.js`)
- Recorder UI → Save recording: saves original (evidence: `extension/recorder.js`)
- Recorder UI → Helper client: submits and polls (evidence: `extension/recorder.js`)
- Helper client → Loopback API: calls loopback API (evidence: `extension/companion-client.js`)
- Loopback API → Transcription and editing: runs media jobs (evidence: `companion/server.py`)
- Transcription and editing → Local job artifacts: writes outputs (evidence: `companion/processing.py`)
- Helper client → Local job artifacts: fetches artifacts (evidence: `extension/companion-client.js`)
- Recorder UI → Cut planning: plans cuts (evidence: `extension/recorder.js`)
- Recorder user → Advanced exports: chooses export (evidence: `README.md`)
- Animate user → Take-to-video workflow: starts rendering (evidence: `README.md`)
- Take-to-video workflow → Tutorial renderer: builds tutorial
- Tutorial renderer → Panel validation: validates panels (evidence: `animate-skill/scripts/build-tutorial.mjs`)
- Tutorial renderer → Icon cache: loads icons (evidence: `animate-skill/scripts/build-tutorial.mjs`)
- Tutorial renderer → Rendered video: generates composition (evidence: `animate-skill/scripts/build-tutorial.mjs`)
