How to use the used by button in the GitHub repository

Viewed 3637

Hello i have published a library in my github repository and i want to use the used by button in the repository

I checked the repository settings but found no options to enable it How do I enable this button in my repository? enter image description here

1 Answers

netlify/staticgen issue 507 also asks, as you do:

GitHub introduced a new metric, which I find much more relevant than stars or downloads. It shows the number of times a dependency is used by other repositories.

https://user-images.githubusercontent.com/103008/58381225-c4911d80-7fba-11e9-9179-1964cc18e963.png

How is this metric added to a repository?

GitHub shows package metrics for projects that use a package manager, eg. if your repo has a package.json, it will use that to show your dependency network.

It is then automatically analyzed by GitHub, which scan other repository where your project reference shows up.

This was announced last May 2019 by GitHub.
And it can be misleading (for monorepos)

Official documentation: "Listing the projects that depend on a repository"

This is only for projects using:

  • RubyGems
  • NPM
  • PyPI
  • Maven (pom.xml only)
  • Nuget

Check the supported languages.

Related