Note: OSS Gadget is currently in public preview and is not ready for production use.
OSS Gadget is a collection of tools that can help analyze open source projects. These are intended to make it simple to perform low-level tasks, like locating the source code of a given package, downloading it, performing basic analyses on it, or estimating its health. The tools included in OSS Gadget will grow over time.
A list of tools included is below. Click on the name of a tool to go to the wiki for usage information.
All OSS Gadget tools accept one or more Package URLs as a way to uniquely identify a package. Package URLs look like pkg:npm/express
or pkg:gem/azure@0.7.10
. If you leave the version number off, it implicitly means, "attempt to find the latest version". Using an asterisk (pkg:npm/express@*
) means "perform the action on all available versions".
OSS Gadget supports packages provided by these sources:
pkg:cargo/...
pkg:cocoapods/...
pkg:composer/...
pkg:cpan/...
pkg:cran/...
pkg:github/...
pkg:golang/...
pkg:hackage/...
pkg:maven/...
pkg:npm/...
pkg:nuget/...
pkg:gem/...
pkg:pypi/...
pkg:ubuntu/...
pkg:vsm/...
pkg:url/...?url=URL
We will continue expanding this list to cover additional package management systems and would be happy to accept contributions from the community.
All OSS Gadget tools are command line programs. When installed globally, they can be accessed from your path. For example, to download the NPM left-pad module, type:
$ oss-download pkg:npm/left-pad
This will download left-pad into a newly-created directory named npm-left-pad@1.3.0
. (Because, at the time of this writing, 1.3.0 was the latest version of left-pad).
Each of the programs self-documents information on command line options (--help
).
OSS Gadget builds with standard dotnet build
commands and includes tests via dotnet test
.
See Building from Source in the wiki for information on building from source.
See Docker Image in the wiki for information on how to use the included Dockerfile.
See Advanced Usage in the wiki for advanced usage information like changing API endpoints.
To report a security vulnerability, please see SECURITY.md.
This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.
When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.