REA npm tarball metadata notes (unofficial)

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

npm pack .tgz files are archives. Inventory them; quote package.json and file lists as Evidence — nothing more.

Mental model

  1. Obtain the tarball via npm pack on a project you own, or a vendor-supplied artifact you may analyze.
  2. Run the archive inventory route on the absolute .tgz path.
  3. Record package/package.json name, version, license and dependency declarations when present.
  4. Extract individually if you need to analyze nested binaries/scripts with other routes.
  5. Installed node_modules trees → rea-npm-packages.

Minimal path

# from an authorized project tree
# npm pack
# then REA archive inventory on /absolute/path/project-version.tgz --json
# quote package.json fields actually returned in Evidence

Compare

ArtifactHonest posture
.tgz from npm packArchive inventory + metadata facts
Installed package directoryrea-npm-packages
Want CycloneDX documentExternal transform — rea-cyclonedx-strings
Minified JS insiderea-minified-js after extract

Scope we will not cover

  • No npm token / registry credential theft.
  • No publishing malware packages.
  • No inventing inspect_npm_tarball unless upstream documents it — use archive routes.

RepoRead is unofficial. Prefer skill archive inventory and npm pack docs.

FAQ

What is an npm pack tarball?

npm pack produces a .tgz (gzip-compressed tarball) containing the files npm would publish — typically under a package/ prefix with package.json.

How is this different from rea-npm-packages?

rea-npm-packages covers installed package trees / package.json workflows. This page focuses on the packed .tgz artifact as Evidence.

Does REA call the npm registry for me?

Do not assume a registry scraper. Analyze local tarballs you are authorized to hold. No credential theft.

SBOM angle?

Declared dependencies in package.json are facts — map externally if you need CycloneDX (rea-cyclonedx-strings). REA is not an npm SBOM exporter.

npm version checked?

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

Sources