$ gifgrep cats -m 3
https://media.giphy.com/.../cat-typing.gif
https://media.giphy.com/.../cat-yes.gif
https://media.giphy.com/.../cat-stare.gif
$ gifgrep tui "office handshake"
โโ gifgrep โโโโโโโโโโโโโโโโโโโโโโโโ
โ /office handshake โ
โ โธ Pam & Jim handshake.gif โ
โ The Office handshake meme.gif โ
โ Schrute approves.gif โ
โ [animated preview here] โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
#Try it
brew install steipete/tap/gifgrep
gifgrep cats # plain on TTY, URLs in pipes
gifgrep tui cats # interactive browser with inline previews
--json prints a stable envelope on stdout. Human progress and warnings go to stderr so pipes stay clean.
#What gifgrep does
- One binary, two ergonomics.
gifgrep <query>for shell pipelines;gifgrep tuifor arrow-key browsing with animated inline previews. - Multi-provider. GIPHY (preferred when keyed), KLIPY, or
autowhich picks the best available. - Inline previews that actually animate. Kitty graphics for Kitty/Ghostty, OSC 1337 for iTerm2 โ see Previews.
- Local frame extraction.
stillpulls one frame;sheetlays out a contact sheet of N frames, no provider required. - Pipe-shaped output. Plain on TTY, URL-per-line in pipes, plus
--format md|tsv|comment|url|jsonfor the rest. - Quiet by default, loud on demand.
-v,-vv,-q,--no-colorif you really want.
#Pick your path
- Trying it out. Install โ Quickstart. Two minutes from
brew installto your first GIF in stdout. - Wiring it into shell scripts. Search for the CLI surface, JSON output for structured data, Providers to choose a backend.
- Browsing visually. TUI for the keyboard-driven browser, Previews for the terminal protocol details.
- Cutting frames out of a GIF.
stillfor one frame,sheetfor a contact sheet. - Looking up a flag. Every command has its own page โ start at Commands.
#Project
It's Go. It's tiny. It cleans up after itself. (Or at least it tries.)
- Source: github.com/steipete/gifgrep
- Changelog: CHANGELOG.md
- License: MIT
- GIFs courtesy of GIPHY and KLIPY. Not affiliated with either.
If you somehow manage to grep the wrong GIF: that's on you. โค๏ธ