Skip to content

LukeTheoJohnson/github-profile-widget

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

github-profile-widget

A contribution summary widget. Refreshed daily by GitHub Actions.

Profile widget demo

Private repos are not included. merged PR data is explicitly scoped to public repositories (is:public), so a local token and the Actions token produce identical output.


Setup

1. Fork this repo.

Your GitHub username is detected automatically from the Actions environment — no code edits needed. Enable Actions on the fork if prompted (Settings → Actions → Allow all actions).

2. Set your display name and tagline under Settings → Secrets and variables → Actions → Variables (not Secrets):

Variable Default Description
WIDGET_NAME your GitHub username Display name in the header
WIDGET_TAGLINE (none) Short tagline top-right, e.g. OPEN SOURCE · PYTHON · ML
WIDGET_PROJECT_LIMIT 6 Max own-project cards on the left
WIDGET_BAR_LIMIT 6 Max merged-PR repo bars on the right
WIDGET_CORE_STARS 10000 Star threshold for the key-insight caption to call a project "core"

3. Trigger the first run manually: Actions → profile-widget → Run workflow. The widget generates immediately and commits assets/widget.svg. After that it refreshes daily at 06:17 UTC.

4. Embed it in your profile README (YOUR_USERNAME/YOUR_USERNAME):

<a href="https://github.com/YOUR_USERNAME?tab=repositories">
<img src="https://raw.githubusercontent.com/YOUR_USERNAME/github-profile-widget/HEAD/assets/widget.svg" width="100%"/>
</a>

How it works

  • Zero dependencies — pure Python standard library (urllib, json, pathlib)
  • No API keys or secrets required — uses the built-in GITHUB_TOKEN provided by Actions
  • Generates a single self-contained SVG with CSS entrance animations gated behind prefers-reduced-motion
  • The workflow handles push races (another commit landing between checkout and push) with a fetch-reset-retry loop

About

Forkable GitHub profile widget

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages