See how many people use a Java library, with Sourcegraph badges
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:
[![Sourcegraph]
(https://sourcegraph.com/github.com/junit-team/junit4/-/badge.svg)](https://sourcegraph.com/github.com/junit-team/junit4?badge)
Customize the look and feel of your badge with 3 different styles by tacking any of these onto the badge.svg
URL:
?style=plastic
?style=flat
?style=flat-square
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:
[![Sourcegraph]
(https://sourcegraph.com/github.com/junit-team/junit4/-/badge.svg)](https://sourcegraph.com/github.com/junit-team/junit4?badge)