GitHub Stats Widget โ

Track your GitHub stats โ commits, contributions, streaks, PRs, issues, and repo insights โ all beautifully displayed on your iOS home screen using Scriptable.
๐ Dynamic layouts for small, medium, and large widgets with theme support and GitHub API integration.
โ๏ธ Features โ
๐ Yearly commits and ๐ฅ streak tracking
๐ฆ Repo-specific stats: โญ stars, ๐ views, ๐งฎ total commits
๐ All-time contributions, PRs, and issue counts
๐จ Multiple theme presets (auto/dark/light/indigo/night/green/etc.)
๐ Adaptive layouts for:
- Small: condensed stat block
- Medium: stat summary
- Large: full grid layout
๐ GitHub GraphQL + REST API support
๐ Secure GitHub token storage using
Keychain
๐งฐ Setup โ
- Copy the script into the Scriptable app.
- Save it as
GitHubStatsWidget.js
.
๐ Token Setup โ
Generate a GitHub Personal Access Token (PAT) with:
read:user
repo
read:org
Store it in Scriptableโs Keychain:
jsKeychain.set("github_token", "YOUR_TOKEN_HERE")
๐งช Widget Parameters โ
Pass parameters to customize behavior:
๐ง Profile Mode: โ
night
Shows your overall GitHub stats with the night
theme.
๐ฆ Repo Mode: โ
rushhiii/Scriptable-IOSWidgets,stars,indigo
Format | Description |
---|---|
<repo>,<stat>,<theme> | Shows a specific repo stat |
<stat>,<theme> | Profile stats with selected theme |
<repo> | Defaults to theme = auto |
night | Only theme |
๐ Widget Layouts โ
Size | Layout Details |
---|---|
Small | Focused repo or profile stat + minimal details |
Medium | Header + 5 stat lines |
Large | Two-column detailed layout (up to 8 metrics) |
๐จ Themes โ
Available values for the third parameter,
For Widget stats Themes:
auto
light
dark
blue
night
day
gray
green
gitgreen
indigo
For Widget heatmap Themes:
so when using parameter like, "heatmap,{heatmapThemeName}"
auto
light
dark
red
green
forestCalm
forestCanopy
cyberPurple
sunsetGold
nordBlueV1
nordBlueV2
sunsetDusk
earthyWarm
arcticIce
๐ Example Use Cases โ
// Shows views on a repo with indigo theme
rushhiii/Scriptable-IOSWidgets,views,indigo
// Shows 2025 commits in blue theme
commits,blue
// Shows profile stats in dark mode
night
๐ Notes โ
- All API requests use GitHubโs GraphQL v4 and REST API v3.
- Uses
Keychain.get("github_token")
for secure token storage. - Widget automatically adapts to light/dark mode when using
auto
theme.
๐ธ Screenshots โ
Small Widget
![]() | ![]() |
---|---|
![]() |
Medium Widgets
![]() | ![]() |
![]() | ![]() |
Large Widget

๐ Feedback โ
Have questions or want help customizing it? DM me on Instagram or email me at rushiofficial1205@gmail.com.
Widgets shouldnโt be limited to timersโIโd love to build tools that help you passively learn, reflect, or stay organized. If you have a unique concept in mind, Iโd love to collaborate.
๐ License โ
This project is licensed under the MIT License.
Feel free to fork, build upon, and remix with attribution.
โ
Enjoy using this widget ~ RP