devtools.cihat.dev

Compare GitHub repositories

Choosing between libraries? Put two to four repositories side by side and see which is more followed, more active and licensed the way you need.

GitHub API: 60 requests an hour per network without signing in.

How to use it

  1. Type two repositories as owner/repo or paste their links. Add a third and fourth if you like.
  2. Press Compare. One request per repository goes to GitHub’s public API.
  3. Read the table, or copy it as a Markdown table for an issue, a decision record or a pull request.

What to compare when choosing a dependency

Stars say how many people noticed a project. Watchers and forks say more about who works with it. The last push and open issues together tell you whether someone is still maintaining it. The license tells you whether you may use it at all.

A difference of a few hundred stars between two libraries means little. A difference of two years in the last push means a lot.

  • Activity: last push within the last few months is a good sign; check the commits for real work, not only bot updates.
  • License: MIT, Apache 2.0 and BSD let you use the code in closed products; GPL asks you to share your changes. See the license checker.
  • Fit: the main language and size tell you what you are pulling into your project.

About the numbers

Every figure comes from the GitHub REST API when you press Compare. GitHub counts open pull requests inside open issues. Size is the compressed Git data GitHub stores, history included.

For one repository in depth, with its language mix and topics, use the repo analyzer.

Questions people ask

How do I compare two GitHub repositories?

Enter both above and press Compare. You get stars, forks, watchers, open issues, last push, license, language and size side by side, with the leader marked where more is better.

Is this the same as comparing branches?

No. Comparing branches or commits inside one repository happens on GitHub itself, at github.com/owner/repo/compare. This tool compares separate repositories.

How many repositories can I compare?

Up to four at once. Each one costs a single request of the 60 GitHub allows per hour without signing in.

Can I share the comparison?

Yes. After you compare, the address bar holds the repositories, so the link opens the same comparison.