lacspace-deps
Dependency, licence & SBOM auditor as a CI gate.
npx lacspace-depsEverything, in one command
Most projects don't really know what they ship. lacspace-deps reads package.json, the lockfile and your local node_modules and answers the questions that matter for supply-chain hygiene: are these licences allowed, what's bloating node_modules, which libraries are installed twice, what's declared but never imported (or imported but never declared), and — opt-in — what's fallen behind on the registry. Everything except the outdated check is pure filesystem work with no telemetry.
What's inside
Licence policy gate
Classify every package and fail on a GPL-*/AGPL-* with --allow/--deny.
Install-size report
Heaviest packages by real on-disk bytes + file counts, with a gzip estimate.
Duplicate detection
Packages installed at multiple versions, with where each copy lives.
Unused & missing
Declared-but-never-imported and imported-but-undeclared deps from a source scan.
Outdated (opt-in)
Registry latest-version diff flagging majors behind; the only online feature.
CI-ready output
Human, --json or -f md; non-zero exit on --fail-on categories.
Zero-dep & local
Keyless, no account, no telemetry; Node built-ins only.
SBOM export
Generate a CycloneDX 1.5 or SPDX 2.3 JSON bill of materials for your whole dependency tree.
.depsrc.json policy
Keep allow/deny, max-severity and fail-on gates in the repo; auto-discovered, CLI overrides.
Max-severity licence gate
Fail on anything stricter than a chosen category, no glob lists needed.
Package-URL (purl) ids
Every SBOM component carries a standard pkg:npm/... purl and bom-ref.
Copy, paste, done
Real commands and snippets — from a one-liner to the typed library.
npx lacspace-depsHealth score + every section for the current project.
npx lacspace-deps --allow "MIT,ISC,Apache-2.0,BSD-*" --deny "GPL-*,AGPL-*"Exits 1 on a copyleft dependency.
npx lacspace-deps unused --fail-on unused,missingGate the build on hygiene.
npx lacspace-deps size --top 15 --gzipHeaviest packages by install size.
npx lacspace-deps duplicatesFind the same library installed twice.
npx lacspace-deps -f md > deps-report.mdDrop into a job summary.
npx lacspace-deps sbom --format cyclonedx > bom.jsonStandards-compliant CycloneDX 1.5 JSON.
npx lacspace-deps sbom ./my-app --format spdx > sbom.spdx.jsonSPDX 2.3 with purl externalRefs + DESCRIBES relationships.
npx lacspace-deps --max-severity weak-copyleft --fail-on licenseExit 1 on any strong-copyleft or unknown licence.
npx lacspace-deps --policy ./.depsrc.jsonAllow/deny + maxSeverity + failOn from one JSON file.
What people build with it
✓ CI licence-compliance gate
✓ Pre-release supply-chain audit
✓ Trim node_modules bloat (size + duplicates)
✓ Catch dead/phantom dependencies during refactors
Run lacspace-deps today
Free, open-source, no API keys. It's a CLI and a typed library.
npx lacspace-deps