DEV Community

Cover image for I built a CLI to see my real GitHub language stats – does something like this already exist?
Max Friedmann
Max Friedmann

Posted on

I built a CLI to see my real GitHub language stats – does something like this already exist?

I recently created my new online CV and wanted to show all of my contributions — also the ones from private repositories. My GitHub profile looked nearly empty, even though I'd been coding professionally for years. Most of that work just happened to live in private repos.

Example of how the output data can be visualized — this chart is from my CV app, built on top of the JSON data this tool produces

That's when I realized: GitHub's profile is basically useless for showing your real activity as a professional developer. So I started looking for a tool that could compute honest, per-language stats from all my commits — public and private. I couldn't find one. So I built it: github-lang-stats.

What it does

It scans every commit you've personally authored on GitHub — including private repos — and calculates how many lines you've changed per programming language. The result is an honest, verifiable snapshot of your actual work.

npx github-lang-stats --token=<your-github-pat>
Enter fullscreen mode Exit fullscreen mode

That's it. No install needed. Just a GitHub Personal Access Token.

Why not just use the GitHub profile?

  • No language breakdown — GitHub shows total contributions, not which languages you used
  • Private repos are invisible — Most (of my) professional work happens in private repos, which don't show up at all

Try it out!

👉 github-lang-stats on npm

I'd love to hear your thoughts:

  • Did you know of a similar tool? (I couldn't find one!)
  • Would you use this for your portfolio or resume?
  • What features would you want to see?

Drop a comment below — all feedback, issues, and PRs are welcome on GitHub! ⭐

Top comments (2)

Collapse
 
reposweeper profile image
RepoSweeper

Just starred

Collapse
 
reposweeper profile image
RepoSweeper

Super cool. Want to collaborate? I also built Git utilities!

Either way really cool!