npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

diff-iris

v0.0.8

Published

Parse and show package.json dependency changes in Git history.

Readme

diff-iris

Parse and show structured data in git history.

Repository: https://github.com/yue4u/diff-iris

How to use

pnpm dlx diff-iris
# Analyze the root package.json reachable from HEAD and create .diff-iris/index.html.

pnpm dlx diff-iris > index.html
# When stdout is redirected or piped, emit the HTML document instead of writing a file.

pnpm dlx diff-iris --since 2024-01-01 --until 2024-12-31
# Include only changes within an inclusive UTC date range.

pnpm dlx diff-iris ownership 'Alice|Bob'
# Count HEAD files with surviving lines authored by Alice or Bob.

pnpm dlx diff-iris ownership --author Alice --author Bob --jobs 16
# Repeat author patterns and control the bounded parallel blame workers.

pnpm dlx diff-iris ownership --rank
# Count every author once, then rank by attributed files and lines.

pnpm dlx diff-iris ownership --rank --format json
pnpm dlx diff-iris ownership --rank --format html > ownership.html
# Emit structured JSON or a standalone HTML ranking report.

[!WARNING] Only run diff-iris inside repositories you trust. It invokes the repository's local Git installation and reads committed repository content and metadata. The default command generates an executable HTML report.

Features

  • fast git history parse time
  • single html output
  • timeline of when, who, and what changed in dependency fields of package.json
  • additions, removals, version updates, and dependency-section moves
  • full commit metadata and commit messages
  • synchronized timeline slider and UTC date pickers for selecting a time range
  • shareable ?from=YYYY-MM-DD&to=YYYY-MM-DD time-range URLs
  • offline report with no external scripts, styles, fonts, or network requests
  • fast, regex-aware file ownership counts based on surviving blamed lines
  • automatic Git commit-graph maintenance for faster ownership analysis in large repositories

Spec

  • See SPEC.md for the complete behavior contract.
  • analyzes dependencies, devDependencies, peerDependencies, and optionalDependencies
  • walks all non-merge commits reachable from the current HEAD
  • compares version requirements as exact strings
  • uses the JS Temporal API through temporal-polyfill-lite
  • uses Uint8Array rather than Node.js Buffer for Git's binary output

The working tree is not included. Run the command again after committing changes to regenerate the report. Invalid historical manifests and comparisons that depend on them are skipped with a warning that names the affected commit.

Future

support more file/history types

Development

  • Install dependencies:
vp install
  • Run the unit tests:
vp test
  • Build the library:
vp pack