gitstat

Crates.iogitstat
lib.rsgitstat
version0.1.0
created_at2025-09-06 15:46:45.074638+00
updated_at2025-09-06 15:46:45.074638+00
descriptionDisplay GitHub activity schema for any user - Terminal-adaptive CLI with beautiful blue theme
homepagehttps://github.com/nathbns/gitstat
repositoryhttps://github.com/nathbns/gitstat
max_upload_size
id1827204
size70,219
Nathan Ben Soussan (nathbns)

documentation

README

GitStat

A beautiful, terminal-adaptive CLI tool to display GitHub activity schemas for any user.

GitStat Demo

Features

  • Beautiful dark blue theme - Professional color scheme
  • Terminal-adaptive - Automatically adjusts to your terminal size
  • Real GitHub data - Uses GitHub's GraphQL API for accurate contributions
  • Fast & lightweight - Built in Rust for maximum performance
  • Simple usage - Just provide a username and token

Installation 🔧

From crates.io (Recommended)

cargo install gitstat

From source

git clone https://github.com/nathbns/gitstat
cd gitstat
cargo install --path .

Usage

Basic usage

# Set your GitHub token (get one at https://github.com/settings/tokens)
export GITHUB_TOKEN=your_token_here
gitstat username

With token as argument

gitstat --token your_token_here username

Examples

# View your own contributions
gitstat nathbns

# View any public user's contributions  
gitstat octocat

GitHub Token

You need a GitHub personal access token to use this tool:

  1. Go to https://github.com/settings/tokens
  2. Click "Generate new token (classic)"
  3. Select only the read:user permission
  4. Copy the token and use it with the --token flag or GITHUB_TOKEN environment variable

Output

GitStat displays:

  • User information (name, repos, followers, following)
  • Beautiful contribution calendar with color-coded activity levels
  • Statistics (active days, max contributions per day, averages)
  • Terminal-adaptive layout that works on any screen size

Color Scheme

  • Dark gray: No contributions
  • Dark blue: 1-2 contributions
  • Medium blue: 3-5 contributions
  • Bright blue: 6-10 contributions
  • Very bright blue: 11+ contributions

Requirements

  • Rust 1.70+ (for installation from source)
  • GitHub personal access token
  • Terminal with color support

License

MIT License - see LICENSE file for details.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Commit count: 8

cargo fmt