See how many people use a Java library, with Sourcegraph badges
Update (September 20, 2017): Viewing a list of repositories that refer to another repository is currently disabled. It will be added back soon. Viewing function call sites across repositories is still supported.
We’re excited to announce that Sourcegraph “used by” badges now support Java libraries. If you’re an open source author, these badges tell you how many other projects depend on your work. If you’re an open source user, the badges help you make an informed decision based on how many others are actually using and relying on a library.
Our badges pull dependency information from the same global code graph that helps you make sense of code on Sourcegraph.com. Code is data, and we’re on a mission to make that data useful to programmers everywhere.
How to add the badge
Copy the following snippet to your README.md and replace “github.com/junit-team/junit4” with the name of your repository:
Customize the look and feel of your badge with 3 different styles by tacking any of these onto the
Here are just a few of the popular open source repositories that already use the badge:
- gorilla/mux, URL router and dispatcher for Go: used by 3,000+ projects
- Gogs, a self-hosted Git service: used by 1,000+ projects
- bleve, a modern text indexer: used by 657 projects
- Go kit, a toolkit for microservices: used by 509 projects
- Caddy webserver: used by 237 projects
How many people rely on your open source code? Find out now by pasting the Markdown snippet into your README. Here it is again:
Thanks to Dan Adler and Quinn Slack.
About the author
Beyang Liu is the CTO and co-founder of Sourcegraph. Beyang studied Computer Science at Stanford, where he published research in probabilistic graphical models and computer vision at the Stanford AI Lab. You can chat with Beyang on Twitter @beyang or our community Discord.