GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - Lingikaushikreddy/release-lens: Review exact npm tarball changes offline: byte growth, file hashes, and manifest evidence.

BranchesTags
Open more actions menu

Latest commit

 

History

12 Commits
12 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
apps/web
apps/web
 
 
docs
docs
 
 
evidence
evidence
 
 
fixtures
fixtures
 
 
packages
packages
 
 
scripts
scripts
 
 
tests
tests
 
 
.gitignore
.gitignore
 
 
.npmrc
.npmrc
 
 
CHANGELOG.md
CHANGELOG.md
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
SECURITY.md
SECURITY.md
 
 
THIRD_PARTY_NOTICES.md
THIRD_PARTY_NOTICES.md
 
 
package.json
package.json
 
 
playwright.config.ts
playwright.config.ts
 
 
pnpm-lock.yaml
pnpm-lock.yaml
 
 
pnpm-workspace.yaml
pnpm-workspace.yaml
 
 
tsconfig.json
tsconfig.json
 
 
vite.config.ts
vite.config.ts
 
 
vitest.config.ts
vitest.config.ts
 
 

Repository files navigation

Release Lens

Review exactly what changed between two npm tarballs, without installing or running either package.

Try the public app · npm package · GitHub release · 0.1.2 release verification

0.1.2 includes a browser review app and a Node CLI built on the same bounded streaming analysis core. Compare two .tgz files, trace payload growth to individual files, inspect manifest changes and missing literal targets, and export a deterministic JSON report.

See a release review

Open the public app and choose Explore an example, or drop your own before and after .tgz files into the workbench. The tarball x-ray previews the oversized example and its clean follow-up; Review this example analyzes the selected archive pair. The preview is labeled synthetic and stays separate from any report you have already computed. Swap archives to reverse the comparison, and choose a 1 MiB or 10 MiB growth budget with one click.

Release Lens bright workbench with an interactive archive comparison and example shortcut

The synthetic example adds two fixture files totaling 18 MiB, plus 4 manifest bytes: +18,874,372 B of unpacked payload. Its /bin/demo changes to dist/missing.js, which is absent from the after archive. Select a category to drill into its files, combine change filters with path search, sort by growth or size, and expand a row for exact bytes and SHA-256 evidence. Filters change the view; exported JSON retains the complete report.

Interactive evidence review showing selected fixture files, change filters, exact byte deltas and SHA-256 hashes

Choose Compare clean follow-up to compare the problematic release with its correction. It removes the fixture files, restores the literal bin target, and reports −18,874,372 B with 0 missing local targets in the after archive. Wildcard targets remain explicitly unchecked.

See the clean follow-up, review overview, and mobile workbench. Screenshots show the production build using bundled synthetic fixtures. Analysis runs in a worker on your device; local tarballs stay in your browser. Package scripts are displayed as inert text and are never run.

CLI quickstart

Requires Node 22.13+ or Node 24. Run the versioned scoped package directly:

npx --yes @kaushikgojo/[email protected] diff before.tgz after.tgz --format json

For 0.1.2, the versioned release report records the six clean npx/npm installation cases, exact archive hash and verified provenance. Download the raw verification bundle for individual receipts.

For the earlier 0.1.1, real registry npx and clean npm installation passed on Windows, Linux and macOS with Node 22/24, including a complete release rerun. That rerun skipped npm publication after matching the existing archive's exact bytes. Historical 0.1.0 installation results remain in the npm release report.

Or install this release globally:

npm install --global @kaushikgojo/[email protected]
releaselens diff before.tgz after.tgz --format json

Replace before.tgz and after.tgz with your package artifacts. The npm package is @kaushikgojo/release-lens; its installed command is releaselens. The unscoped npm name releaselens belongs to a different project. Installing above installs Release Lens itself; analyzed packages are never installed.

To save a report and enforce a 1 MiB unpacked growth budget:

releaselens diff before.tgz after.tgz --format json \
  --out report.json --max-unpacked-growth 1048576

--out writes atomically and leaves stdout empty. Without it, stdout contains only the selected report. Diagnostics go to stderr. Exit codes: 0 completed within budget or no budget; 1 budget exceeded; 2 bad arguments or archive; 3 I/O or unsupported runtime; 130 cancellation. Warnings do not change the exit status. releaselens --help documents all arguments.

Reports and verification

Releases are automated through GitHub Actions: matching version tags require the exact commit's full CI matrix, publish the tested tarball through npm trusted publishing, and run fresh npx/npm installs on Windows, Linux and macOS with Node 22/24. GitHub releases are finalized after all six cases and source-bound provenance verification pass. See the release runbook for tags, manual candidate rehearsals and failure recovery.

Failure and rerun paths are exercised too: the full 0.1.1 rerun passed all nine jobs without republishing or changing the eight original release assets. A separate read-only rehearsal deliberately failed the real archive-integrity check, then passed a failed-job rerun using the preserved reviewed artifact. The safety report includes raw records and the limits of the injected tests.

