Skip to contents

Four cards take a closer look at what the contributions card and the statistics card sum up: how a user contributes, who visits their repositories, how their GitHub Actions runs go and what their code is made of. Each has a row of key figures and up to three charts, as the other two have. This article explains each of their numbers and charts. Get started shows how to collect your own statistics and put the cards on your profile.

example_stats() returns the made-up statistics of a user named example-user, collected on 3 December 2026, so that this article runs without a token.

The activity card

activity_card() draws how the user contributes:

activity_card(stats, "rghcard-activity.svg")
GitHub activity of example-user Pull requests: 654 (since Mar 2019), Issues: 474 (since Mar 2019), Reviews: 356 (since Mar 2019), New repositories: 14 (since Mar 2019), Followers: 87 (following 41), 14 Mar 2019 – 3 Dec 2026.example-user· GitHub activity14 Mar 2019 – 3 Dec 2026Pull requests654since Mar 2019Issues474since Mar 2019Reviews356since Mar 2019New repositories14since Mar 2019Followers87following 41Contributions by typesince Mar 2019Commits: 2,479 contributions (60%)Pull requests: 654 contributions (15.8%)Issues: 474 contributions (11.5%)Reviews: 356 contributions (8.6%)Private: 155 contributions (3.8%)4.1KcontributionsCommits60%Pull requests15.8%Issues11.5%Reviews8.6%New repos0.3%Private3.8%Contributions by weekdayper weekday, Dec 2025 – Nov 20260100200300Mon: 180 contributionsTue: 210 contributionsWed: 234 contributionsThu: 184 contributionsFri: 214 contributionsSat: 85 contributionsSun: 103 contributions234MonTueWedThuFriSatSunMost committed repositoriescommits, since Mar 2019tidysurveytidysurvey: 783 commits783plotkitplotkit: 455 commits455shiny-weathershiny-weather: 270 commits270pyscriptspyscripts: 267 commits267websitewebsite: 205 commits205Contributions as the contribution graph of the GitHub profile counts them.rghcard · updated 3 Dec 2026
Figure What it counts
Pull requests The pull requests the user opened since they joined GitHub.
Issues The issues they opened.
Reviews The reviews they gave to pull requests.
New repositories The repositories they created.
Followers The users who follow them, with the number of users they follow under it.

The contributions are those of the contribution graph of the profile. The charts are:

  • "contribution_types": the contributions since the user joined GitHub by type, as a ring with a legend of the shares: commits, pull requests, issues, reviews, new repositories (“New repos”), and the contributions to private repositories that the profile shows as bare numbers (“Private”). Each type has a colour of its own, the same on every card and whatever the other types, and the types without contributions are left out. A type with a tiny share, such as a few new repositories among thousands of commits, is too thin to see in the ring, but the legend still has it. The ring adds up the totals that GitHub gives for each type, so its total can differ a little from the contributions of the contributions card, which come from the contribution graph.
  • "weekdays": the contributions of each day of the week in the 12 full months before the collection, Monday first. The days are UTC days, as GitHub counts them, so work late in the evening in America counts on the next day.
  • "top_committed": the five repositories with the most commits of the user since they joined GitHub. A repository of someone else starts with its owner, such as r-lib/gh. The commits in private repositories count only when collect_stats() was asked for them.

The visitors card

visitors_card() draws who visits the repositories and where they come from:

visitors_card(stats, "rghcard-visitors.svg")
GitHub visitors of example-user Visitors: 176 (unique, last 14 days), Page views: 554 (last 14 days), Cloners: 190 (unique, last 14 days), Referring sites: 6 (last 14 days), Visited: 8 of 8 (repositories), 19 Nov – 2 Dec 2026.example-user· GitHub visitors19 Nov – 2 Dec 2026Visitors176unique, last 14 daysPage views554last 14 daysCloners190unique, last 14 daysReferring sites6last 14 daysVisited8 of 8repositoriesVisitorsunique per day, last 14 days020406019 Nov 2026: 18 visitors20 Nov 2026: 52 visitors21 Nov 2026: 11 visitors22 Nov 2026: 10 visitors23 Nov 2026: 23 visitors24 Nov 2026: 25 visitors25 Nov 2026: 21 visitors26 Nov 2026: 20 visitors27 Nov 2026: 32 visitors28 Nov 2026: 9 visitors29 Nov 2026: 10 visitors30 Nov 2026: 17 visitors1 Dec 2026: 23 visitors2 Dec 2026: 22 visitors5219 Nov2 DecReferring sitespage views, last 14 daysgoogle.comgoogle.com: 103 page views103github.comgithub.com: 67 page views67example-user.r-universe.devexample-user.r-universe.dev: 22 page views22stackoverflow.comstackoverflow.com: 9 page views9fosstodon.orgfosstodon.org: 6 page views6Most viewed pagespage views, last 14 daystidysurveytidysurvey: 98 page views98plotkitplotkit: 52 page views52shiny-weathershiny-weather: 33 page views33tidysurvey/issuestidysurvey/issues: 24 page views24websitewebsite: 18 page views18GitHub counts visitors per repository: a visitor of two counts twice.rghcard · updated 3 Dec 2026
Figure What it counts
Visitors The unique visitors of the repositories in the last 14 days.
Page views The views of their pages in those days.
Cloners The unique cloners of the repositories in those days.
Referring sites The sites that sent visitors to any of the repositories.
Visited How many of the repositories had visitors.

