{"name":"termsnap: Capture Beautiful Terminal Screenshots, Videos, and GIFs","description":"termsnap is a powerful command-line tool that transforms terminal command output into stunning screenshots, animated GIFs, and videos. It offers extensive customization, including local font and emoji support, various output formats, and theme options. This tool is ideal for developers looking to create high-fidelity visual documentation for their CLI projects.","github":"https://github.com/jinghaihan/termsnap","url":"https://osrepos.com/repo/jinghaihan-termsnap","source":"osrepos.com","sourceDescription":"This repository profile is provided by osrepos.com, an open source repository discovery platform.","repositoryProfile":"https://osrepos.com/repo/jinghaihan-termsnap","generatedFor":"open source discovery and AI-assisted research","markdown":"https://osrepos.com/repo/jinghaihan-termsnap.md","json":"https://osrepos.com/repo/jinghaihan-termsnap.json","topics":["capture","cli","gif","screenshot","terminal","video","TypeScript","Developer Tools"],"keywords":["capture","cli","gif","screenshot","terminal","video","TypeScript","Developer Tools"],"stars":null,"summary":"termsnap is a powerful command-line tool that transforms terminal command output into stunning screenshots, animated GIFs, and videos. It offers extensive customization, including local font and emoji support, various output formats, and theme options. This tool is ideal for developers looking to create high-fidelity visual documentation for their CLI projects.","content":"## Introduction\n\ntermsnap is an innovative command-line interface (CLI) tool designed to transform your terminal output into stunning visual assets. Whether you need high-quality screenshots, animated GIFs, or even videos of your terminal sessions, termsnap provides a flexible and powerful solution. It stands out with its ability to perfectly render local fonts and emojis, support interactive terminal sessions, and offer extensive theme customization. Built with a Go-based terminal output proxy and web rendering technology, termsnap ensures pixel-perfect fidelity for all your captures.\n\n## Installation\n\nGetting started with termsnap is straightforward using `npx`. You can run it directly without a global installation:\n\nsh\nnpx termsnap \"lolcat -f <(figlet -f banner3 termsnap)\"\n\n\nThis command will execute termsnap and capture the output of the `lolcat` and `figlet` commands, demonstrating its immediate utility.\n\n## Examples\n\ntermsnap offers a wide range of output formats and customization options. Here are some common usage examples:\n\n*   **Browser Preview:** Open an animated preview directly in your browser.\n    sh\n    npx termsnap \"command\" --animate --open\n    \n*   **Save as HTML File:** Generate a standalone HTML file with embedded styling.\n    sh\n    npx termsnap \"command\" --html\n    \n*   **Save as Screenshot (PNG):** Create a high-quality PNG image of your terminal output.\n    sh\n    npx termsnap \"command\" --png\n    \n*   **Save as Video (MP4):** Record your terminal session as an MP4 video at a specified frame rate.\n    sh\n    npx termsnap \"command\" --mp4 --fps 60\n    \n*   **Save as Animated GIF:** Produce an optimized GIF with customizable frame rate and scale.\n    sh\n    npx termsnap \"command\" --gif --gif-fps 20 --gif-scale 720\n    \n*   **Custom Theme and Decoration:** Apply a specific theme and window decorations to your output.\n    sh\n    npx termsnap \"command\" --open --theme \"vitesse-light\" --decoration\n    \n\n## Why Use It\n\nThe motivation behind termsnap stems from the limitations of existing terminal screenshot tools, particularly regarding local font and emoji support, and the ability to capture interactive sessions with perfect fidelity. termsnap addresses these challenges by providing a tool that truly feels like recording your terminal, ensuring every detail, from custom fonts to animated typing effects, is captured accurately. It's an invaluable asset for developers, technical writers, and anyone needing to create professional-grade visual documentation for their command-line tools and projects.\n\n## Links\n\n*   [termsnap GitHub Repository](https://github.com/jinghaihan/termsnap)\n*   [termsnap on npm](https://www.npmjs.com/package/termsnap)","metrics":{"detailViews":5,"githubClicks":4},"dates":{"published":null,"modified":"2025-12-05T12:01:24.000Z"}}