GitHub Code Stats

By aakash · 3 months ago · 10+ installs

Displays lines of code counters in the GitHub sidebar

Key Highlights

  • Shows total lines of code in the GitHub repository sidebar when available
  • Displays a colored language distribution bar for the repository
  • Lists languages with percentages and per-language LOC counts
  • Works on GitHub repository pages and updates as you navigate between repos

Details

This tweek adds a Code Statistics section to GitHub repository pages. In the sidebar, it shows the repository's total lines of code when available, along with a colored progress bar that represents each language's share of the codebase.

It also lists the detected languages with percentages and line counts, making it easier to scan a repository's composition without leaving GitHub. If stats cannot be loaded, the sidebar shows a clear message and offers a retry option.

Runs on

1 site

github.com

Developer

Tweek Code

279 lines ·

PermissionsThis tweek may access the following

Network Access

Can send requests to external websites

GitHub Code Stats Sidebar for Repository Pages | Tweeks