Weekly Commits

GNOME Extension to see your weekly GitHub commits in top bar

May 14, 2025    #linux   #gnome   #javascript   #extension  
waves

Weekly Commits GNOME Extension — Visualize Your GitHub Activity Right from the Top Bar

Why I Built This

As developers, we spend hours coding, committing, and pushing changes — but rarely do we take a moment to reflect on our consistency. While GitHub contribution graphs are nice, they live on a webpage, buried behind a few clicks.

I wanted something more immediate and minimal. I wanted to see my GitHub commit activity at a glance — right from my GNOME desktop environment. So I built Weekly Commits, a GNOME Shell extension that brings your GitHub commit stats to your system’s top bar.

Weekly Commits Screenshot

What It Does

Weekly Commits is a lightweight, customizable GNOME extension that shows your last seven days of GitHub commits as colored boxes in the top panel — just like a mini contribution graph, always visible.

Key Features:

Get it on GNOME Extensions

How It Works

The extension uses GitHub’s REST API to fetch your public and private commit activity from all repositories you own. It visualizes this data using seven colored boxes, representing the number of commits made on each day of the past week.

Here’s a high-level overview of how it works under the hood:

  1. Authentication: The user enters their GitHub username and a Fine-Grained PAT (with read access to all repositories) through the GUI settings.
  2. Data Fetching: At a regular interval (default: hourly), the extension queries the GitHub API to get recent commit data.
  3. UI Update: The extension parses the data and updates the top bar with a simple, color-coded visual of your daily contributions.
  4. Popup Info: Clicking the indicator shows a daily breakdown in a popup.

Installation Guide

If you prefer the manual route, here’s how to get started:

git clone https://github.com/funinkina/weekly-commits
mv weekly-commits ~/.local/share/gnome-shell/extensions/

Then restart GNOME Shell (Alt + F2, then r and Enter), and enable the extension:

gnome-extensions enable weekly-commits@funinkina.is-a.dev

Once enabled, open the preferences menu to set your GitHub username and personal access token.

Make sure to generate a Fine-Grained PAT with access to all repositories. You can create one here .

Tech Stack: Under the Hood

Building a GNOME Shell extension requires working with the GNOME platform’s native libraries and conventions. Here’s a breakdown of what powers Weekly Commits:

Combining these technologies gives the extension a tight integration with GNOME Shell — from rendering UI in the panel to handling network calls and persistent settings.

Use Cases

Here are a few ways Weekly Commits can improve your developer workflow:

Roadmap

The extension is already quite functional, but there’s always room for more polish. Here are some features planned for future releases:

Feel free to contribute to the GitHub repo or suggest features and improvements.

Final Thoughts

If you use GNOME and care about your GitHub activity, Weekly Commits offers a simple, elegant way to stay informed and motivated — right from your desktop.

You can install it from the GNOME Extensions website or build it from source on GitHub . Contributions, bug reports, and stars are always welcome!

If you like my work, consider supporting me

Buy Me A Coffee Badge



Next: RSync Backup Script