A simple, elegant iOS widget for Scriptable that displays your GitHub contribution heatmap and current streak.
- Visual Alert: Turns red if you haven't contributed today.
- Interactive: Tap the widget to open your GitHub profile.
- Offline Ready: Caches data in iCloud for 24 hours.
Download Scriptable from the App Store. Ensure iCloud Drive is enabled.
- Open Scriptable and tap the
+button. - Copy the code from
github.jsand paste it into the new script. - Name it GitHub Heatmap.
- Generate a GitHub Personal Access Token (Classic).
- Select scopes:
read:user,repo,read:org.
- Select scopes:
- Run this one-line script in Scriptable to save your token securely:
Keychain.set("github_token_here", "YOUR_ACTUAL_TOKEN_HERE")
Edit the top of the script to set your username:
const username = "your_username";- Add a Medium Scriptable widget to your home screen.
- Edit the widget and select GitHub Heatmap as the script.
You can change the theme by editing the Parameter field in the widget settings:
auto(default): Adapts to system dark/light mode.dark: Forces dark mode.light: Forces light mode.