ghgrab is a terminal-based repository browsing and downloading utility written in Rust using Tokio and Ratatui. It allows developers to retrieve individual files and directories from GitHub, GitLab, Codeberg, Gitea, and Forgejo without cloning complete repositories. Its interactive interface provides fuzzy searching, hierarchical navigation, and multiple file selection. Users can preview source code, text documents, and supported images directly within the terminal. GitHub integration supports large file storage resolution and release asset downloading with automatic platform detection. Customizable themes and download destinations accommodate individual workflow preferences. The application also provides JSON-based automation commands and MCP server integration for AI coding assistants.
Features
- Selective repository file downloading from GitHub, GitLab, Codeberg, Gitea, and Forgejo
- Interactive terminal navigation with fuzzy searching and batch file selection
- Integrated source code, text document, and image previews within the terminal
- GitHub release asset downloading with architecture-aware selection and archive extraction
- GitHub Large File Storage support with configurable authentication and download destinations
- MCP server integration and structured JSON commands for AI-assisted automation workflows