Repository badges (Go open-source projects only) generates badges with usage statistics for open-source Go repositories. The badges shows the total number of Go packages (among all known public repositories) that import the repository’s Go packages.

To add a badge to your project’s, add this Markdown:


(Be sure to replace with your own repository’s name.)

This renders the following badge:


Known issues

Please report any other issues and feature requests on the Sourcegraph issue tracker.

  • The number may be overcounted because it is the sum of counts for all of the repository’s subpackages. If another project uses multiple subpackages in this repository, the project is counted multiple times.
  • Importers using custom Go import paths (i.e., anything other than import paths prefixed by the repository name, such as will not be counted.