Methodology
Where the numbers come from
Every figure in a recap is taken from GitHub or calculated from GitHub’s data by a fixed rule. Nothing is estimated by a language model, and nothing is invented to fill a gap: when a statistic cannot be supported for a profile, the scene that needs it is left out.
Sources
- Contribution calendar. The primary source is GitHub’s GraphQL API (
contributionsCollection), which returns one count per day for the period, together with totals by type and the repositories the commits went to. - Fallback. If the GraphQL API is unavailable, the calendar is read from the public contribution graph on the profile page, and profile details come from the public REST API. In this mode contribution types and per-repository figures are not available, so the scenes that depend on them do not appear. The recap says so under “About this data”.
- Private contributions. A public recap contains what GitHub shows on the public profile. If the profile owner has enabled “private contributions” on GitHub, those days are already counted there, anonymously. Signing in lets you include your own private contributions in your own recap. Names of private repositories are never shown, shared or cached publicly.
Dates and periods
Days are GitHub’s contribution days, which GitHub assigns in UTC for the public calendar. A calendar-year recap runs from 1 January to 31 December, or to today if the year is still in progress; unfinished periods are labelled and their “current streak” is reported separately. “Last 12 months” is the 365 days ending today. Custom ranges are limited to 366 days because that is the most GitHub reports in one request.
How each statistic is calculated
- Total contributions is the sum of the daily counts in the period. It matches the number on the GitHub profile for the same dates.
- Active days are days with at least one contribution; the percentage divides by the number of days in the period.
- Longest streak is the longest run of consecutive active days inside the period. A streak that began before the period starts is counted only from the first day of the period.
- Best day, week and month are the single day, the Monday-to-Sunday week and the calendar month with the highest totals. Ties go to the earliest.
- Rhythm groups contributions by weekday. The share shown is that weekday’s contributions divided by the total.
- Commits, pull requests, reviews and issues are GitHub’s own totals for the period. They are shown only when the GraphQL source is available.
- Repositories lists public repositories by the number of commits GitHub attributes to the profile in the period. GitHub reports at most the top 100.
- Languages are a proxy, and are labelled as one. GitHub does not report which language each commit was written in. The mix is the language breakdown of each repository committed to, weighted by the commits made there. When that is unavailable, it falls back to the language breakdown of the profile’s own public repositories.
- Growth compares the period with the one immediately before it, of the same length. For an unfinished year, the comparison uses the same number of days of the previous year, and says so.
- Developer personality is chosen by fixed thresholds on the statistics above, and the recap states the statistic that earned it. It is a light-hearted label, not an assessment.
What a recap cannot tell you
- Contribution counts measure activity GitHub recognises, not effort, impact or quality. One large commit and one typo fix both count once.
- Commits only count when they are on a default branch (or
gh-pages) and are linked to the account’s email address. Work on other platforms is not included. - The public profile graph and the API occasionally differ by a few contributions on some days. When the fallback source is used, totals can therefore differ slightly from the API figure.
- Times of day are not shown: GitHub’s contribution data has no reliable local time.
Wording
The sentences in a recap are picked from fixed templates by a seeded rule, so the same profile and period always produce the same words. A sentence is only eligible when the statistic it mentions is present and meets a threshold that makes the sentence true.
Freshness
Public recaps are cached for up to 24 hours. A recap of the current year can therefore lag GitHub by a day. Recaps that include private contributions are cached separately, per signed-in account, and are never served to anyone else.
See also the privacy policy.