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

github-readme-stats

> 编程语言
Open source

:zap: Dynamically generated stats for your github readmes

79.8K stars0 likes1 views
WebsiteGitHub

About

:zap: Dynamically generated stats for your github readmes



Love the project? Please consider donating to support the original creator!

[!CAUTION] This repository is no longer maintained. Please use the successor project GitHub Stats Extended instead! GitHub Stats Extended is an actively maintained fork of this repository with additional features and improved stability. Alternatively you can also use GitHub Readme Stats Action.

Click here to view the outdated documentation. Kept for reference only.

View Demo · Report Bug · Request Feature · FAQ · Ask Question

Table of contents (Click to show)
  • GitHub Stats Card
    • Hiding individual stats
    • Showing additional individual stats
    • Showing icons
    • Showing commits count for specified year
    • Themes
    • Customization
  • GitHub Extra Pins
    • Usage
    • Options
    • Demo
  • GitHub Gist Pins
    • Usage
    • Options
    • Demo
  • Top Languages Card
    • Usage
    • Options
    • Language stats algorithm
    • Exclude individual repositories
    • Hide individual languages
    • Show more languages
    • Compact Language Card Layout
    • Donut Chart Language Card Layout
    • Donut Vertical Chart Language Card Layout
    • Pie Chart Language Card Layout
    • Hide Progress Bars
    • Change format of language's stats
    • Demo
  • WakaTime Stats Card
    • Options
    • Demo
  • All Demos
    • Quick Tip (Align The Cards)
      • Stats and top languages cards
      • Pinning repositories
  • Deploy on your own
    • GitHub Actions (Recommended)
    • Self-hosted (Vercel/Other) (Recommended)
      • First step: get your Personal Access Token (PAT)
      • On Vercel
      • :film_projector: Check Out Step By Step Video Tutorial By @codeSTACKr
      • On other platforms
      • Available environment variables
    • Keep your fork up to date
  • :sparkling_heart: Support the project

Important Notices

⚠️Warning

The public Vercel instance at https://github-readme-stats.vercel.app/api is best-effort and can be unreliable due to rate limits and traffic spikes (see #1471). We use caching to improve stability (see common options), but for reliable cards we recommend self-hosting (Vercel or other) or using the GitHub Actions workflow to generate cards in your profile repository.

⚠️Warning

We're a small team, and to prioritize, we rely on upvotes :+1:. We use the Top Issues dashboard for tracking community demand (see #1935). Do not hesitate to upvote the issues and pull requests you are interested in. We will work on the most upvoted first.

GitHub Stats Card

Copy and paste this into your markdown, and that's it. Simple!

Change the ?username= value to your GitHub username.

markdown
⚠️Warning

By default, the stats card only shows statistics like stars, commits, and pull requests from public repositories. To show private statistics on the stats card, you should deploy your own instance using your own GitHub API token.

ℹ️Note

Available ranks are S (top 1%), A+ (12.5%), A (25%), A- (37.5%), B+ (50%), B (62.5%), B- (75%), C+ (87.5%) and C (everyone). This ranking scheme is based on the Japanese academic grading system. The global percentile is calculated as a weighted sum of percentiles for each statistic (number of commits, pull requests, reviews, issues, stars, and followers), based on the cumulative distribution function of the exponential and the log-normal distributions. The implementation can be investigated at src/calculateRank.js. The circle around the rank shows 100 minus the global percentile.

Hiding individual stats

You can pass a query parameter &hide= to hide any specific stats with comma-separated values.

Options: &hide=stars,commits,prs,issues,contribs

markdown

Showing additional individual stats

You can pass a query parameter &show= to show any specific additional stats with comma-separated values.

Options: &show=reviews,discussions_started,discussions_answered,prs_merged,prs_merged_percentage

markdown

Showing icons

To enable icons, you can pass &show_icons=true in the query param, like so:

markdown

Showing commits count for specified year

You can specify a year and fetch only the commits that were made in that year by passing &commits_year=YYYY to the parameter.

