A simple Python app that uses the GitHub GraphQL API to fetch and visualize repo insights in a dashboard. For a detailed guide and practical use cases, check out this article on building a GitHub Insights Dashboard.
- Fetches repository insights using GitHub's GraphQL API.
- Visualizes repository data using bar charts with
matplotlib
. - Lists key metrics like stars, forks, pull requests, and issues.
To run this project, you'll need:
- Python 3.x
- A GitHub Personal Access Token (PAT) with the necessary permissions.
- The following Python libraries:
requests
pandas
matplotlib
You can install the required libraries by running:
pip install -r requirements.txt
-
Clone this repository:
git clone https://github.com/your-username/github-insights-dashboard.git
-
Navigate to the project folder:
cd github-insights-dashboard
-
Replace the
GITHUB_TOKEN
in the Python script with your own GitHub Personal Access Token. -
Run the script:
python main.py
- This script fetches repository data such as:
- Stargazers (Stars)
- Forks
- Pull Requests
- Issues
- The data is visualized using a bar chart.
If you would like more information on generating custom reports, please refer to the practical guide in this article.