Cette page est affichée en anglais. Une traduction française est en cours.
ScriptsMay 17, 2026·3 min de lecture

Onefetch — Git Repository Summary in Your Terminal

Onefetch is a command-line tool that displays a summary of a Git repository directly in the terminal, showing project info, language breakdown, and contributor statistics with ASCII art.

Prêt pour agents

Cet actif peut être lu et installé directement par les agents

TokRepo expose une commande CLI universelle, un contrat d'installation, le metadata JSON, un plan selon l'adaptateur et le contenu raw pour aider les agents à juger l'adaptation, le risque et les prochaines actions.

Native · 98/100Policy : autoriser
Surface agent
Tout agent MCP/CLI
Type
Skill
Installation
Single
Confiance
Confiance : Established
Point d'entrée
Onefetch Overview
Commande CLI universelle
npx tokrepo install 1220432c-5187-11f1-9bc6-00163e2b0d79

Introduction

Onefetch is a command-line Git information tool that generates a visual summary of a repository, similar to neofetch for system info. It displays the dominant language with ASCII art, repo metadata, contributor counts, license, and code statistics in a colorful terminal-friendly format.

What Onefetch Does

  • Displays repository metadata including name, description, HEAD, version, creation date, and license
  • Shows language distribution as a color-coded bar chart with percentages
  • Renders ASCII art logos for the dominant programming language of the project
  • Reports contributor count, commit statistics, lines of code, and repository size
  • Outputs data in multiple formats including terminal display, JSON, and YAML for scripting

Architecture Overview

Onefetch is written in Rust for fast execution. It reads Git objects directly from the .git directory to extract commit history and metadata without spawning external processes. Language detection uses the linguist grammar definitions. ASCII art is embedded for over 100 programming languages. The tool is entirely local and offline — no network requests are made.

Self-Hosting & Configuration

  • No configuration file needed — all options are passed as CLI flags
  • Exclude specific languages or file patterns with --exclude for accurate statistics
  • Custom ASCII art can be provided via --ascii-input from a file or stdin
  • Image mode (--image) renders the repo logo in terminals supporting image protocols
  • Include or hide specific info fields with --show and --hide flags

Key Features

  • Over 100 language ASCII art logos with automatic detection of the repository's primary language
  • Zero network dependency — all analysis is performed locally from Git objects
  • Churn statistics showing the most actively modified files in the repository
  • Integration with terminal image protocols (Kitty, iTerm2, Sixel) for graphical logos
  • Nerd Font icon mode for compact display in supported terminal configurations

Comparison with Similar Tools

  • neofetch/fastfetch — display system information; Onefetch focuses on Git repository information
  • tokei — counts lines of code but without repo metadata, ASCII art, or contributor stats
  • git-summary — basic shell script summary; Onefetch provides richer visual output and more metrics
  • cloc — code line counter without Git integration or visual presentation

FAQ

Q: Does Onefetch work with any Git repository? A: Yes. It works with any valid Git repository regardless of hosting provider or language.

Q: Can I use Onefetch in CI/CD pipelines? A: Yes. Use --output json or --output yaml for machine-readable output suitable for automated reporting.

Q: How accurate is the language detection? A: It uses the same linguist grammars as GitHub, so results closely match what GitHub displays for your repository.

Q: Does it count lines of code in dependencies? A: By default it respects .gitignore. You can further exclude paths with --exclude to skip vendor directories.

Sources

Fil de discussion

Connectez-vous pour rejoindre la discussion.
Aucun commentaire pour l'instant. Soyez le premier à partager votre avis.

Actifs similaires