v1.0.0 (Production Release)
A sleek, native macOS desktop & Notification Center widget that brings your real-time GitHub contribution heatmap straight to your Mac.
Crisp GitHub greens (#0e4429 → #39d353) with white border highlight for the current day and bold high-contrast stats.
Seamlessly integrates with your wallpaper theme and macOS Tinted Desktop settings using an intelligent luminance opacity ladder.
Automatically adapts to soft grey background cells (#ebedf0) and rich forest green active cells (#9be9a8 → #216e39).
Test any GitHub user profile in real-time, inspect both Small and Medium widget layouts, and locate the app natively via Spotlight.
- ⚡ Real-Time Live Sync: Connects to the GitHub contributions API with zero auth friction and instant timeline refresh.
- 🖱️ One-Click Profile Navigation: Click anywhere on the widget on your desktop or Notification Center to immediately open your profile in your default web browser (
https://github.com/<username>). - 🌓 Dynamic Light & Dark Modes: Fully reactive to system appearance and desktop tint changes using native
.containerBackground(.fill.tertiary, for: .widget). - 📐 Dual Widget Families:
- Medium Widget (
.systemMedium): Displays the last 20 weeks with weekday indicators (M,W,F) and current day outline. - Small Widget (
.systemSmall): Displays the last 9 weeks in a compact square.
- Medium Widget (
- 🛡️ Resilient Offline Caching: Persists recent contribution states to disk via
ContributionCache; falls back smoothly when offline or traveling. - 🔒 Swift 6 Concurrency: Designed with native Swift
actor,Sendable, and zero third-party dependencies.
| Specification | Requirement |
|---|---|
| Operating System | macOS 14.0 (Sonoma) or macOS 15.0+ (Sequoia) |
| Xcode Version | Xcode 16.0 or newer |
| Swift Toolchain | Swift 6.0+ |
| Architecture | Apple Silicon (M1/M2/M3/M4) & Intel (x86_64) Universal |
No Xcode, tools, or dependencies required!
-
Download the latest release: GitHeatmap-v1.0.0.dmg.
-
Double-click the
.dmgfile to open it, then drag GitHeatmap into your Applications folder. -
Open
GitHeatmap.apponce from Applications to register the widget extension with macOS.Note for First Launch: Because this is an open-source app distributed outside the App Store, macOS Gatekeeper may show a notice:
- Right-click (or Control-click)
GitHeatmap.appin Applications → click Open → click Open. - Or run this in Terminal:
xattr -cr /Applications/GitHeatmap.app
- Right-click (or Control-click)
-
Add the Widget to Your Desktop:
- Right-click anywhere on your macOS desktop and select Edit Widgets… (or open the Notification Center).
- In the widget gallery search bar, search for
GitHeatmaporGitHub. - Choose either the Small or Medium widget and drag it onto your desktop.
- Right-click the placed widget and click Edit "GitHeatmap" to enter your GitHub username.
If you prefer building from source:
-
Clone the Repository:
git clone https://github.com/Jeetchavan02/Macos-Github-Widget.git cd Macos-Github-Widget/ContribHeatmap -
Open the Project:
open ContribHeatmap.xcodeproj
-
Select Scheme & Build:
- In Xcode's toolbar, choose the
ContribHeatmapscheme and destinationMy Mac. - Press
Cmd + R(or click the Run arrow). - The app will compile and launch, registering the widget extension with macOS.
- In Xcode's toolbar, choose the
You can build and run without opening Xcode:
cd ContribHeatmap
xcodebuild -scheme ContribHeatmap -destination 'platform=macOS' -configuration Release build
open /Users/$(whoami)/Library/Developer/Xcode/DerivedData/ContribHeatmap-*/Build/Products/Release/ContribHeatmap.appInspect and test any user's heatmap straight in your macOS terminal:
cd ContribHeatmap
swift run cli-heatmap <github_username> [weeks]Example:
swift run cli-heatmap Jeetchavan02 20Run the built-in 39-point test suite covering date math, quartile thresholds, and API decoding:
cd ContribHeatmap
swift run test-runnerFor architectural design decisions, troubleshooting, and code organization, check out GUIDANCE.md.
This project is open source and available under the MIT License.




