Scriptable-IOSWidgets

๐Ÿ“Š GitHub Stats Widget

GitHub Language Platform Scriptable Theme Support Widget Size Scriptable 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


๐Ÿงฐ Setup

  1. Copy the script into the Scriptable app.
  2. Save it as GitHubStatsWidget.js.

๐Ÿ” Token Setup

  1. Generate a GitHub Personal Access Token (PAT) with:

    • read:user
    • repo
    • read:org
  2. Store it in Scriptableโ€™s Keychain:

    Keychain.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:


๐Ÿงช Sample Outputs

๐Ÿ”น Small

Shows commits for 2025 in a single stat display.

๐Ÿ”ท Medium

5-line summary: Streak, Commits, Contributions, Repos, Followers.

๐ŸŸฃ Large

Grid layout of 8 stats split across 2 columns.


๐Ÿ›  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


๐Ÿ–ผ 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