markdown

Themes

With inbuilt themes, you can customize the look of the card without doing any manual customization.

Use &theme=THEME_NAME parameter like so :

markdown

All inbuilt themes

GitHub Readme Stats comes with several built-in themes (e.g. dark, radical, merko, gruvbox, tokyonight, onedark, cobalt, synthwave, highcontrast, dracula).

You can look at a preview for all available themes or checkout the theme config file. Please note that we paused the addition of new themes to decrease maintenance efforts; all pull requests related to new themes will be closed.

Responsive Card Theme

Since GitHub will re-upload the cards and serve them from their CDN, we can not infer the browser/GitHub theme on the server side. There are, however, four methods you can use to create dynamics themes on the client side.

Use the transparent theme

We have included a transparent theme that has a transparent background. This theme is optimized to look good on GitHub's dark and light default themes. You can enable this theme using the &theme=transparent parameter like so:

markdown
:eyes: Show example
Add transparent alpha channel to a themes bg_color

You can use the bg_color parameter to make any of the available themes transparent. This is done by setting the bg_color to a color with a transparent alpha channel (i.e. bg_color=00000000):

markdown
:eyes: Show example
Use GitHub's theme context tag

You can use GitHub's theme context tags to switch the theme based on the user GitHub theme automatically. This is done by appending #gh-dark-mode-only or #gh-light-mode-only to the end of an image URL. This tag will define whether the image specified in the markdown is only shown to viewers using a light or a dark GitHub theme:

markdown
:eyes: Show example
Use GitHub's new media feature

You can use GitHub's new media feature in HTML to specify whether to display images for light or dark themes. This is done using the HTML <picture> element in combination with the prefers-color-scheme media feature.

xml
<picture>
  <source
    srcset="https://github-readme-stats.vercel.app/api?username=anuraghazra&show_icons=true&theme=dark"
    media="(prefers-color-scheme: dark)"
  />
  <source
    srcset="https://github-readme-stats.vercel.app/api?username=anuraghazra&show_icons=true"
    media="(prefers-color-scheme: light), (prefers-color-scheme: no-preference)"
  />
  
</picture>
:eyes: Show example

Customization

You can customize the appearance of all your cards however you wish with URL parameters.

Common Options

Name Description Type Default value
title_color Card's title color. string (hex color) 2f80ed
text_color Body text color. string (hex color) 434d58
icon_color Icons color if available. string (hex color) 4c71f2
border_color Card's border color. Does not apply when hide_border is enabled. string (hex color) e4e2e2
bg_color Card's background color. string (hex color or a gradient in the form of angle,start,end) fffefe
hide_border Hides the card's border. boolean false
theme Name of the theme, choose from all available themes. enum default
cache_seconds Sets the cache header manually (min: 21600, max: 86400). integer 21600
locale

Issues· 295 open

View all issuesOpen on GitHub
  • #4924

    Maximum retries exceeded

    bugUpdated Sep 28, 2026
  • #1935

    Top Issues Dashboard

    :star: top issues dashboardUpdated Sep 28, 2026
  • #4932

    Need your help regarding Samsung certificate

    Updated Sep 24, 2026
  • #4902

    Development has moved to github-stats-extended.

    Updated Jul 29, 2026
  • #4898

    Private contributions not being counted

    bugUpdated Jul 22, 2026
  • #4853

    Option to count all "Contributed to"

    enhancementUpdated Jul 11, 2026
  • #4867

    Public Vercel deployment paused - 503 DEPLOYMENT_PAUSED

    Updated Jun 7, 2026
  • #4892

    Potential license attribution issue in derivative repository

    Updated Jun 3, 2026
  • #4874

    'Total PRs Reviewed' is only counting reviews in the past year.

    bugUpdated May 27, 2026
  • #4871

    Card not showing

    bug:star: top bugUpdated May 21, 2026

> Tags

JavaScriptdynamicprofile-readmereadme-generatorreadme-stats

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 29, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言