GitHub Profile Stats & README Cards | GHStats
GitHub Profile StatsView on GitHub

GitHub Profile Stats for Your README

One line in your README — that's it. Your stats card stays up to date automatically. Pick a theme, hide what you don't need, and you're done.

Demo stats card

default

A live GitHub stats card for your profile

GHStats turns your public GitHub activity into an SVG card you can embed in a profile README. Show the numbers that matter to you, including commits, stars, pull requests, contributions, streaks, repositories and followers. The card refreshes as your public activity changes, so you do not need to edit your README each time.

Profile stats card

Put your GitHub user stats in one card, then choose which metrics and theme to display.

Top languages

Add a separate languages card when you want your profile to show the languages in your public repositories.

Badges and activity

Use a compact stats badge or contribution sparkline when a full-size card does not fit your README.

Build your GitHub profile card →

Quick Start

1Create your profile README

GitHub displays a special README on your profile when you create a repo with the same name as your username.

  1. Go to github.com/new
  2. Set the repo name to your exact username
  3. Make it public and check "Add a README file"
  4. Click Create repository

Already have a profile README? Skip to step 2.

2Add your stats card

Edit the README.md in your profile repo and paste:

![GitHub Stats](https://ghstats.dev/api/card?username=YOUR_USERNAME)

Want a different look? Add &theme=tokyonight or use the editor below to customise everything.

Try it out

Generate your embed, preview it, then copy a single line.

Live preview refreshes automatically

Enter a username to see the preview

Link
https://ghstats.dev/api/card?username=octocat
Markdown
![GitHub Stats Card](https://ghstats.dev/api/card?username=octocat)
HTML
<img src="https://ghstats.dev/api/card?username=octocat" alt="GitHub Stats Card" />

All Parameters

Everything you can pass as a URL query parameter.

Stats You Can Hide

Pass a comma-separated list of keys to the hide parameter:

?hide=stars,issues,followers
KeyStat
starsTotal Stars Earned
commitsTotal Commits (year)
prsPull Requests
issuesIssues Opened
streakCurrent Streak
weekCommits This Week
trendWeekly Trend (+/-)
avgAvg Commits Per Day
active_dayMost Active Day
gradeActivity Grade
contributionsContributions This Year
reposPublic Repos
followersFollowers

Badge Styles

Pass style to /api/mini or /api/badge to switch the badge look.

?style=for-the-badge