A Chrome extension that displays your recent GitHub contribution activity and current streak on (almost) every webpage you visit.
Duolingo has me in a chokehold. I downloaded that app 123 days ago. My current streak is 123 days! Turns out a bit of gamification and visual prompting will force my chaotic neurodivergent *** into consistency. This app is the first step in me trying to implement those things into my developer journey.
A small Google Chrome extension that displays your last 28 days Github Contributions graph on a small bar showing up on almost every website. It's still buggy, but even when it doesn't look perfect (or show up at all for that matter due to individual website's settings), it still does the job of giving a more persistent visual prompt reminding one to be consistent.
- Displays your GitHub contribution activity for the last 28 days
- Shows your current contribution streak
- Appears as a bar at the top of every webpage
- Updates daily based on your GitHub activity
- Clone this repository or download it as a ZIP file and extract it.
https://github.com/k-dun/GH-Streak.git
-
Open Google Chrome and navigate to
chrome://extensions/ -
Enable "Developer mode" by toggling the switch in the top right corner.
-
Click "Load unpacked" and select the directory containing the extension files.
-
The extension should now be installed and active in your Chrome browser.
Before using the extension, you need to set your GitHub username:
- Open the
background.jsfile. - Locate the following line:
fetch("https://github.com/users/YOUR_USERNAME/contributions")- Replace YOUR_USERNAME with your actual GitHub username.
- Save the file and reload the extension in Chrome.
- manifest.json: Extension configuration file
- background.js: Handles fetching contribution data from GitHub
- content.js: Processes the contribution data and creates the display bar
- styles.css: Styles for the contribution bar and squares
- README.md: This file
To modify or extend this extension:
Make your changes to the relevant files. If you modify manifest.json, you may need to reload the extension in Chrome. For changes to other files, you can usually just refresh the webpage to see updates.
To add new features, focus on modifying content.js. For style changes, update styles.css. If you need to change how data is fetched, modify background.js.
If the bar appears, but clearly negatively affects the website you are currently on, just press the 'Hide' button on the top left. If the bar doesn't appear, check the console for error messages. Ensure your GitHub username is correctly set in background.js. If changes don't appear, try reloading the extension in Chrome.
If it still doesn't appear on certain websites take one of these two paths:
- Check if the website has a strict Content Security Policy.
- Ensure the extension has permission to run on that website.
- Check the browser console for any error messages.
- Try disabling other extensions to rule out conflicts.
- If the issue persists on a specific site, you can report it in the Issues section of this repository, but prior to doing that check Path 2.
- It is what it is. For example it displays very glitchy on Twitter, but seeing as I should spend less time on it anyway, it's a trade-off and a sacrifice I am personally willing to accept.
Contributions are welcome! Please feel free to submit a Pull Request, fork it, clone it or copy and paste. For more details check the below License.
Do as you will! I am a big open-source fan anyway.

