Markdown pager with embedded gum.jsx visualizations for terminals supporting the Kitty graphics protocol.
npm install
npm linkgummy document.mdOr pipe from stdin:
cat document.md | gummyEmbed gum.jsx visualizations using fenced code blocks:
<Plot xlim={[0, 2*pi]} ylim={[-1.5, 1.5]} aspect={2} margin>
<SymLine fy={sin} stroke={blue} />
</Plot>
Specify rendering options in brackets after the language tag. Note that these aren't displayed by GitHub, you have to look at the actual file to see them. But this file will render properly with gummy.
<Circle fill={blue} />
<Circle fill={red} />
<Circle fill={green} />
<Circle fill={purple} />
Options:
width- max width in pixelsheight- max height in pixelstheme-dark(default) orlight
- Terminal with Kitty graphics protocol support (kitty, ghostty, foot, etc.)
- JavaScript runtime (node, bun, etc.)