Skip to content

🚀 Feature: Add Repository Comparison Feature with side-by-side analytics #538

@PremDhakad07

Description

@PremDhakad07

🔖 Feature description

🚀 Feature description

This feature introduces a Repository Comparison Tool that allows users to compare two GitHub repositories side-by-side using key GitHub metrics.

Users should be able to enter two GitHub repository names in the format owner/repo (e.g., facebook/react, vuejs/core) and view a structured comparison.


📊 Metrics to Compare

The comparison should include:

  • ⭐ Stars (stargazers_count)
  • 🍴 Forks (forks_count)
  • 🐛 Open Issues (open_issues_count)
  • 👀 Watchers (watchers_count)
  • 💻 Primary Language (language)
  • 📅 Last Updated (updated_at)
  • 🧾 Repository Description (optional)

🖥️ UI Suggestion

A side-by-side comparison layout:

Metric Repo 1 Repo 2
Stars
Forks 🍴 🍴
Issues 🐛 🐛
Language JS/TS Python
Last Updated Date Date

⚙️ Implementation Notes

  • Use GitHub REST API:
    https://api.github.com/repos/{owner}/{repo}

  • Fetch both repositories in parallel for performance

  • Handle edge cases:

    • Invalid repository name
    • Empty input fields
    • GitHub API rate limiting
  • Ensure responsive UI for both mobile and desktop users


✨ Optional Enhancements

  • Highlight the better repo for each metric
  • Add a scoring system based on repo activity
  • Add charts/graphs for visualization
  • Allow comparison of more than 2 repositories
  • Add comparison history feature

📌 Purpose

This feature improves the platform by allowing users to quickly analyze and compare GitHub repositories based on real-time metrics, helping them evaluate project popularity, activity, and health.

🎤 Screenshot

No response

🔄️ Additional Information

No response

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions