gifgrep
Search GIF providers with CLI/TUI, download results, and extract stills/sheets.
When & Why to Use This Skill
gifgrep is a high-performance CLI and TUI utility designed to streamline the process of searching, previewing, and downloading GIFs from major providers like Giphy and Tenor. It goes beyond simple search by allowing users to extract specific still frames or generate comprehensive frame sheets (grids), making it an essential tool for developers and creators who need to manage animated assets efficiently from the terminal.
Use Cases
- 1. Documentation and Pull Requests: Generate frame sheets (PNG grids) from GIFs to provide a static, easy-to-review overview of animations within technical documentation or GitHub PRs.
- 2. Rapid Content Discovery: Use the Terminal User Interface (TUI) to quickly browse and preview GIFs from Giphy and Tenor without leaving the command line, speeding up social media and communication workflows.
- 3. Design Asset Extraction: Extract high-quality still frames at specific timestamps from animated GIFs for use in UI/UX mockups, blog posts, or static presentations.
- 4. Automated Media Pipelines: Integrate gifgrep into automated scripts using its JSON output and CLI flags to programmatically find, download, and process visual content based on specific search queries.
| name | gifgrep |
|---|---|
| description | Search GIF providers with CLI/TUI, download results, and extract stills/sheets. |
| homepage | https://gifgrep.com |
| metadata | {"clawdbot":{"emoji":"🧲","requires":{"bins":["gifgrep"]},"install":[{"id":"brew","kind":"brew","formula":"steipete/tap/gifgrep","bins":["gifgrep"],"label":"Install gifgrep (brew)"},{"id":"go","kind":"go","module":"github.com/steipete/gifgrep/cmd/gifgrep@latest","bins":["gifgrep"],"label":"Install gifgrep (go)"}]}} |
gifgrep
Use gifgrep to search GIF providers (Tenor/Giphy), browse in a TUI, download results, and extract stills or sheets.
GIF-Grab (gifgrep workflow)
- Search → preview → download → extract (still/sheet) for fast review and sharing.
Quick start
gifgrep cats --max 5gifgrep cats --format url | head -n 5gifgrep search --json cats | jq '.[0].url'gifgrep tui "office handshake"gifgrep cats --download --max 1 --format url
TUI + previews
- TUI:
gifgrep tui "query" - CLI still previews:
--thumbs(Kitty/Ghostty only; still frame)
Download + reveal
--downloadsaves to~/Downloads--revealshows the last download in Finder
Stills + sheets
gifgrep still ./clip.gif --at 1.5s -o still.pnggifgrep sheet ./clip.gif --frames 9 --cols 3 -o sheet.png- Sheets = single PNG grid of sampled frames (great for quick review, docs, PRs, chat).
- Tune:
--frames(count),--cols(grid width),--padding(spacing).
Providers
--source auto|tenor|giphyGIPHY_API_KEYrequired for--source giphyTENOR_API_KEYoptional (Tenor demo key used if unset)
Output
--jsonprints an array of results (id,title,url,preview_url,tags,width,height)--formatfor pipe-friendly fields (e.g.,url)
Environment tweaks
GIFGREP_SOFTWARE_ANIM=1to force software animationGIFGREP_CELL_ASPECT=0.5to tweak preview geometry