Skip to content

Latest commit

Β 

History

25 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🐱 GitHub Streak Card

A commit streak banner for your GitHub profile: a painted sunset waterfront with GitHub graffiti, a cat on the wall, and your streaks in a graffiti font. Rebuilt every hour by GitHub Actions.

Commit streak card

  • Current and longest streak with their dates, private contributions included.
  • Live text, fixed art: the scene and the graffiti fonts live in assets/graffiti-template.svg; each run fills in your numbers.
  • Sized for the profile: 846Γ—221, the height of the avatar column on desktop.
  • Zero dependencies: two small Node scripts and the GitHub GraphQL API.
  • Self-hosted: the SVG lives in your repo, so no third-party card service can go down or rate-limit you.

Use it on your profile

  1. Fork this repository (or use it as a template).

  2. Create a token: Settings β†’ Developer settings β†’ Personal access tokens β†’ Tokens (classic), scopes repo and read:user. The repo scope lets the card count your private contributions; skip it if you only want public ones.

  3. Add the token to your fork: Settings β†’ Secrets and variables β†’ Actions β†’ New repository secret, name PROFILE_STATS_TOKEN.

  4. Run the workflow once: Actions β†’ Update streak card β†’ Run workflow. After that it runs every hour.

  5. Embed the card in your profile README (<username>/<username>):

    <a href="https://github.com/Orischenko/github-streak-card">
      <img src="https://raw.githubusercontent.com/<username>/github-streak-card/main/assets/streak.svg" alt="Commit streak" width="100%" />
    </a>

    Put your GitHub username in place of <username>. Keep the href as it is: a click on your banner opens this repository, so visitors of your profile can make a card of their own.

Like the card? Give this repository a ⭐

Run locally

GH_TOKEN=$(gh auth token) node scripts/streak.mjs

The card is written to assets/streak.svg. Requires Node.js 18+.

How the streak is counted

  • A day counts if it has at least one contribution in your GitHub contribution calendar.
  • Today without contributions does not break the current streak until the day is over.
  • The calendar covers the last 365 days, so the longest streak is the longest one within that window.

Bonus: achievement progress

GitHub shows which achievements you have, but not how far you are from the next tier. scripts/achievements.mjs fills the table below with live numbers.

Achievement Level Progress to next level
🦈 Pull Shark x3 πŸ₯ˆ β–“β–“β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 161 / 1024 merged PRs
🧠 Galaxy Brain x3 πŸ₯ˆ β–“β–“β–“β–“β–“β–“β–‘β–‘β–‘β–‘β–‘β–‘ 16 / 32 accepted answers
⭐ Starstruck β€” β–“β–“β–“β–“β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 5 / 16 stars on top repo
❀️ Public Sponsor Default β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“ 1 sponsorships Β· max level

Updated automatically via the GitHub GraphQL API Β· 2026-11-30

License

MIT

Releases

Packages

Contributors

Languages