REA npm-shrinkwrap.json notes (unofficial)

Last updated: · By the RepoRead editorial team · Unofficial guide
Quick answer

npm-shrinkwrap.json pins npm shrinkwrap/lock identity. In REA 6.7.x, treat selected pins as Evidence beside archive/package routes — complementing cousins without inventing APIs.

Mental model

  1. Authorize the npm-shrinkwrap.json (+ artifacts you hold).
  2. Quote selected pins you actually see (never paste secrets / tokens).
  3. Cousins → lockfiles · package.json · npmrc.
  4. Bind absolute paths honestly → rea-absolute-paths.
  5. Do not invent a inspect_npm_shrinkwrap API REA never called.

Minimal path

# authorized npm-shrinkwrap.json (+ artifact you hold)
# quote selected name/version/lockVersion pins into case notes; never paste tokens
# cousins → npm-lockfiles / package-json / npmrc-config
# REA package/archive routes on /absolute/path/artifact --json
# do not invent: rea inspect_npm_shrinkwrap .

Compare

ArtifactHonest posture
npm-shrinkwrap.jsonShrinkwrap/lock identity facts
lockfiles lanerea-npm-lockfiles
package.jsonrea-npm-package-json
Evidence binderrea-evidence-explained

Scope we will not cover

  • No inventing inspect_npm_shrinkwrap / automatic SaaS runs.
  • No credential theft from env / tokens in config files.
  • No pirate redistribution of paid packages.
  • No crack framing via config pins.

RepoRead is unofficial. Prefer config honesty + DISCLAIMER.md.

FAQ

How is this different from rea-npm-lockfiles?

rea-npm-lockfiles covers package-lock / yarn / pnpm lock lanes. This page zooms on npm-shrinkwrap.json Evidence — it does not overwrite that page.

Is there inspect_npm_shrinkwrap in 6.7.0?

Not assumed. Quote pins you actually open. Do not invent inspect_npm_shrinkwrap.

Does REA run formatters/linters/CI uploaders or call SaaS?

No. Local trees only. No credential theft.

npm-shrinkwrap.json vs package-lock.json?

Label Evidence by the file present. Quote lockVersion / package pins you open; do not invent a merger API.

npm version checked?

rea-agents 6.7.0 (re-checked 2026-10-24).

Sources