Skip to content

openvaibhav/git-stat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

25 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ”₯ GIT-STAT : GitHub Analytics Dashboard

A full-featured GitHub analytics dashboard that visualizes developer activity, repository stats, contribution patterns, and repository issue tracking in a competitive stats-style UI.

Built with React and powered by GitHub REST + GraphQL APIs.


πŸš€ Features


πŸ‘€ Profile Overview

  • Avatar, name, username
  • Followers & following
  • Public repository count
  • Company & location
  • Website/blog link
  • Join date
  • Responsive profile card layout

πŸ“Š Contribution Analytics

  • Total contributions (last year)
  • Current streak (UTC-safe calculation)
  • Highest streak
  • Contribution heatmap calendar
  • GraphQL-powered contribution fetching

πŸ“¦ Repository Tracker

  • Latest repositories list
  • Stars & forks per repo
  • Language tags
  • Sorted by last updated
  • Copy repository link button
  • Clean scrollable stat panel

πŸ₯§ Language Rank Distribution

  • Pie chart of most-used languages
  • Repo-based aggregation
  • Custom color palette
  • Responsive resizing

πŸ› GFIS : GitHub Issues System

A fully integrated Issues Tracker page with advanced filtering and pagination.

πŸ”Ž Repository Search

  • Paste any GitHub repository link
  • Auto-extract owner + repo
  • Fetch live issue data

πŸŽ› Filtering System

  • Open / Closed toggle
  • Label-based filtering
  • Dynamically loads all repository labels (multi-page fetch)
  • Clean filter bar UI

πŸ“„ Pagination

  • Real GitHub API pagination
  • Page navigation controls
  • Page state preserved
  • Filter + pagination integration

πŸ“Œ Issue Cards

  • Clickable issue title (opens GitHub issue in new tab)
  • Author & comment count
  • Label badges (color-coded)
  • Open / Closed status indicator

πŸ–₯️ UI Theme

  • Dark dashboard style
  • Neon green accent highlights
  • Card-based stat modules
  • Responsive layout
  • Centered heatmap footer
  • Clean stat-panel aesthetic

πŸ› οΈ Tech Stack

Frontend

  • React.js
  • React Router
  • Axios
  • Chart.js
  • react-chartjs-2
  • react-github-calendar

APIs

  • GitHub REST API
  • GitHub GraphQL API (Contributions)
  • GitHub Pagination System

πŸ“‚ Project Structure

src/
 β”œβ”€ pages/
 β”‚   β”œβ”€ GFIS.js
 β”œβ”€ components/
 β”œβ”€ App.js
 β”œβ”€ App.css
 β”œβ”€ index.js
public/
.env
package.json
README.md

βš™οΈ Setup & Installation

1️⃣ Clone repo

git clone https://github.com/YOUR_USERNAME/git-stat.git
cd git-stat

2️⃣ Install dependencies

npm install

3️⃣ Create environment file

Create .env in root:

REACT_APP_GITHUB_TOKEN=your_github_token_here

⚠️ Must start with REACT_APP_


πŸ”‘ Generating GitHub Token

  1. GitHub β†’ Settings
  2. Developer Settings β†’ Personal Access Tokens
  3. Create Fine-grained or Classic token

Recommended permissions:

  • User metadata β†’ Read
  • Repository metadata β†’ Read

GraphQL access required for contributions.


▢️ Run locally

npm start

App runs on:

http://localhost:3000

πŸ“Š Data Sources

Data Source
Profile info REST API
Repo stats REST API
Stars / forks REST API
Issues REST API
Labels REST API
Contributions GraphQL API
Heatmap GitHub Calendar

🧠 Contribution Logic

  • Longest streak β†’ historical forward scan
  • Current streak β†’ reverse scan
  • Skips current UTC day if not updated
  • GraphQL calendar parsing

πŸ”„ API Handling

  • REST pagination for issues
  • REST pagination for labels (multi-page fetch)
  • Controlled useEffect refetch logic
  • Clean dependency management
  • No infinite re-render loops

πŸ”’ Security Notes

  • Tokens stored in .env
  • .env ignored via .gitignore
  • Token required for GraphQL
  • For production β†’ move token to backend proxy

πŸ“Έ Preview

Screenshot 2026-02-21 at 09-06-09 Git Stat Screenshot 2026-02-21 at 09-06-35 Git Stat

πŸš€ Roadmap

  • πŸ“Š Issue analytics charts (open vs closed)
  • πŸ“ˆ Issue activity timeline
  • πŸ† Contribution rank system
  • πŸ”Ž Search inside issues
  • βš” Profile comparison
  • 🌍 Leaderboard system
  • 🧠 AI-based repository insights

🀝 Contributing

Pull requests welcome. For major changes, open an issue first to discuss improvements.


πŸ’» Author

Built by openvaibhav GitHub: https://github.com/openvaibhav


Turning GitHub activity into a competitive stat experience.

About

A GitHub analytics dashboard that tracks developer activity, contributions, repositories, and language distribution in a stats-tracker UI.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors