# Repository Briefing: ythx-101/live-panel-skill
> Source: https://repoforai.com/repo/ythx-101/live-panel-skill (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/ythx-101/live-panel-skill
- **Category**: Coding, Skills & MCP (AI 编程 / Skills / MCP)
- **Primary Language**: JavaScript
- **License**: MIT
- **Engineering Health**: B+ (73/100 · Maintenance 31/35 · Adoption 16/25 · Releases 6/20 · License 20/20)
- **Review Snapshot**: 2026-12-03
- **Deployment / Stack Signals**: MCP, CLI
- **Momentum**: 882 ★ total (+0 24h / +1 7d) · 112 forks
- **Topics**: `agent-skill`, `ai-agents`, `animated-diagram`, `architecture-diagram`, `chinese`, `claude-code`, `claude-skills`, `codex`, `data-visualization`, `diagram-as-code`, `excalidraw`, `ffmpeg`
- **When to Use**: Best for: Teams publishing architecture explainers, agent workflow demos, or social clips that need a fixed layout, scripted motion, and repeatable local exports. Skip if: You need a real telemetry dashboard, an MCP endpoint, an interactive diagram editor, or a free-form layout that automatically reflows across aspect ratios.

## Overview
```text
### Architecture & Core Mechanics
live-panel is a local rendering pipeline with an agent-skill wrapper. A single JSON config defines the canvas, theme, boxes and wires, simulated state machines, and conditional styling. SKILL.md gives compatible agents a workflow for authoring that config and inspecting the result. The documented execution interface is the Python CLI; there is no evidenced MCP server entrypoint or transport.

The JavaScript in assets/template.html exposes window.seek(t), which derives the scene directly from the requested time. Fixed-seed hashing handles variation without wall-clock state, Math.random, or CSS animations. scripts/render.py drives a headless Chromium-family browser over a DevTools pipe, seeks to i/fps for each screenshot, and passes the frames to ffmpeg. The looping HTML uses the same seek function, driven by requestAnimationFrame.

### Key Capabilities & Differentiators
The renderer animates a fixed composition: packets traverse paths, counters increment, gauges and lane statuses change, logs scroll, and triggers highlight related elements. The terminal-dark and light-pastel themes share the same timing model. Built-in ring, funnel, and loop views lay out content inside a specified rectangle for cycles, staged conversion, and workflows with branches or loopbacks. The Excalidraw view can animate imported drawings as well as purpose-built scenes.

Outputs are H.264 MP4, with a default of 30 fps and silent AAC, and a self-contained looping HTML page. scripts/check_frames.py samples roughly 120 time points for DOM text overflow and overlap, writes sample PNGs, and can compare screenshots after seeking away and back. Paired renders of the Codex example matched on decoded-frame hashes across all 900 frames in a Chrome 154 and ffmpeg 7.1 setup. That tests repeatability in that environment, not pixel parity across machines.

### Trade-offs & Limitations
Compared with relationship-driven layout tools such as Mermaid, live-panel gives authors more direct control over composition and timing, but free-form configs use absolute pixel coordinates. Width and height overrides rescale with letterboxing rather than reflowing the diagram. For a different aspect ratio, expect to reposition elements or start from a built-in view. Compared with drawing directly in Excalidraw, the import path adds scripted motion and export rather than replacing interactive editing.

The dashboard look depicts scripted state, not a live telemetry integration. Local rendering avoids an external service but puts browser rasterization and encoding on the workstation. Font substitutions can change glyph widths, so rerun layout checks when moving between environments. Sampling and repeat checks are useful regression tools, but they do not replace a visual review or guarantee that every instant is free of clipping.

### Hardware & Deployment Guide
Run locally with Python 3.8+ using the standard library, Chrome or Chromium, and ffmpeg. Linux and macOS are supported; native Windows is not, because the DevTools pipe uses POSIX file descriptors via pass_fds. WSL is the documented Windows route. Start with python3 scripts/render.py --config examples/minimal/config.json --out out.mp4; add --html-out page.html for browser playback. Use --chrome and --ffmpeg to select executables explicitly.

Rendering requires no API key or network access once the dependencies and chosen assets are in place. The optional Xiaolai handwriting font is fetched separately, and fontTools can subset it when installed. Standard-library tests run without a browser via tests.test_offline; the full suite uses CHROME to locate the browser. No GitHub release is listed, so record the tested source revision, browser, encoder, and fonts when repeatable production output matters.
```

## Key Capabilities
```text
- Integration: SKILL.md guides config authoring and frame inspection; Python scripts provide the local execution interface.
- Playback: window.seek(t) derives visual state from time, with fixed-seed variation and no dependence on prior frames.
- Quality checks: check_frames.py samples roughly 120 time points for DOM overflow and overlap; --repeat compares exported screenshots after seeking away.
- Export: H.264 MP4 defaults to 30 fps with silent AAC; --audio none omits the audio track, and --html-out saves the looping page.
- Layout: Free-form diagrams use absolute canvas coordinates; ring, funnel, and loop views arrange content within a supplied rectangle.
- Canvas presets: 1200×1500 for 4:5, 1080×1440 for 3:4, and 1080×1080 for square output.
```

## Quick Start / Clone
```bash
git clone https://github.com/ythx-101/live-panel-skill && cd live-panel-skill
python3 scripts/render.py --config examples/minimal/config.json --out minimal.mp4 --html-out minimal.html
python3 scripts/check_frames.py --config examples/minimal/config.json --out-dir frames --repeat   # exit 0 = no overflow/overlap, replay identical
```
