Skip to contents

The statistics card shows how the repositories of a GitHub user are doing: their stars, how often they were viewed and cloned, the downloads of their releases and their GitHub Actions runs. This article explains each of its numbers and charts, and the options that change them. Get started shows how to collect your own statistics and put the cards on your profile, and The contributions card and More cards explain the others.

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. stats_card() draws their card, as an SVG or a PNG file:

stats_card(stats, "rghcard-stats.svg")
GitHub statistics of example-user Repositories: 8 (public), Stars: 101 (total), Page views: 1.1K (last 30 days), Clones: 1.4K (last 30 days), Release downloads: 599 (all time), Actions runs: 86 (last 30 days), 3 Nov – 2 Dec 2026.example-user· GitHub statistics3 Nov – 2 Dec 2026Repositories8publicStars101totalPage views1.1Klast 30 daysClones1.4Klast 30 daysRelease downloads599all timeActions runs86last 30 daysPage viewsper day, last 30 days0204060801003 Nov 2026: 47 page views4 Nov 2026: 30 page views5 Nov 2026: 26 page views6 Nov 2026: 53 page views7 Nov 2026: 22 page views8 Nov 2026: 9 page views9 Nov 2026: 37 page views10 Nov 2026: 38 page views11 Nov 2026: 33 page views12 Nov 2026: 32 page views13 Nov 2026: 29 page views14 Nov 2026: 14 page views15 Nov 2026: 20 page views16 Nov 2026: 52 page views17 Nov 2026: 36 page views18 Nov 2026: 40 page views19 Nov 2026: 39 page views20 Nov 2026: 82 page views21 Nov 2026: 23 page views22 Nov 2026: 15 page views23 Nov 2026: 43 page views24 Nov 2026: 55 page views25 Nov 2026: 39 page views26 Nov 2026: 37 page views27 Nov 2026: 61 page views28 Nov 2026: 16 page views29 Nov 2026: 22 page views30 Nov 2026: 33 page views1 Dec 2026: 47 page views2 Dec 2026: 42 page views823 Nov2 DecClonesper day, last 30 days0501003 Nov 2026: 51 clones4 Nov 2026: 68 clones5 Nov 2026: 51 clones6 Nov 2026: 57 clones7 Nov 2026: 25 clones8 Nov 2026: 24 clones9 Nov 2026: 43 clones10 Nov 2026: 66 clones11 Nov 2026: 67 clones12 Nov 2026: 48 clones13 Nov 2026: 60 clones14 Nov 2026: 25 clones15 Nov 2026: 22 clones16 Nov 2026: 62 clones17 Nov 2026: 65 clones18 Nov 2026: 58 clones19 Nov 2026: 48 clones20 Nov 2026: 86 clones21 Nov 2026: 19 clones22 Nov 2026: 22 clones23 Nov 2026: 48 clones24 Nov 2026: 65 clones25 Nov 2026: 45 clones26 Nov 2026: 48 clones27 Nov 2026: 41 clones28 Nov 2026: 19 clones29 Nov 2026: 19 clones30 Nov 2026: 64 clones1 Dec 2026: 58 clones2 Dec 2026: 52 clones863 Nov2 DecMost viewed repositoriespage views, last 30 daystidysurveytidysurvey: 434 page views434plotkitplotkit: 202 page views202shiny-weathershiny-weather: 143 page views143websitewebsite: 114 page views114workshop-2026workshop-2026: 88 page views88Clones include automated ones: GitHub Actions runs, package builders, app deployments.rghcard · updated 3 Dec 2026

In an SVG shown in a web page, as here, each column and bar tells its day or name and its value when you point at it. A GitHub profile shows the card as an image, and so without that, as does a PNG.

The key figures

The row under the title has the key figures, each with its name above the number and what it covers under it:

Figure What it counts
Repositories The repositories the user owns, the public ones that are not forks.
Stars The stars of these repositories, on the day of the collection.
Page views The views of their pages on GitHub, in the days of the card.
Clones How many times they were cloned, in the days of the card.
Release downloads The downloads of the files of their releases, since each was published.
Actions runs The GitHub Actions runs of their workflows, in the days of the card.

Release downloads and Actions runs appear only when the user has releases or runs. Numbers from 1,000 on are rounded: 1.4K is about 1,400, and 12K about 12,000. Private repositories and forks are left out unless collect_stats() was asked for them, with include_private = TRUE and include_forks = TRUE; the line under Repositories then says “public and private”. A repository that was deleted or made private since is left out of every figure and chart.

The days of the card

The page views, clones and runs are those of the last 30 days, which days changes. The days end on the last full day, the day before the collection: GitHub is still counting the day of the collection, so its numbers would look low. The dates at the top right of the card are the first and the last day.

GitHub keeps the page views and clones for 14 days only. The card covers more days because collect_stats() keeps them in its history: run at least once a week, it misses no day. Until the history is as long as days, the card covers the days it has, and says so: “last 14 days” after the first collection.

