Skip to content
ux-visualizer logo

UX Visualizer

ux-visualizer

Analyzes source code or requirements to generate high-fidelity screen and state transition diagrams. Specialized in SPA state mapping.

SKILL.md

Full skill instructions

ux-visualizer

Capabilities

  • High-Fidelity SPA Mapping: Generates full-screen representations using Mermaid HTML-labels, capturing layout, colors, and component positioning.
  • State-Based Transitioning: Visualizes transitions triggered by user actions (hover, scroll, click) rather than just URL changes.
  • Style Extraction: Maps CSS themes and MUI properties directly into diagram styles.
  • Image Integration: Renders diagrams to SVG/​PNG via diagram-renderer.

Arguments

NameTypeDescription
--inputstringPath to source code directory or requirements file.
--typestring'screen' (journey), 'state' (logic), or 'component' (structure).
--fidelitystring'low' (box-and-line) or 'high' (HTML layout). Default: 'high'.
--outputstringPath to save the Mermaid text file.
--renderbooleanIf true, renders to SVG using diagram-renderer.

Usage

# Generate a high-fidelity screen flow from a React SPA
node scripts/​cli.cjs run ux-visualizer --input src/​App.jsx --type screen --fidelity high --render