Evidence What it records
0.1.2 automated release report Exact source/main-CI/release-run links, Windows/Linux/macOS Node 22/24 registry results, archive identity and source-bound provenance. Raw receipts and attestations.
Release safety report Live existing-version skip, expected integrity failure and successful recovery, plus 60 local release checks on each supported Node version.
0.1.1 release rerun, attempt 2 All nine jobs passed; npm publish skipped; all six fresh Windows/Linux/macOS Node 22/24 registry cases passed again.
Failure and recovery rehearsal Attempt 1 rejected a deliberately corrupted local expectation; attempt 2 reused the original artifact and passed real anonymous npx/npm installation.
Cross-platform registry run 38988622040 Six successful real npx and clean npm installation cases: Node 22/24 on Windows, Linux and macOS, using anonymous registry access and fresh caches.
npm release verification Published artifact identity, the six-case hosted registry matrix, and downloadable verification reports for @kaushikgojo/[email protected].
Hosted CI run 38985298412 Successful verification of the original GitHub release commit ff246497: Node 22/24 on Linux, macOS and Windows, browser checks, and deployment checks.
0.1.0 verification bundle Downloadable hosted verification evidence for the original GitHub release. SHA256SUMS and release.json identify release assets.
Independent oracle report Four supported artifact pairs checked with CPython tarfile and hashlib: synthetic growth, cleanup, inert hostile text, and real is-number 6.0.0 → 7.0.0 tarballs.
Public release verification Hosted release process, required checks, evidence boundaries, and outstanding maintainer pilots.
Measurement contract Exact report semantics and limits of each measurement and finding.

The 0.1.0 bundle and its hosted CI run record the original public artifacts. The npm release report records the later scoped npm publication and its distribution checks.

The independent oracle checks paths, payload lengths, hashes, whole archive lengths, deltas, and repeated JSON output without extracting to disk. It checks valid supported inputs; it does not define acceptance policy for malformed archives. Real fixture identities and original registry URLs are in the corpus records. The earlier macOS candidate observations remain in the historical report.

What the report means

unpackedBytes counts regular-file payloads. Every file delta adds exactly to the reported payload growth. Categories are filename heuristics. archiveDelta is the change in whole gzip file bytes; per-file compressed contributions are not additive and are not claimed. Neither measure is the installed footprint.

Manifest comparisons cover files, exports, main, module, types, bin, engines, dependencies, and scripts. Target checks establish only that an exact local regular file exists in the tarball. Wildcards and unsupported targets remain explicitly unchecked. This does not establish Node resolution, compatibility, package safety, complete install footprint, or provenance.

The JSON schema is version 1, stable throughout 0.1.x; absent and null manifest values are distinguished by existence flags. Deterministic output excludes timestamps and local machine paths. See the measurement contract.

Input limits

Per archive: 25 MiB compressed, 150 MiB expanded (including tar overhead), 20,000 tar records including extension records, 16 MiB per file, 1 MiB aggregate PAX metadata, 1 MiB manifest and bounded gzip headers, manifest depth 64. Only the documented gzip/USTAR/PAX subset is accepted. Links, special entries, traversal, absolute paths, duplicate effective paths, malformed/truncated data, absent or invalid package/package.json, and unsupported extensions fail without a successful partial report. Nothing is extracted to disk. See the parser audit.

Develop from source

Development requires Node 22.13+ or Node 24, pnpm 11.25.0, and Python 3 for fixture/oracle checks.

git clone https://github.com/Lingikaushikreddy/release-lens.git
cd release-lens
pnpm install --frozen-lockfile
pnpm fixtures
pnpm build
pnpm dev

Open the printed local URL. To run the CLI directly from the checkout:

pnpm build:cli
node packages/cli/dist/main.js diff fixtures/before.tgz fixtures/after.tgz \
  --format json --out report.json --max-unpacked-growth 1048576

This bundled example deliberately exits 1 because its growth exceeds the budget.

Run the verification suite:

pnpm check
pnpm test
pnpm test:release
pnpm build
pnpm test:oracle
pnpm test:pack
pnpm exec playwright install chromium firefox webkit
pnpm test:e2e

Development-only corpus reacquisition uses python3 scripts/fetch-corpus.py. Read CONTRIBUTING.md for development guidance.

Alternatives and scope

diffoscope compares many artifact formats in depth. Size Limit focuses on build and performance budgets. pkg-size measures package/install sizes. Release Lens focuses on reviewing the exact contents and manifest evidence of two supplied npm release artifacts. It has no application backend, accounts, registry fetching, or PR commenting.

MIT licensed. Read SECURITY.md before reporting private package data.

About

Review exact npm tarball changes offline: byte growth, file hashes, and manifest evidence.

lingikaushikreddy.github.io/release-lens/

Topics

developer-toolslocal-firstnpmpackage-analysistypescript

Resources

Readme
MIT license

Contributing

Contributing

Security policy

Security policy
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.