npm-peek
v0.2.1
Published
Interactively compare npm packages to see what has changed
Readme
npm-peek 🔍

A CLI tool that lets you visually compare your installed npm package versions with any available release. Autocomplete helps you select a package, then pick a version to visually diff against your current one.
🚀 Quick Start
Use npm-peek instantly with npx:
# Interactive mode with autocompletion using your package.json
npx npm-peek
# Direct comparison mode with specific package & version
npx npm-peek react --target 19.1.0🎥 Showcase

✨ Key Features
- Smart Dependency Detection: Automatically finds and lists all packages from your
package.json - Fuzzy Search: Quickly locate packages with partial name matching
- Version Autocomplete: Easily select from all available versions of a package
- Visual Diff Viewer: See all changes in a clean, browser-based HTML interface
- One-Command Operation: Compare versions with minimal typing
- Zero Configuration: Works out-of-the-box with any npm project
🔧 How It Works
- Reads
package.jsonto identify dependencies and used version - Prompts you to select a package and target version (with autocomplete)
- Generates a visual diff
- Opens the diff in your default browser
📦 Releases
This repo uses Changesets.
- For any user-facing package change, run
bun run changesetand commit the generated file in.changeset/. - When changesets reach
main, GitHub Actions opens or updates a release PR with the version bump and generatedCHANGELOG.md. - Edit that PR's changelog however you want.
- Merge the release PR.
- The
releaseworkflow publishes to npm with Trusted Publisher.
That keeps changelog generation automatic, but still makes the final changelog a normal reviewed git diff before publish.
