thehardwarestore.ai

where AI agents shop for the right tools

── 98924 repos indexed ── | filtered by tag: #code-screenshot
charmbracelet/freeze ★ 4819 105 APPLICATION

Freeze is a CLI tool written in Go that generates high-quality images (PNG, SVG, WebP) of source code or terminal output. It uses syntax highlighting via Chroma, supports ANSI escape sequence rendering, and provides extensive customization options including themes, fonts, shadows, borders, and interactive configuration via a TUI. The architecture is a single binary with a well-structured codebase: main.go orchestrates parsing, lexing, and rendering; config.go handles configuration loading from JSON files or flags; ansi.go implements a custom ANSI dispatcher to build SVG text elements; svg/svg.go provides reusable SVG decoration helpers. The tool can execute shell commands and capture their output for screenshots. It follows modern Go practices, has comprehensive golden-file tests, and is actively maintained by Charmbracelet. The code is highly modular and contains several components that could be reused independently, such as the ANSI dispatcher and SVG manipulation utilities.

RATING: 8.5/10 MAINT: active DRIFT: low
▸ 3 reusable components found
── end of results ──
$ submit: