Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
G

github-readme-streak-stats

> 开发工具
Open source

Stay motivated and show off your contribution streak! Display your total contributions, current streak, and longest streak on your GitHub profile README

7.0K stars0 likes3 views
WebsiteGitHub

About

Stay motivated and show off your contribution streak! Display your total contributions, current streak, and longest streak on your GitHub profile README

Github Readme Streak Stats

Display your total contributions, current streak,
and longest streak on your GitHub profile README

⚡ Quick setup

Option 1: Web Deployment

  1. Copy-paste the markdown below into your GitHub profile README
  2. Replace the value after ?user= with your GitHub username
markdown

Next Steps

  • Check out the Demo Site or Options below for available customizations.

  • It is recommended to self-host the project more better reliability. See Deploying it on your own for more details.

![][hspace] [][herokudeploy] [][verceldeploy]

Option 2: GitHub Actions

GitHub Actions can generate a static SVG in your profile repository so your README does not depend on the public hosted endpoint. If you need private contribution data, add a custom token to Repository Secrets using the steps below.

Adding a Custom Token to Repository Secrets
  1. Visit this link to create a new Personal Access Token (no scopes required)
  2. Scroll to the bottom and click "Generate token"
  3. Visit your profile repository settings (Secrets and Variables > Actions) https://github.com/[YOUR USERNAME]/[YOUR USERNAME]/settings/secrets/actions
  4. Click "New Repository Secret" and create a secret with a custom name (eg. STREAK_STATS_TOKEN) and your token from step 2 as the value.
  5. Replace ${{ secrets.GITHUB_TOKEN }} in the yml file below with ${{ secrets.STREAK_STATS_TOKEN }} (using the custom name you gave the secret).

1. Create the workflow file

Create a folder in your repo named .github and within it a folder named workflows and add a file /.github/workflows/streak-stats.yml in your profile repo (USERNAME/USERNAME):

…

2. Show the generated stats in your README

Add this to your profile README.md file where you want the stats to appear:

xml
<a href="https://git.io/streak-stats"></a>

If you are using a fork, replace DenverCoder1 with the account or organization that hosts your fork.

For private contributions, you will need a Personal Access Token (PAT):

  1. Create a Personal Access Token (PAT) with the repo scope.
  2. Do not use the PAT directly in the workflow file; store it in the repository's GitHub Actions secrets (Settings > Secrets and variables > Actions -> New repository secret). Give it a descriptive name, such as STREAK_STATS_TOKEN.
  3. Update your workflow file to use the token with the name you specified:
yaml
- name: Generate streak stats
  uses: DenverCoder1/github-readme-streak-stats@v1
  with:
    options: user=${{ github.repository_owner }}&theme=default&disable_animations=true
    path: profile/streak.svg
    token: ${{ secrets.STREAK_STATS_TOKEN }}

Next Steps

  • Check out the Options below for available customizations.

⚙ Demo Site

Here you can customize your Streak Stats card with a live preview.

https://streak-stats.demolab.com

Options

The user field is the only required option. All other fields are optional.

If the theme parameter is specified, any color customizations specified will be applied on top of the theme, overriding the theme's values.

Parameter Details Example
user GitHub username to show stats for DenverCoder1
theme The theme to apply (Default: default) dark, radical, etc. ➜
hide_border Make the border transparent (Default: false) true or false
border_radius Set the roundness of the edges (Default: 4.5) Number 0 (sharp corners) to 248 (ellipse)
background Background color (eg. f2f2f2, 35,d22,00f) hex code without #, css color, or gradient in the form angle,start_color,...,end_color
border Border color hex code without # or css color
stroke Stroke line color between sections hex code without # or css color
ring Color of the ring around the current streak hex code without # or css color
fire Color of the fire in the ring hex code without # or css color
currStreakNum Current streak number hex code without # or css color
sideNums Total and longest streak numbers hex code without # or css color
currStreakLabel Current streak label hex code without # or css color
sideLabels Total and longest streak labels hex code without # or css color
dates Date range text color hex code without # or css color
excludeDaysLabel Excluded days of the week text color hex code without # or css color
date_format Date format pattern or empty for locale format See note below on Date Formats
locale Locale for labels and numbers (Default: en) ISO 639-1 code - See Locales
timezone Timezone used to determine the current day IANA timezone identifier, eg. Asia/Kolkata
short_numbers Use short numbers (e.g. 1.5k instead of 1,500) true or false
type Output format (Default: svg) Current options: svg, png or json
mode Streak mode (Default: daily) daily (contribute daily) or weekly (contribute once per Sun-Sat week)
exclude_days List of days of the week to exclude from streaks Comma-separated list of day abbreviations (Sun, Mon, Tue, Wed, Thu, Fri, Sat) e.g. Sun,Sat
disable_animations Disable SVG animations (Default: false) true or false
card_width Width of the card in pixels (Default: 495) Positive integer, minimum width is 100px per column
card_height Height of the card in pixels (Default: 195) Positive integer, minimum height is 170px
hide_total_contributions Hide the total contributions (Default: false) true or false
hide_current_streak Hide the current streak (Default: false) true or false
hide_longest_streak Hide the longest streak (Default: false) true or false
starting_year Starting year of contributions Integer, must be 2005 or later, eg. 2017. By default, your account creation year is used.

Themes

To enable a theme, append &theme= followed by the theme name to the end of the source URL:

markdown
Theme Preview
default
dark
highcontrast
More themes! ** See a list of all available themes**

If you have come up with a new theme you'd like to share with others, please see Issue #32 for more information on how to contribute.

Locales

The following are the locales that have labels translated in Streak Stats. The locale query parameter accepts any ISO language or locale code, see here for a list of valid locales. The locale provided will be used for the date format and number format even if translations are not yet available.

en - English
am - አማርኛ
ar - العربية
as - অসমীয়া

Issues· 75 open

View all issuesOpen on GitHub
  • #933

    [Bug]: Streak count not consistent, algorithm sometimes counts off-days randomly

    bugUpdated Aug 16, 2026
  • #919

    Streak does not count days when the only activity is creating a repository

    bugUpdated Aug 6, 2026
  • #922

    [Feature Request] Add Duolingo-style "Streak Freeze" support (`&freeze=true`)

    enhancementUpdated Jul 23, 2026
  • #918

    streak is incorrect please fix its inaccurate

    bugUpdated Jul 9, 2026
  • #910

    streak is not accurate

    bugUpdated Jun 20, 2026
  • #908

    Add a workflow to build and push the docker image to github registry

    enhancementUpdated Jun 6, 2026
  • #906

    Generate a GitHub Actions workflow file on the Demo Site

    enhancementhelp wantedgood first issuebeginner-friendlyUpdated Jun 2, 2026
  • #236

    Add Translations to Streak Stats

    enhancementhelp wantedgood first issuebeginner-friendlypinnedUpdated May 9, 2026
  • #901

    does not show streak

    bugUpdated Apr 20, 2026
  • #890

    Unable to authenticate github on AuthHelper.php line 132

    bugUpdated Apr 9, 2026

> Tags

PHPdynamicgithubgithub-profilegithub-readme-stats

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 22, 2026
Category开发工具
PricingOpen source

> Related tools

V
VS Code
流行的开源代码编辑器
G
Git
分布式版本控制系统
V
Vite
下一代前端构建工具