Onefetch is a command-line tool that displays project information and code statistics for a local Git repository directly in your terminal.
The tool solves the problem of quickly understanding a repository's composition and history without opening a browser or running multiple commands. It works completely offline by reading Git metadata and analyzing the codebase to extract language statistics, author information, and project details. The output is displayed as a formatted summary in the terminal, with the ability to customize which information appears and how it is styled.
Onefetch suits developers who want a fast, lightweight way to inspect repository metadata from the command line. It works across Linux, macOS, and Windows. The tool is particularly useful for those who spend time in terminals and want to avoid context-switching to graphical tools. It supports output in multiple formats including JSON and YAML for integration into scripts or other tools. By default it filters out prose and data languages, showing only programming and markup languages, though this behavior can be adjusted with command-line flags. The tool also handles author deduplication through Git's mailmap mechanism when the same person has committed under different names or emails.
Development on the project shows consistent engagement with language support expansion. The tool currently recognizes a broad range of programming languages, and the maintainers actively add support for new languages when requested through issues. Contributions are welcomed and the project maintains documentation for those wanting to participate.