REA npm workspaces notes (unofficial)

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

npm workspaces (root package.json workspaces field) declare monorepo package membership. In REA 6.7.x, treat them as Evidence beside npm lock routes — complementing rea-npm-lockfiles and rea-pnpm-workspace.

Mental model

  1. Authorize root package.json (+ lock / packages you hold).
  2. Quote selected workspace globs/paths you actually see.
  3. Lock pins → rea-npm-lockfiles.
  4. pnpm/Yarn cousins → rea-pnpm-workspace / rea-yarn-berry when those tools own the tree.
  5. Do not invent an npm ls -ws graph REA never ran.

Minimal path

# authorized root package.json workspaces (+ package-lock.json / tarballs you hold)
# quote selected workspace globs into case notes
# REA archive/npm routes on /absolute/path/artifact --json
# do not invent: rea inspect_npm_workspaces .

Compare

ArtifactHonest posture
package.json workspacesnpm workspace membership facts
npm lockfilesrea-npm-lockfiles
pnpm-workspace.yamlrea-pnpm-workspace
Cargo workspace cousinrea-cargo-workspace

Scope we will not cover

  • No inventing inspect_npm_workspaces / automatic registry crawlers.
  • No npm token theft.
  • No pirate redistribution of private packages.
  • No crack framing for commercial Node/Electron apps.

RepoRead is unofficial. Prefer workspace/lock honesty + DISCLAIMER.md.

FAQ

How is this different from rea-pnpm-workspace?

rea-pnpm-workspace covers pnpm-workspace.yaml. This page zooms on npm package.json workspaces globs beside npm lock routes.

Is there inspect_npm_workspaces in 6.7.0?

Not assumed. Quote workspaces fields you actually open, then use documented npm/lock/archive lanes. Do not invent inspect_npm_workspaces.

Does REA run npm install?

No. Local trees only. No registry credential theft.

Lockfile still matters?

Yes — workspace membership alone does not prove resolved versions. See rea-npm-lockfiles.

npm version checked?

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

Sources