GitHub gives the sites that send visitors to a repository, and its most viewed pages, only for its last 14 days as a whole, ten of each, so this card always covers 14 days. GitHub also counts the visitors of each repository on its own: someone who visits two repositories counts twice, as the card says under its charts. The charts are:

  • "visitors": the unique visitors of each day, as columns. Someone who comes back on another day counts on both, so the columns add up to more than the visitors of the key figures.
  • "referrers": the five sites that sent the most page views, such as search engines, GitHub itself and the sites that link to the repositories.
  • "top_pages": the five most viewed pages, each named by its path on GitHub without the user name: tidysurvey is the front page of the repository tidysurvey, and tidysurvey/issues its list of issues.

The history keeps the referring sites and the pages of each collection, in the referrers and pages tables, so it can show how they change beyond the 14 days. Like the page views, all of this needs a token of the user, and the names of the visitors are never collected: GitHub does not give them.

The GitHub Actions card

actions_card() draws the GitHub Actions runs of the repositories:

actions_card(stats, "rghcard-actions.svg")
GitHub Actions of example-user Runs: 86 (last 30 days), Succeeded: 90% (of 86 finished), Failed: 9 (last 30 days), Run time: 9.8 h (last 30 days), Workflows: 4 (in 4 repositories), 3 Nov – 2 Dec 2026.example-user· GitHub Actions3 Nov – 2 Dec 2026Runs86last 30 daysSucceeded90%of 86 finishedFailed9last 30 daysRun time9.8 hlast 30 daysWorkflows4in 4 repositoriesGitHub Actions runsper day, last 30 days024683 Nov 2026: 3 runs4 Nov 2026: 7 runs5 Nov 2026: 2 runs6 Nov 2026: 4 runs7 Nov 2026: 1 run8 Nov 2026: 2 runs9 Nov 2026: 2 runs10 Nov 2026: 4 runs12 Nov 2026: 2 runs13 Nov 2026: 4 runs14 Nov 2026: 2 runs15 Nov 2026: 1 run16 Nov 2026: 3 runs17 Nov 2026: 5 runs18 Nov 2026: 2 runs19 Nov 2026: 7 runs20 Nov 2026: 3 runs21 Nov 2026: 2 runs22 Nov 2026: 2 runs23 Nov 2026: 4 runs25 Nov 2026: 3 runs26 Nov 2026: 4 runs27 Nov 2026: 2 runs28 Nov 2026: 2 runs29 Nov 2026: 4 runs30 Nov 2026: 3 runs1 Dec 2026: 3 runs2 Dec 2026: 3 runs73 Nov2 DecBusiest workflowsruns, last 30 daysR-CMD-checkR-CMD-check: 60 runs60pages build and deploymentpages build and deployment: 19 runs19Deploy appDeploy app: 7 runs7Run time by repositorystart to end of the runs, last 30 daystidysurveytidysurvey: 5.3 h of runs5.3 hplotkitplotkit: 3.8 h of runs3.8 hshiny-weathershiny-weather: 27 min of runs27 minwebsitewebsite: 19 min of runs19 minRun time: from the start of each run to its end, not the minutes GitHub bills.rghcard · updated 3 Dec 2026
Figure What it counts
Runs The runs of the workflows of the repositories, in the days of the card.
Succeeded The share of the finished runs that succeeded.
Failed The runs that failed, timed out or could not start.
Run time The time that the runs took, each from its start to its end.
Workflows The workflows that ran, and the repositories they ran in.

