zero-shelter
English · 한국어
Turns dependency scanner output into a short, deterministic list of what to fix
now — and stops telling you about the rest.
Local-first. No LLM at runtime, no network calls of its own, no telemetry.
Status: early. zero-shelter
is published as a preview. The pipeline runs end to end, and CI covers it on
Linux, macOS and Windows — including installing the packaged tarball and
running the tool on this repository itself. The interface may still change
before 0.1.0.
The problem
Run the scanners on a real project and you get hundreds of warnings. Maybe five
are worth doing something about today. Finding those five costs more attention
than fixing them, so after a while nobody opens the report.
There is no shortage of tools that find things. What is missing is the part that
decides which of them matter right now.
What it does
$ npx zero-shelter judge
fix these 5 now
critical minimist GHSA-XVCH-5GV4-984H → — 125
critical lodash GHSA-JF85-CPCP-J695 → — 125
high minimatch GHSA-3PPC-4F35-3M26 → — 100
high minimatch GHSA-7R86-CG39-JMMJ → — 100
high lodash GHSA-35JH-R3H4-6JHM → — 95
npm i [email protected] clears 2
13 reported → 13 after merge → 5 to fix (62% less noise)
first run — record these as accepted with --update-baseline, then only new findings are reported
Record what is already there, and from then on you only hear about what is new:
$ npx zero-shelter judge --update-baseline
recorded 13 finding(s) from npm audit, osv-scanner as accepted in .zero-shelter/baseline.json
$ npx zero-shelter judge
✓ nothing new to fix
13 reported → 13 after merge → 0 to fix (100% less noise), 13 already accepted
dependencies only — 2 workflow files and anything to do with secrets went unread
Exit code is 1 when anything is new, so CI fails on the regression this change
introduced rather than on the backlog it inherited.
Fix something and it says so:
$ npm i [email protected]
$ npx zero-shelter judge
✓ nothing new to fix
7 reported → 7 after merge → 0 to fix (100% less noise), 7 already accepted
✓ 2 accepted finding(s) no longer reported — re-record with --update-baseline to drop them
"No longer reported" rather than "fixed", because a finding also disappears
when the scanner that found it did not run. The baseline records which scanners
contributed, so when one of them is missing this run, the line says which —
and when JSON is the surface, missingSources carries the same qualification.
When they all ran again, it does not manufacture doubt.
On a clean run, the report also states the dependency-only boundary using only
artifacts present in the project. It does not scan or judge those domains: for
example, secrets are always outside this tool, while Dockerfiles, workflows,
and infrastructure are mentioned only when the corresponding files exist.
If an optional scope check cannot complete, JSON sets unscanned.complete to
false and the human line says so; false or 0 then is not evidence that an
artifact is absent.
Install
Two things, and the second one is not optional.
$ npm i -g zero-shelter # or npx zero-shelter judge
$ brew install osv-scanner # or a release from google/osv-scanner
npm audit always runs, because a project with a lockfile already has npm. It
is one source. This tool reconciles sources, so with one of them there is
nothing to reconcile — you get ranking and a baseline, and the count comes out
the same as it went in.
The difference is not just a shorter list. On the pinned captures, the second
source supplies fixed versions and advice for vulnerable transitive packages:
| project | fixed versions: npm audit → both | direct commands: npm audit → both | transitive advice: npm audit → both |
|---|
| juice-shop | 15/73 → 50/82 | 6 → 6 | 0 → 11 |
| nodegoat | 7/177 → 109/173 | 2 → 5 | 0 → 49 |
| dvna | 20/51 → 40/51 | 7 → 7 | 0 → 6 |
| hackathon-starter | 0/11 → 4/11 | 0 → 0 | 0 → 2 |
The transitive block is empty with npm audit alone on every pinned capture,
and populated when osv-scanner contributes too. That is the difference between
a report that says a version exists and one that can explain what to do about it.
The noise reduction still matters for readability. On uptime-kuma:
npm audit alone 71 reported → 71 to fix (0% less noise)
plus osv-scanner 142 reported → 71 to fix (50% less noise)
Both numbers are real. The second scanner does not find 71 new problems — it
describes the same ones again, under identifiers the first one did not use, and
reconciling that is the job.
A run without osv-scanner still works and says so rather than failing. It is
just the smaller half of the tool.