Skip to content

CompendiumLabs/gummy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gummy

Markdown pager with embedded gum.jsx visualizations for terminals supporting the Kitty graphics protocol.

Install

npm install
npm link

Usage

gummy document.md

Or pipe from stdin:

cat document.md | gummy

Gum Code Blocks

Embed 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>

Options

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 pixels
  • height - max height in pixels
  • theme - dark (default) or light

Requirements

  • Terminal with Kitty graphics protocol support (kitty, ghostty, foot, etc.)
  • JavaScript runtime (node, bun, etc.)

About

Terminal environment for `gum.jsx`

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published