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

diffx-cli

v0.11.0

Published

Local code review tool for git diffs with a GitHub PR-like web UI

Readme

diffx

A local code review tool designed for the coding agent workflow. Review AI-generated changes in a GitHub PR-like web UI, leave inline comments, then hand them back to your coding agent to fix.

screenshot

Install

npm install -g diffx-cli

Usage

Run in any git repository:

diffx

This starts a local server and opens your browser with a diff review UI.

Options

diffx [options] [-- <git-diff-args>]

Options:
  -p, --port <port>   Server port (default: 3433)
  --no-open           Don't auto-open browser

Examples:
  diffx                          # Review working tree changes
  diffx -p 8080                  # Use custom port
  diffx -- HEAD~3                # Diff against 3 commits ago
  diffx -- main..HEAD            # Diff between branches
  diffx -- --cached -- src/      # Staged changes in src/

Features

  • Split / Unified view — Toggle between side-by-side and inline diff
  • Syntax highlighting — Powered by Shiki with GitHub themes
  • File tree — Hierarchical file browser with search filter and file change-type icons
  • Inline comments — Click the + button on any line to add a review comment
  • Comment replies — AI agents can reply to comments via API, displayed with bot avatar in the UI
  • Comment status tracker — Sidebar widget showing open, replied, and resolved comment counts with click-to-navigate links
  • Copy comments — One-click copy all comments as structured XML for AI coding agents
  • Image preview — Side-by-side comparison for added, modified, and deleted images
  • Viewed tracking — Mark files as reviewed to track progress
  • Staged / Untracked toggles — Choose which changes to include
  • Custom diff commands — Pass any git diff arguments after --
  • EditorConfig support — Respects .editorconfig for per-file tab size
  • Persistent settings — Your preferences are saved across sessions

Comment Output Format

When you click "Copy comments", the output is structured XML optimized for AI agents:

<code-review-comments>
<file path="src/utils/parser.ts">
<comment line="42">
<code>+ const parsedToken = tokenize(input)</code>
Rename `x` to `parsedToken` for clarity.
</comment>
<comment line="15">
<code>- if (input != null) {</code>
This null check removal may cause a bug when `input` is undefined.
</comment>
</file>
</code-review-comments>

Each comment includes the commented code line with a +/- prefix indicating whether it's an added or removed line.

Agent Skills

Install the diffx skills to use diffx directly from your AI coding agent:

npx skills add wong2/diffx

The review workflow uses two commands:

  1. /diffx-start-review — Launches the diffx server and opens the browser. Review your changes and leave inline comments.
  2. /diffx-finish-review — The agent fetches all comments from the running diffx server via API, applies the requested changes, and marks each comment as resolved. The browser UI updates in real time as comments are resolved.

License

MIT