Blazing fast, 100% local, privacy-first open-source Software Composition Analysis (SCA) & license compliance CLI auditor.
Key Features • Supported Ecosystems • Installation • Quick Start • Compliance Rules • Contributing
- 🛡️ 100% Local & Privacy-First: No code, repository manifests, or proprietary files ever leave your machine. Your IP stays yours.
- ⚡ High-Performance Concurrent Scanning: Queries public registries (NPM, PyPI, Cargo, NuGet, Maven Central, Go Modules) concurrently using a thread pool.
- 💾 Smart Local Caching: Caches resolved metadata locally (
~/.yellowduck/license_cache.json) to make subsequent scans near-instant. - 📊 Stunning Glassmorphic Reports: Generates interactive, modern, dark-mode HTML dashboards with instant filtering.
- 📜 CycloneDX Standard SBOM: Export your compliance audits directly into standard CycloneDX JSON Software Bill of Materials (SBOM).
- ⚖️ Automated Compliance Verification: Instantly flags high-risk copyleft licenses (GPL, AGPL) that can legally compromise proprietary source code.
The scanner automatically detects and parses project manifest files across all major modern packaging systems:
| Ecosystem | Package Manager | Manifest File | Risk Checking |
|---|---|---|---|
| Node.js | NPM / Yarn / Pnpm | package.json |
✅ Yes |
| Python | PIP / Pipenv | requirements.txt |
✅ Yes |
| Go | Go Modules | go.mod |
✅ Yes |
| Java / Kotlin | Maven | pom.xml |
✅ Yes |
| Rust | Cargo | Cargo.toml |
✅ Yes |
| .NET / C# | NuGet | .csproj |
✅ Yes |
| PHP | Composer | composer.json |
✅ Yes |
Yellow Duck Scanner requires Python 3.8+. You can install the tool directly from source:
# Clone the repository (or navigate to scanner directory) cd yellow-duck-scanner # Install in editable mode or globally pip install .
This registers the global yd-scanner executable to your system path.
Scan your project directory and generate audits in seconds.
# Scan the current directory and generate report.html yd-scanner # Scan a specific directory yd-scanner /path/to/my-project
# Generate standardized compliance SBOM
yd-scanner /path/to/my-project --output-format sbom --output-file sbom.jsonyd-scanner /path/to/my-project --output-format json --output-file report.json
# Increase concurrent worker threads (Default: 10) yd-scanner /path/to/project --threads 25 # Force fresh lookup (bypass local cache) yd-scanner /path/to/project --no-cache # Clear local license cache yd-scanner --clear-cache
┌─────────────────┐ ┌─────────────┐ ┌─────────────────────────┐
│ Project Source ├─────►│ Manifest ├─────►│ Concurrent API Resolver │
│ (Local Folder) │ │ Parsers │ │ (Local cache / Online) │
└─────────────────┘ └─────────────┘ └────────────┬────────────┘
│
┌─────────────────┐ ┌─────────────┐ ┌────────────▼────────────┐
│ HTML Report / │◄─────┤ Compliance │◄─────┤ License Rules Engine │
│ CycloneDX SBOM │ │ Flagging │ │ (Risk Evaluation) │
└─────────────────┘ └─────────────┘ └─────────────────────────┘
Dependencies are classified into three core compliance risk tiers:
- Licenses: GPL, AGPL, CC-BY-NC, etc.
- Implication: Requires you to disclose/release the source code of your entire application under the same license if distributed.
- Licenses: LGPL, MPL, EPL, CDDL, etc.
- Implication: Requires releasing modifications made to the library itself, but allows linking with proprietary software without forcing open-source disclosure.
- Licenses: MIT, Apache 2.0, BSD (2 & 3 Clause), ISC, Unlicense.
- Implication: Allows full proprietary modification, commercial redistribution, and sub-licensing without any source code disclosure requirements.
Contributions make the open-source community an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
Distributed under the MIT License. See LICENSE for more information.