Code snippets in your terminal.
Nap is a code snippet manager designed for terminal users who want to quickly save, organize, and retrieve code snippets without leaving their command line environment. It combines the convenience of a command-line interface for rapid snippet creation and retrieval with a comprehensive text-based user interface for browsing and managing your snippet collection.
The tool excels at making snippet management seamless in terminal workflows. You can pipe code directly from files, URLs, or GitHub gists into nap for instant saving, then later retrieve snippets using fuzzy search or direct name matching. The interactive TUI provides a full-featured management experience with syntax highlighting, folder organization, and comprehensive editing capabilities.
Nap is ideal for developers who live in the terminal and want to maintain a personal library of useful code snippets, configuration files, or command examples. It's particularly valuable for those who frequently work with multiple programming languages and need a centralized, searchable repository of reusable code fragments that integrates naturally with their existing terminal-based workflow.
# via Go
go install github.com/maaslalani/nap@main
# via Binary
Download from releases page


