Skip to content

J-Sek/npm-package-diff

Repository files navigation

pkg-diff

Diff two npm package versions entirely in the browser — no server, no backend. Tarballs are fetched straight from the npm registry, unpacked, and diffed client-side, with the line-diffing done by a Rust → WebAssembly module. The whole app is a static site you can drop on any host.

pkg-diff.netlify.app

pkg-diff screenshot

Alternatives

  • npmdiff.dev – SSR, slow, no cross-package diffs, unknown source
  • MUI diff-package – slow, crashes easily
  • npm diff – CLI only, no HTML output, no filters
  • other CLI tools – unmaintained, cumbersome to use

Develop

pnpm install
pnpm dev

Build

pnpm build      # type-check + vite build → dist/ (deploy anywhere static)
pnpm preview    # serve dist/ locally

Credits

Diff rendering is powered by @pierre/trees (file tree sidebar) and @pierre/diffs (diff content pane).

About

Tool to quickly inspect effective changes between versions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors