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

svg-compare-mcp

v1.0.36

Published

SVG comparison tool for comparing two SVGs for equality

Readme

svg-compare-mcp

A MCP tool for comparing SVG files in a project.

Features

  1. Compare SVG files by providing either a file path or SVG content
  2. Scan the entire project directory by default, or a specific directory
  3. Return a list of identical SVG files with their names and paths if found
  4. Save the new SVG file to the target directory with a unique name if no identical files are found

Installation

npm install

Usage

Parameters

| Parameter | Type | Description | Required | Default | |-----------|------|-------------|----------|---------| | svgSource | string | SVG source, can be a file path or SVG content | Yes | - | | targetDir | string | Target directory to scan, default is project root | No | Project root | | isContent | boolean | Whether the svgSource is SVG content, default is false | No | false |

Examples

  1. Compare an SVG file with all SVG files in the project:
node index.js --svgSource path/to/your/svg/file.svg
  1. Compare an SVG file with all SVG files in a specific directory:
node index.js --svgSource path/to/your/svg/file.svg --targetDir src/icons
  1. Compare SVG content with all SVG files in the project:
node index.js --svgSource "<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'><path d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z'/></svg>" --isContent true
  1. Compare SVG content with all SVG files in a specific directory:
node index.js --svgSource "<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'><path d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z'/></svg>" --isContent true --targetDir src/icons

Output

If identical SVG files are found:

{
  "success": true,
  "message": "Same SVG files found",
  "sameSvgList": [
    {
      "name": "icon1.svg",
      "path": "src/icons/icon1.svg"
    },
    {
      "name": "icon2.svg",
      "path": "src/icons/icon2.svg"
    }
  ]
}

If no identical SVG files are found:

{
  "success": true,
  "message": "SVG file saved successfully",
  "savedPath": "src/icons/new_svg.svg"
}

How It Works

  1. The tool reads the SVG source (either from a file or provided content)
  2. It scans the specified directory (or the entire project) for all SVG files
  3. It compares the content of each SVG file with the source SVG
  4. If identical files are found, it returns a list of those files
  5. If no identical files are found, it saves the source SVG to the target directory with a unique name

Dependencies

This MCP has no external dependencies. It uses only Node.js built-in modules:

  • fs: For file system operations
  • path: For path handling

License

MIT