{"name":"Freeze: Generate Stunning Images of Code and Terminal Output","description":"Freeze is a powerful command-line tool developed by Charmbracelet that allows users to generate beautiful images of code snippets and terminal output. It supports various output formats like PNG, SVG, and WebP, and offers extensive customization options for themes, fonts, and window styles. This makes Freeze an excellent utility for creating high-quality visuals for documentation, presentations, or social media.","github":"https://github.com/charmbracelet/freeze","url":"https://osrepos.com/repo/charmbracelet-freeze","source":"osrepos.com","sourceDescription":"This repository profile is provided by osrepos.com, an open source repository discovery platform.","repositoryProfile":"https://osrepos.com/repo/charmbracelet-freeze","generatedFor":"open source discovery and AI-assisted research","markdown":"https://osrepos.com/repo/charmbracelet-freeze.md","json":"https://osrepos.com/repo/charmbracelet-freeze.json","topics":["Go","CLI","Developer Tools","Code Screenshots","Terminal Output","Utility","Open Source"],"keywords":["Go","CLI","Developer Tools","Code Screenshots","Terminal Output","Utility","Open Source"],"stars":null,"summary":"Freeze is a powerful command-line tool developed by Charmbracelet that allows users to generate beautiful images of code snippets and terminal output. It supports various output formats like PNG, SVG, and WebP, and offers extensive customization options for themes, fonts, and window styles. This makes Freeze an excellent utility for creating high-quality visuals for documentation, presentations, or social media.","content":"## Introduction\n\nFreeze, a powerful command-line tool from Charmbracelet, empowers developers to effortlessly generate stunning images of code snippets and terminal output. Whether you need to create visuals for documentation, presentations, or social media, Freeze provides a highly customizable solution. It supports various output formats including PNG, SVG, and WebP, ensuring flexibility for different use cases. With features like syntax highlighting, interactive mode, and extensive styling options, Freeze makes capturing and sharing your code and terminal interactions both simple and visually appealing.\n\n## Installation\n\nGetting started with Freeze is straightforward. You can install it using popular package managers or directly from source:\n\n*   **macOS or Linux (Homebrew):**\n    sh\n    brew install charmbracelet/tap/freeze\n    \n*   **Arch Linux (yay):**\n    sh\n    yay -S freeze\n    \n*   **Nix:**\n    sh\n    nix-env -iA nixpkgs.charm-freeze\n    \n*   **Go:**\n    sh\n    go install github.com/charmbracelet/freeze@latest\n    \n*   **Direct Download:**\n    Packages in Debian and RPM formats, as well as binaries for Linux, macOS, and Windows, are available on the official [releases page](https://github.com/charmbracelet/freeze/releases).\n\n## Examples\n\nFreeze offers simple commands to generate images of both code and terminal output.\n\n### Generate an image of code\n\nTo capture a code file, simply pass it as an argument:\n\nsh\nfreeze artichoke.hs -o artichoke.png\n\n\n### Generate an image of terminal output\n\nYou can also capture the ANSI output of any terminal command using the `--execute` flag:\n\nbash\nfreeze --execute \"eza -lah\"\n\n\nFreeze is highly customizable, allowing you to adjust themes, fonts, borders, shadows, and more, either through command-line flags or an interactive TUI.\n\n## Why Use Freeze?\n\nFreeze stands out as an essential tool for several reasons:\n\n*   **High-Quality Visuals:** Create professional-looking images of your code and terminal sessions, perfect for blogs, tutorials, and presentations.\n*   **Extensive Customization:** Tailor every aspect of your screenshots, including syntax highlighting themes, font families and sizes, line numbers, window controls, background colors, borders, padding, margin, and shadows.\n*   **Interactive Mode:** Easily configure your desired styles with an intuitive interactive terminal user interface (TUI), which saves your preferences for future use.\n*   **Multiple Output Formats:** Export your images as SVG, PNG, or WebP, providing flexibility for different platforms and needs.\n*   **Capture Terminal Output:** Beyond static code, Freeze can execute commands and capture their ANSI output, making it ideal for demonstrating CLI tools.\n*   **TUI Screenshot Integration:** Seamlessly integrate with `tmux` to capture complex terminal user interfaces, showcasing interactive applications with ease.\n*   **Open Source:** Being an open-source project from Charmbracelet, it benefits from community contributions and transparency.\n\n## Links\n\n*   **GitHub Repository:** [https://github.com/charmbracelet/freeze](https://github.com/charmbracelet/freeze)","metrics":{"detailViews":5,"githubClicks":3},"dates":{"published":null,"modified":"2025-11-14T08:01:11.000Z"}}