/github-statistics

GitHub stat tracker that uses GraphQL to retrieve both public and private user statistics, which can then be displayed on profile READMEs

Primary LanguageJava

GitHub Statistics

Developed alongside GitHub Overview, GitHub Statistics automatically compiles both public and private user statistics that can then be displayed in a profile README:


Click here to view a complete example


In addition, GitHub Statistics also compiles repository information, which can be displayed using Markdown:

[![](https://tanjeffreyz-github-overview.fly.dev/repo?owner=tanjeffreyz&repo=github-statistics)](https://github.com/tanjeffreyz/github-statistics)

Features

Live Statistics

The statistics are queried from GitHub's GraphQL API using a program built around Java's HttpClient, which automatically runs multiple times a day via a scheduled GitHub Action workflow. Since GitHub Statistics has a personal access token stored in an environment secret, it can collect private statistics about the user as well as their repositories, allowing for a more accurate summary of their contributions.

Repository Info Cards

GitHub Statistics also compiles the information needed for displaying repository cards like the one above. Each repository's information is stored in its own JSON file under its owner's folder in /output/repositories. GitHub Overview can later retrieve this information to render a repository card.