VHS is a tool for writing terminal GIFs as code, aimed at people who want to demo or integration-test CLI tools. You write a .tape file containing commands that VHS performs on a virtual terminal, then feed the file to VHS to produce a GIF. It can also record tape files from your terminal actions and publish GIFs for sharing.
Install & use
Install
brew install vhs
Usage
vhs demo.tape
charmbracelet/vhs is a third-party open-source project, listed here from public GitHub data. ImuTechz did not write it and has not reviewed or security-audited its code. Read the source and its permissions before you install or run it.
Features
Write .tape files with commands like Output, Set, Type, Sleep and Enter
Generate GIFs from tape files
Record tape files from your terminal actions with vhs record
Publish GIFs to vhs.charm.sh with vhs publish
Built-in SSH server via vhs serve
View documentation on the command line with vhs manual
Best for
Demoing CLI tools with terminal GIFs
Integration testing of command-line tools
Recording terminal sessions as reusable tape files
Sharing terminal recordings with colleagues
Pros
Terminal GIFs are written as code in .tape files
Can generate tape files from your terminal actions
Includes a built-in SSH server for self-hosting
Docker image available with dependencies included
Cons
Requires ttyd and ffmpeg installed and available on your PATH
Publishing GIFs relies on the vhs.charm.sh servers