# Repository Briefing: nicobailon/visual-explainer
> Source: https://repoforai.com/repo/nicobailon/visual-explainer (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/nicobailon/visual-explainer
- **Category**: Coding, Skills & MCP (AI 编程 / Skills / MCP)
- **Primary Language**: JavaScript
- **License**: MIT
- **Engineering Health**: A+ (93/100 · Maintenance 35/35 · Adoption 18/25 · Releases 20/20 · License 20/20)
- **Latest Release**: v0.16.0 (2026-11-25) — https://github.com/nicobailon/visual-explainer/releases
- **Review Snapshot**: 2026-12-02
- **Deployment / Stack Signals**: MCP
- **Momentum**: 11,405 ★ total (+23 24h / +112 7d) · 713 forks
- **When to Use**: Best for: Engineering teams that want coding agents to turn substantial diffs, design decisions, or state-machine behavior into browser-ready artifacts for review. Skip if: You only need a small diagram maintained in Markdown, must deliver a fully editable PowerPoint deck, or require review findings to be verified automatically against source code.

## Overview
```text
### Architecture & Core Mechanics
Visual Explainer pairs an agent authoring skill with an optional local Node.js MCP server. Under `plugins/visual-explainer/`, `SKILL.md`, command prompts, and reference files guide authoring; `kit/` holds shared CSS and scripts, the renderer, page checks, and vendored Pele for Mermaid. The agent writes `filename.src.html` against the kit, and the renderer produces a self-contained HTML page. Keeping the source makes small revisions possible without rebuilding the explanation from scratch.

The package exposes `visual-explainer-mcp`, `visual-explainer-pptx`, and `visual-explainer-video` as separate executables. The MCP executable uses local stdio and provides `prepare`, `render`, prompt templates, and read-only skill resources. Pi also exposes `prepare` and `render` through its native `visual_explainer` tool in `extension.ts`. The manifest lists `@modelcontextprotocol/server`, `zod`, `node-html-parser`, `pptxgenjs`, `@earendil-works/pi-coding-agent`, and `playwright-core`; the basic skill workflow does not require running the MCP server.

### Key Capabilities & Differentiators
The skill produces browser-based architecture diagrams, diff reviews, comparisons of requirements against plans, project recaps, data tables, and slide decks. A visual plan can put decisions and suggested defaults next to the diagram, giving reviewers a response they can paste back into the agent. State-machine exploration can start from a reducer or transition function, surface reachable states that were not diagrammed, flag events that never fire and dead ends, and replay rule violations step by step.

With Chrome and `playwright-core` available, the page checker looks for issues such as overlapping text, lines crossing labels, and undersized text on mobile, then gives the agent a full-page screenshot for inspection. For delivery outside the browser, the PPTX utility handles simple HTML decks as a static export. The video renderer records video decks frame by frame to 1080p MP4, with narration when a speech API key is configured and captions otherwise.

### Trade-offs & Limitations
Compared with writing Mermaid directly in Markdown, Visual Explainer is better suited to a review that needs diagrams, tables, and narrative to work together, especially when readers need a step-by-step replay. Direct Mermaid is simpler when the diagram definition itself is the deliverable and should be reviewed as a small text change. For a presentation that colleagues must edit in PowerPoint, authoring natively avoids a conversion boundary: the exported PPTX is static and best-effort, while HTML remains the source of truth for visual fidelity.

Self-contained HTML makes browser handoff straightforward, but automatic opening depends on host permissions, browser access, and sandbox rules. Results also vary with the authoring model. Browser checks can catch visual defects, not establish that a diagram or diff summary is correct. Review generated content against the underlying code or plan before relying on it. MIT licensing permits commercial use and redistribution subject to its notice requirements.

### Hardware & Deployment Guide
Start with the skill if you only need browser-ready pages: normal use has no build step and needs a compatible agent and browser. Claude Code has a marketplace plugin, Pi has a native package integration, and Codex, OpenCode, and Cursor can load the skill from their respective directories. For MCP, configure the host to launch the installed `visual-explainer-mcp` executable over stdio, or run `plugins/visual-explainer/mcp/server.mjs` from a checkout after installing Node dependencies. The default output directory is `~/.agents/diagrams/`; native Pi supports `visualExplainer.outputDir`, and both Pi and MCP accept a nonblank `VISUAL_EXPLAINER_OUTPUT_DIR`.

Provision Chrome and `playwright-core` for browser checks, and add ffmpeg for local MP4 export. Narration is the optional speech API path; base rendering does not require it. The release sequence shows where the tooling has matured: v0.14.0 added browser-based layout checks, v0.15.0 added state-machine exploration from code, and v0.16.0 added automatic figure numbering and desktop sidebar navigation for sections and subsections.
```

## Key Capabilities
```text
- MCP integration: Local stdio exposes `prepare` and `render` alongside prompt templates and read-only skill resources.
- Artifact pipeline: The renderer keeps an editable `.src.html` file alongside the self-contained HTML deliverable.
- State-machine analysis: Reducer or transition-function exploration can surface dead ends and replay rule violations.
- Browser validation: Chrome and `playwright-core` support visual checks for overlaps, obstructed labels, and undersized mobile text.
- Long-form navigation: Automatic figure numbering and a desktop section sidebar help keep growing documents navigable.
- Export paths: PPTX is a best-effort static handoff; the local video renderer records frame by frame to 1080p MP4.
```

## Quick Start / Clone
```bash
curl -fsSL https://raw.githubusercontent.com/nicobailon/visual-explainer/main/install-pi.sh | bash
```
