REA npm tarball metadata notes (unofficial)
npm pack .tgz files are archives. Inventory them; quote package.json and file lists as Evidence — nothing more.
Mental model
- Obtain the tarball via
npm packon a project you own, or a vendor-supplied artifact you may analyze. - Run the archive inventory route on the absolute
.tgzpath. - Record
package/package.jsonname, version, license and dependency declarations when present. - Extract individually if you need to analyze nested binaries/scripts with other routes.
- Installed
node_modulestrees → 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
| Artifact | Honest posture |
|---|---|
.tgz from npm pack | Archive inventory + metadata facts |
| Installed package directory | rea-npm-packages |
| Want CycloneDX document | External transform — rea-cyclonedx-strings |
| Minified JS inside | rea-minified-js after extract |
Scope we will not cover
- No npm token / registry credential theft.
- No publishing malware packages.
- No inventing
inspect_npm_tarballunless 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).