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

intentdiff

v0.1.1

Published

A structure-aware Git diff that separates formatting, movement, refactoring, and meaningful edits.

Readme

intentdiff

intentdiff is a structure-aware Git diff for code review. It helps you see what actually changed by separating formatting noise, moved code, probable renames, import reorders, comment/doc edits, and meaningful edits.

This npm package provides the intentdiff command for JavaScript/TypeScript developers who prefer npm-based installation.

Install

npm install -g intentdiff
intentdiff --help

This package is currently a lightweight installer shim. On first run it installs the native Rust CLI with:

cargo install intentdiff --locked

Requirements:

  • Node.js 18+
  • Rust/Cargo available on PATH, unless INTENTDIFF_BINARY points to a preinstalled native binary

If you already installed the native binary:

INTENTDIFF_BINARY=/path/to/intentdiff intentdiff --help

Quick start

# unstaged Git changes
intentdiff

# staged changes
intentdiff --staged

# compare revisions
intentdiff main...HEAD
intentdiff HEAD~1 HEAD

# direct file comparison
intentdiff old.ts new.ts

# machine-readable output
intentdiff --format json

# CI-style check
intentdiff --check --meaningful-only

Why use it?

Normal diffs show changed text. intentdiff tries to classify review intent:

  • formatting_only
  • comment_only
  • import_reorder
  • moved_unchanged
  • moved_modified
  • probable_rename
  • literal_changed
  • operator_changed
  • textual_change
  • binary_change
  • unknown

It intentionally avoids unsafe claims like “no behavioral change” unless a future verification subsystem proves that under explicit assumptions.

Example

No meaningful syntax-level changes detected.

Summary
  3 files changed
  0 meaningful edits
  2 formatting-only changes
  1 unchanged code moves

Run with --show-noise to inspect formatting changes.

Language support

v0.1 focuses on a practical vertical slice:

  • Rust
  • Python
  • JavaScript
  • TypeScript / TSX
  • JSON
  • YAML
  • TOML
  • Markdown

Unsupported or malformed files fall back to token or normalized textual comparison. Changes are not silently dropped because parsing failed.

Privacy and safety

By default, intentdiff:

  • makes no network requests;
  • collects no telemetry;
  • does not execute project code;
  • does not run formatters or external tools automatically.

The npm shim may invoke Cargo to install the Rust binary. The core CLI remains local-first.

More information

  • GitHub: https://github.com/harivilasp/intentdiff
  • crates.io: https://crates.io/crates/intentdiff
  • npm: https://www.npmjs.com/package/intentdiff

Current limitation

This npm package is a shim in v0.1, not a bundled native binary package. Prebuilt platform binaries are planned.