GitHub counts the traffic in UTC days, and for some repositories it is a day behind the others. A day at either end of the history with the traffic of half as many repositories as the day next to it, or fewer, is left out, so that it does not look like a quiet day.

stats_card(stats, "rghcard-stats.svg", days = 14)
GitHub statistics of example-user Repositories: 8 (public), Stars: 101 (total), Page views: 554 (last 14 days), Clones: 634 (last 14 days), Release downloads: 599 (all time), Actions runs: 42 (last 14 days), 19 Nov – 2 Dec 2026.example-user· GitHub statistics19 Nov – 2 Dec 2026Repositories8publicStars101totalPage views554last 14 daysClones634last 14 daysRelease downloads599all timeActions runs42last 14 daysPage viewsper day, last 14 days02040608010019 Nov 2026: 39 page views20 Nov 2026: 82 page views21 Nov 2026: 23 page views22 Nov 2026: 15 page views23 Nov 2026: 43 page views24 Nov 2026: 55 page views25 Nov 2026: 39 page views26 Nov 2026: 37 page views27 Nov 2026: 61 page views28 Nov 2026: 16 page views29 Nov 2026: 22 page views30 Nov 2026: 33 page views1 Dec 2026: 47 page views2 Dec 2026: 42 page views8219 Nov2 DecClonesper day, last 14 days05010019 Nov 2026: 48 clones20 Nov 2026: 86 clones21 Nov 2026: 19 clones22 Nov 2026: 22 clones23 Nov 2026: 48 clones24 Nov 2026: 65 clones25 Nov 2026: 45 clones26 Nov 2026: 48 clones27 Nov 2026: 41 clones28 Nov 2026: 19 clones29 Nov 2026: 19 clones30 Nov 2026: 64 clones1 Dec 2026: 58 clones2 Dec 2026: 52 clones8619 Nov2 DecMost viewed repositoriespage views, last 14 daystidysurveytidysurvey: 238 page views238plotkitplotkit: 89 page views89shiny-weathershiny-weather: 72 page views72websitewebsite: 61 page views61workshop-2026workshop-2026: 37 page views37Clones include automated ones: GitHub Actions runs, package builders, app deployments.rghcard · updated 3 Dec 2026

The charts

The card has up to three charts, side by side. panels chooses them, from:

  • "views", "clones" and "actions": the page views, clones or GitHub Actions runs of each day, as columns. The busiest day has its number over its column, and the first and the last day are under the axis.
  • "top_viewed" and "top_cloned": the five repositories with the most page views or clones in the days of the card, as bars, the largest first, with the number at the end of each bar.
  • "top_starred": the five repositories with the most stars.
  • "languages": how many repositories have each main language, the language that GitHub detects for most of the code of a repository, 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. Repositories without code in a language that GitHub knows are left out. The contributions card has the same kind of ring for the commits.
  • "contributions" and "commit_languages": the charts of the contributions card, and those of the other cards, which More cards lists. Draw the cards in R has all 23 in one table.

By default the card shows the page views and the clones per day, and the most viewed repositories. It fits one to three charts; the fewer, the wider:

stats_card(stats, "rghcard-stats.svg",
           panels = c("actions", "top_starred"))
GitHub statistics of example-user Repositories: 8 (public), Stars: 101 (total), Page views: 1.1K (last 30 days), Clones: 1.4K (last 30 days), Release downloads: 599 (all time), Actions runs: 86 (last 30 days), 3 Nov – 2 Dec 2026.example-user· GitHub statistics3 Nov – 2 Dec 2026Repositories8publicStars101totalPage views1.1Klast 30 daysClones1.4Klast 30 daysRelease downloads599all timeActions runs86last 30 daysGitHub 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 DecMost starred repositoriesstarstidysurveytidysurvey: 48 stars48plotkitplotkit: 23 stars23shiny-weathershiny-weather: 12 stars12workshop-2026workshop-2026: 7 stars7pyscriptspyscripts: 5 stars5Clones include automated ones: GitHub Actions runs, package builders, app deployments.rghcard · updated 3 Dec 2026

Clones

A clone is a copy of a repository that git downloads. Most clones are made by machines rather than people: every GitHub Actions run that checks out a repository clones it, and so do package builders such as R-universe and the services that deploy apps. A repository with a busy workflow can have hundreds of clones a day without a single reader, so the card says so under its charts.

The history also keeps the unique cloners of each day, in the uniques column, which machines inflate less:

head(stats$clones)
#>         repo       date count uniques
#> 1 tidysurvey 2026-11-03    20      10
#> 2 tidysurvey 2026-11-04    35      18
#> 3 tidysurvey 2026-11-05    26      17
#> 4 tidysurvey 2026-11-06    26      11
#> 5 tidysurvey 2026-11-07     8       4
#> 6 tidysurvey 2026-11-08     9       4

Without traffic

GitHub shows the page views and clones of a repository only to those who can push to it, so collect_stats() reads them only with a token of the user. For another user, or without such a token, the card shows the forks instead of the page views and clones, and the GitHub Actions runs, the most starred repositories and the languages as its charts:

