Query Gold Open Source programmatically and show your project's security status with a live README badge — free, read-only, no API key.
Embed a live Safeguard Gold status badge in any README or docs. It updates automatically as a package's security status changes.
Markdown:
[](https://gold.safeguard.sh/package/npm/lodash)Pattern: /badge/<ecosystem>/<name> — e.g. /badge/pypi/requests, /badge/npm/@types/node.
Fail your build when a dependency is actively exploited (CISA KEV) or known-vulnerable — no account, no API key, and your source never leaves the runner. Drop this into .github/workflows/gold-scan.yml:
name: Gold Scan
on: [push, pull_request]
jobs:
gold-scan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: safeguard-sh/gold-scan-action@v1
with:
fail-on: kev # kev | vuln | noneOr run it anywhere with Node — pre-commit hooks, GitLab CI, or your laptop:
npx @safeguard/gold-scan . --fail-on kevSupports npm, PyPI, crates.io, Go, RubyGems & Packagist manifests. Fails open if the API is unreachable, so a Gold outage never blocks your pipeline. Full docs →
All endpoints are GET, return JSON, and are rooted at https://gold.safeguard.sh. Read-only and free.
/api/packages?search=lodash&ecosystem=npmSearch packages (filter by ecosystem, status; paginated).
/api/packages/{name}Package detail — vulnerabilities, license, version, live download count.
/api/packages/{name}/vulnerabilitiesThe CVEs affecting a package.
/api/packages/statsCorpus-wide package statistics.
/api/vulnerabilities?search=&severity=criticalSearch CVEs by keyword, severity, or ecosystem.
/api/vulnerabilities/{cve}CVE detail — CVSS, EPSS, CISA KEV status, affected/fixed versions.
Example:
curl https://gold.safeguard.sh/api/packages/lodashThe API is provided as-is for read-only use. Data is aggregated from public sources — see Credits & Data Sources. Please cache badge/API responses rather than requesting them on every page load.