Skip to content

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.

Notifications You must be signed in to change notification settings

DevRelSquad-blogs/github-insights-dashboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

GitHub Insights Dashboard

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.

Features

  • 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.

Getting Started

Prerequisites

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

Installation

  1. Clone this repository:

    git clone https://github.com/your-username/github-insights-dashboard.git
  2. Navigate to the project folder:

    cd github-insights-dashboard
  3. Replace the GITHUB_TOKEN in the Python script with your own GitHub Personal Access Token.

  4. Run the script:

    python main.py

Usage

  • 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.