A run is finished when it succeeded or failed: one still going, cancelled or skipped is left out of the share. A share just under 100% shows as 99%, and one just over 0% as 1%, so that neither a failure nor a success hides. The run time is what a clock measures, not the minutes that GitHub bills, which add up the jobs of a run that run side by side and are free in public repositories. Runs collected before rghcard 0.4.0 have no times: until they are older than the days of the card, the run time counts the runs that have them, and says how many.

The days are the last 30, as on the statistics card, and days changes them. The charts are:

  • "actions": the runs of each day, as columns, as on the statistics card.
  • "top_workflows": the five workflows with the most runs. Workflows of the same name in several repositories, such as R-CMD-check, count together.
  • "run_time": the five repositories whose runs took the longest.
  • "top_failed": the five workflows with the most failed runs, which can take the place of one of the others:
actions_card(stats, "rghcard-actions.svg", days = 14,
             panels = c("actions", "top_failed", "run_time"))
GitHub Actions of example-user Runs: 42 (last 14 days), Succeeded: 90% (of 42 finished), Failed: 4 (last 14 days), Run time: 4.9 h (last 14 days), Workflows: 4 (in 4 repositories), 19 Nov – 2 Dec 2026.example-user· GitHub Actions19 Nov – 2 Dec 2026Runs42last 14 daysSucceeded90%of 42 finishedFailed4last 14 daysRun time4.9 hlast 14 daysWorkflows4in 4 repositoriesGitHub Actions runsper day, last 14 days0246819 Nov 2026: 7 runs20 Nov 2026: 3 runs21 Nov 2026: 2 runs22 Nov 2026: 2 runs23 Nov 2026: 4 runs25 Nov 2026: 3 runs26 Nov 2026: 4 runs27 Nov 2026: 2 runs28 Nov 2026: 2 runs29 Nov 2026: 4 runs30 Nov 2026: 3 runs1 Dec 2026: 3 runs2 Dec 2026: 3 runs719 Nov2 DecMost failed workflowsfailed runs, last 14 daysR-CMD-checkR-CMD-check: 3 failed runs3Deploy appDeploy app: 1 failed run1Run time by repositorystart to end of the runs, last 14 daystidysurveytidysurvey: 2.7 h of runs2.7 hplotkitplotkit: 1.8 h of runs1.8 hshiny-weathershiny-weather: 16 min of runs16 minwebsitewebsite: 8 min of runs8 minRun time: from the start of each run to its end, not the minutes GitHub bills.rghcard · updated 3 Dec 2026

The code card

code_card() draws what the code of the repositories is made of:

code_card(stats, "rghcard-code.svg")
GitHub code of example-user Code: 1.1 MB (in 8 repositories), Languages: 10 (mostly R), Stars: 101 (+38 in 12 months), Forks: 19 (total), Watchers: 18 (total), 3 Dec 2026.example-user· GitHub code3 Dec 2026Code1.1 MBin 8 repositoriesLanguages10mostly RStars101+38 in 12 monthsForks19totalWatchers18totalLanguages by code sizebytes of code per languageR: 731 KB of code (63.6%)TeX: 238 KB of code (20.7%)HTML: 59.8 KB of code (5.2%)Python: 41.2 KB of code (3.6%)C++: 37.3 KB of code (3.2%)Other: 41.2 KB of code (3.6%)1.1 MBof codeR63.6%TeX20.7%HTML5.2%Python3.6%C++3.2%Other3.6%Starstotal at the end of each month050100150Dec 2025: 66 starsJan 2026: 70 starsFeb 2026: 70 starsMar 2026: 72 starsApr 2026: 76 starsMay 2026: 78 starsJun 2026: 82 starsJul 2026: 83 starsAug 2026: 87 starsSep 2026: 89 starsOct 2026: 95 starsNov 2026: 101 stars101Dec 2025Nov 2026Largest repositoriesbytes of codetidysurveytidysurvey: 440 KB of code440 KBthesisthesis: 268 KB of code268 KBplotkitplotkit: 158 KB of code158 KBshiny-weathershiny-weather: 102 KB of code102 KBwebsitewebsite: 72.9 KB of code72.9 KBCode as GitHub's language bars count it: without documentation, vendored or generated files.rghcard · updated 3 Dec 2026
Figure What it counts
Code The bytes of code in the repositories, and how many repositories have any.
Languages The languages of the code, and the one with the most of it.
Stars The stars of the repositories, and how many of them were given in the last 12 months.
Forks The forks of the repositories.
Watchers The users who watch the repositories, whom GitHub tells of what happens in them.

