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

diffvision

v0.3.3

Published

Premium local-first Git diff review tool distributed as an npm CLI.

Readme

🛠️ DiffVision

Premium local-first Git diff review tool shipped as a high-performance npm CLI.

npm version npm downloads License: MIT Node version PRs Welcome

Explore FeaturesInstallationQuick StartAI ReviewMCP ServerChangelog


DiffVision transforms your local Git diffs into a rich, interactive experience. It opens your working tree in a focused browser UI, allowing you to inspect changes, track iterations, and export professional Markdown reviews—all without sending a single line of code to the cloud.

Theme Selection

AI Review Flow

Export Panel

Comment Composer

Key Features

  • Local-First & Private: Your code never leaves your machine. Full offline capability.
  • 6 Premium Themes: Choose from Dark, Dracula, Lust, OneLight, MinTheme, and PaperColor. Each theme drives both page chrome and syntax highlighting.
  • Split & Unified Diffs: Toggle between side-by-side and unified diff layouts with fullscreen support.
  • Interactive Comments: Add inline review comments with categories (Bug, Refactor, Performance, Security, Readability, Suggestion) and severity levels (info, minor, major, critical).
  • AI Review Flow: Built-in 6-step wizard to configure AI agents (GitHub Copilot CLI, Qwen Code, Gemini CLI, Claude Code), draft review guides, categorize rules, and run mocked reviews.
  • Iteration Tracking: Keep a local history of your reviews (v1, v2, v3) automatically with a visual timeline.
  • Command Palette: Fast navigation and actions via Ctrl/Cmd + K. Search files, comments, bookmarks and commands.
  • File Bookmarks & Filters: Bookmark important files and filter by all, modified, added, untracked, staged, unstaged, or bookmarked.
  • Line Selection: Click to select a line, Shift-click to extend the selection range.
  • Local Export: Generate polished Markdown reports or JSON exports into .diffvision/.
  • MCP Server: Ships with a built-in Model Context Protocol server for integration with AI coding agents.
  • High Performance: Powered by Fastify and React for a near-instant review experience.

🚀 Installation

Install DiffVision globally or run it on-the-fly using your favorite package manager.

Global Install

npm install -g diffvision
# or
pnpm add -g diffvision

Run without install

npx diffvision
# or
pnpm dlx diffvision
# or
bunx diffvision

🏁 Quick Start

Just run diffvision inside any Git repository:

diffvision

Advanced Usage

# Compare current changes relative to 'main'
diffvision main

# Specify a different directory
diffvision --cwd /path/to/repo

# View what is new in 'feature-branch' relative to 'develop'
diffvision --new-in feature-branch --relative-to develop

⚙️ How it Works

DiffVision is designed for offline-first review workflows. It stores configuration and generated exports inside your repository:

  • <repo-root>/.diffvision/config.json: Local UI preferences.
  • <repo-root>/.diffvision/comments.json: Active review draft.
  • <repo-root>/.diffvision/exports/*.md: Your archived review reports.

🛠️ Tech Stack

| Component | Technology | | :--- | :--- | | Frontend | React + Vite + TailwindCSS | | Icons | Lucide React | | Server | Fastify + WebSockets | | Language | TypeScript | | Syntax Highlighting | PrismJS | | Agent Protocol | Model Context Protocol (MCP) |


🤖 MCP Stdio Server

diffvision-mcp bridges the gap between your local review session and AI agents. It allows AI clients to inspect diffs and write comments directly into your active draft.

VS Code Configuration (mcp.json)

{
  "servers": {
    "diffvision": {
      "type": "stdio",
      "command": "diffvision-mcp",
      "args": ["--cwd", "${workspaceFolder}"]
    }
  }
}

Available Tools

  • get_repo_overview: Metadata and file list.
  • read_diff: Raw patch + existing comments.
  • list_review_comments: History and draft comments.
  • create_review_comment: Append new comments from the agent.

Keyboard Shortcuts

| Shortcut | Action | | :--- | :--- | | Ctrl/Cmd + K | Open command palette | | Ctrl/Cmd + E | Open export panel | | Ctrl/Cmd + P | Find file | | Ctrl/Cmd + R | Refresh repository snapshot | | Ctrl/Cmd + Enter | Save comment | | Esc | Close palette/export panel/comment composer | | Shift + Click | Extend line selection range |


📑 CLI Reference

| Option | Description | | :--- | :--- | | --host <host> | Host to bind the local server. | | --port <port> | Preferred port for the local server. | | --compare <ref> | Base ref (legacy alias for --base). | | --new-in <ref> | Show what is new in this ref. | | --relative-to <ref> | Compare the --new-in ref relative to this ref. | | --base <ref> | Legacy alias for --new-in. | | --target <ref> | Legacy alias for --relative-to. | | --open | Force browser launch. | | --no-open | Disable automatic browser launch. | | --cwd <path> | Inspect a repository different from the current directory. | | --ui-origin <url> | Development UI origin override. | | --logs <mode> | Enable terminal logging (all for full logs). | | --version | Print the installed version. | | --help | Show CLI help. |


🏗️ Development

# Install dependencies
pnpm install

# Start UI and Server in dev mode
pnpm dev

# Build for production
pnpm build

# Run tests
pnpm test

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request