# dir = NULL keeps nothing on disk
octocat <- collect_stats(user = "octocat", dir = NULL)
stats_card(octocat, "octocat-stats.svg")
GitHub statistics of example-user Repositories: 8 (public), Stars: 101 (total), Forks: 19 (total), Release downloads: 599 (all time), Actions runs: 86 (last 30 days), 3 Nov – 2 Dec 2026.example-user· GitHub statistics3 Nov – 2 Dec 2026Repositories8publicStars101totalForks19totalRelease downloads599all timeActions runs86last 30 daysGitHub 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 DecMost starred repositoriesstarstidysurveytidysurvey: 48 stars48plotkitplotkit: 23 stars23shiny-weathershiny-weather: 12 stars12workshop-2026workshop-2026: 7 stars7pyscriptspyscripts: 5 stars5Languages by repositoriesrepositories per main languageR: 4 repositories (50%)HTML: 1 repository (12.5%)Python: 1 repository (12.5%)Shell: 1 repository (12.5%)TeX: 1 repository (12.5%)8repositoriesR50%HTML12.5%Python12.5%Shell12.5%TeX12.5%rghcard · updated 3 Dec 2026

Its days are then the last 30 up to the day before the collection, or fewer while the history of runs is shorter: one collection reads the runs of the last 14 days.

Theme, title and size

  • theme = "light" draws the card in the colours of GitHub’s light mode, and "dark", the default, in those of its dark mode. On a GitHub profile, a <picture> element shows each reader the card of their mode (see Get started).
  • title replaces the user name and the name of the card at the top left.
  • width is the width of the card in pixels, 900 by default; its height follows. A PNG has twice as many pixels, so that it stays sharp on high-resolution screens.
  • file names the file: an .svg, sharp at any size and with the tooltips where a web page shows it, or a .png, for places that take no SVG files. file = NULL returns the SVG code, which is how this article puts the cards in the page.
stats_card(stats, "rghcard-stats-light.svg", theme = "light",
           title = "My repositories")
GitHub statistics of example-user Repositories: 8 (public), Stars: 101 (total), Page views: 1.1K (last 30 days), Clones: 1.4K (last 30 days), Release downloads: 599 (all time), Actions runs: 86 (last 30 days), 3 Nov – 2 Dec 2026.My repositories3 Nov – 2 Dec 2026Repositories8publicStars101totalPage views1.1Klast 30 daysClones1.4Klast 30 daysRelease downloads599all timeActions runs86last 30 daysPage viewsper day, last 30 days0204060801003 Nov 2026: 47 page views4 Nov 2026: 30 page views5 Nov 2026: 26 page views6 Nov 2026: 53 page views7 Nov 2026: 22 page views8 Nov 2026: 9 page views9 Nov 2026: 37 page views10 Nov 2026: 38 page views11 Nov 2026: 33 page views12 Nov 2026: 32 page views13 Nov 2026: 29 page views14 Nov 2026: 14 page views15 Nov 2026: 20 page views16 Nov 2026: 52 page views17 Nov 2026: 36 page views18 Nov 2026: 40 page views19 Nov 2026: 39 page views20 Nov 2026: 82 page views21 Nov 2026: 23 page views22 Nov 2026: 15 page views23 Nov 2026: 43 page views24 Nov 2026: 55 page views25 Nov 2026: 39 page views26 Nov 2026: 37 page views27 Nov 2026: 61 page views28 Nov 2026: 16 page views29 Nov 2026: 22 page views30 Nov 2026: 33 page views1 Dec 2026: 47 page views2 Dec 2026: 42 page views823 Nov2 DecClonesper day, last 30 days0501003 Nov 2026: 51 clones4 Nov 2026: 68 clones5 Nov 2026: 51 clones6 Nov 2026: 57 clones7 Nov 2026: 25 clones8 Nov 2026: 24 clones9 Nov 2026: 43 clones10 Nov 2026: 66 clones11 Nov 2026: 67 clones12 Nov 2026: 48 clones13 Nov 2026: 60 clones14 Nov 2026: 25 clones15 Nov 2026: 22 clones16 Nov 2026: 62 clones17 Nov 2026: 65 clones18 Nov 2026: 58 clones19 Nov 2026: 48 clones20 Nov 2026: 86 clones21 Nov 2026: 19 clones22 Nov 2026: 22 clones23 Nov 2026: 48 clones24 Nov 2026: 65 clones25 Nov 2026: 45 clones26 Nov 2026: 48 clones27 Nov 2026: 41 clones28 Nov 2026: 19 clones29 Nov 2026: 19 clones30 Nov 2026: 64 clones1 Dec 2026: 58 clones2 Dec 2026: 52 clones863 Nov2 DecMost viewed repositoriespage views, last 30 daystidysurveytidysurvey: 434 page views434plotkitplotkit: 202 page views202shiny-weathershiny-weather: 143 page views143websitewebsite: 114 page views114workshop-2026workshop-2026: 88 page views88Clones include automated ones: GitHub Actions runs, package builders, app deployments.rghcard · updated 3 Dec 2026