GitHub counts the code of each language as in the language bar of a repository: without documentation, vendored and generated files. The charts are:

  • "code_languages": the bytes of code per language, as a ring with a legend of the shares, five languages at most and the rest together as “Other”, each in the colour that GitHub gives the language. The rings of the contributions card count repositories and commits; this one counts the code itself, so a large repository counts more than a small one.
  • "stars_history": the stars at the end of each of the 12 full months before the collection, as columns. GitHub keeps the time of the stars still given, so a star taken back is gone from every month.
  • "largest": the five repositories with the most code.
  • "top_forked" and "top_watched": the five repositories with the most forks or watchers, which can take the place of one of the others.

Charts of other cards

Any card can show the charts of any other: panels chooses one to three of all of them. The statistics card lists its charts, the contributions card its own, and Draw the cards in R all 23 in one table:

activity_card(stats, "rghcard-activity.svg",
              panels = c("contribution_types", "code_languages"))
GitHub activity of example-user Pull requests: 654 (since Mar 2019), Issues: 474 (since Mar 2019), Reviews: 356 (since Mar 2019), New repositories: 14 (since Mar 2019), Followers: 87 (following 41), 14 Mar 2019 – 3 Dec 2026.example-user· GitHub activity14 Mar 2019 – 3 Dec 2026Pull requests654since Mar 2019Issues474since Mar 2019Reviews356since Mar 2019New repositories14since Mar 2019Followers87following 41Contributions by typesince Mar 2019Commits: 2,479 contributions (60%)Pull requests: 654 contributions (15.8%)Issues: 474 contributions (11.5%)Reviews: 356 contributions (8.6%)Private: 155 contributions (3.8%)4.1KcontributionsCommits60%Pull requests15.8%Issues11.5%Reviews8.6%New repos0.3%Private3.8%Languages by code sizebytes of code per languageR: 731 KB of code (63.6%)TeX: 238 KB of code (20.7%)HTML: 59.8 KB of code (5.2%)Python: 41.2 KB of code (3.6%)C++: 37.3 KB of code (3.2%)Other: 41.2 KB of code (3.6%)1.1 MBof codeR63.6%TeX20.7%HTML5.2%Python3.6%C++3.2%Other3.6%Contributions as the contribution graph of the GitHub profile counts them.rghcard · updated 3 Dec 2026

The key figures stay those of the card. theme, title and width work as for the statistics card, which explains them:

code_card(stats, "rghcard-code-light.svg", theme = "light",
          title = "My code")
GitHub code of example-user Code: 1.1 MB (in 8 repositories), Languages: 10 (mostly R), Stars: 101 (+38 in 12 months), Forks: 19 (total), Watchers: 18 (total), 3 Dec 2026.My code3 Dec 2026Code1.1 MBin 8 repositoriesLanguages10mostly RStars101+38 in 12 monthsForks19totalWatchers18totalLanguages by code sizebytes of code per languageR: 731 KB of code (63.6%)TeX: 238 KB of code (20.7%)HTML: 59.8 KB of code (5.2%)Python: 41.2 KB of code (3.6%)C++: 37.3 KB of code (3.2%)Other: 41.2 KB of code (3.6%)1.1 MBof codeR63.6%TeX20.7%HTML5.2%Python3.6%C++3.2%Other3.6%Starstotal at the end of each month050100150Dec 2025: 66 starsJan 2026: 70 starsFeb 2026: 70 starsMar 2026: 72 starsApr 2026: 76 starsMay 2026: 78 starsJun 2026: 82 starsJul 2026: 83 starsAug 2026: 87 starsSep 2026: 89 starsOct 2026: 95 starsNov 2026: 101 stars101Dec 2025Nov 2026Largest repositoriesbytes of codetidysurveytidysurvey: 440 KB of code440 KBthesisthesis: 268 KB of code268 KBplotkitplotkit: 158 KB of code158 KBshiny-weathershiny-weather: 102 KB of code102 KBwebsitewebsite: 72.9 KB of code72.9 KBCode as GitHub's language bars count it: without documentation, vendored or generated files.rghcard · updated 3 Dec 2026