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

visor-app

v1.0.5

Published

A visual regression testing tool that compares screenshots, highlights differences, and uses AI to score similarity against Figma designs.

Readme

Announcing Visor-App: AI-Powered UI Testing for Your React Projects

Tired of tedious, pixel-by-pixel checking to see if your new code broke a UI component? Ever wondered if your frontend implementation really matches the Figma design?

Introducing Visor-App, a new open-source tool designed to bring confidence and speed to your development workflow. Visor-App provides powerful, ready-to-use React components for visual regression testing and AI-powered design comparison, and you can integrate it into your Next.js project in minutes.

Visor App Screenshot

Core Features

  • Visual Difference Detection: Upload two versions of a PNG screenshot and instantly see any visual changes. The tool highlights differences in an intuitive UI, making regressions impossible to miss.
  • Figma Similarity Analysis: Go beyond pixel-perfect comparisons. Visor-App uses generative AI to analyze a screenshot against your Figma design specifications, providing a similarity score and detailed reasoning. It's like having a design review assistant.
  • Interactive UI: A clean, intuitive interface allows you to switch between side-by-side and overlay comparison modes, toggle difference highlighting, and easily input your design specs and screenshots.

Getting Started: Using Visor-App in Your Project

Visor-App is designed to be a drop-in solution for any Next.js application. Before publishing, you must compile the code.

1. Build Before Publishing

This package includes TypeScript source files. Before you can publish it to npm, you need to compile them into JavaScript.

# This will create a `dist` directory with the compiled files
npm run build

After the build is complete, you can publish the package.

2. Installation for Users

First, developers will install the package from npm:

npm install visor-app

3. Prerequisites: Tailwind CSS & shadcn/ui

The components in this package are built with Tailwind CSS and shadcn/ui. For them to work correctly, a project must have these configured.

If they don't have them set up, they can follow the official shadcn/ui installation guide for Next.js. This will automatically set up Tailwind CSS for them.

At a minimum, the project needs:

  • A tailwind.config.ts (or .js) file.
  • A globals.css file with the core shadcn/ui styles and theme variables.

4. Configure Tailwind CSS

Important: Because the styles for the components are in the package, developers need to configure their tailwind.config.ts to scan the visor-app package for Tailwind classes.

// tailwind.config.ts or tailwind.config.js
module.exports = {
  content: [
    './src/pages/**/*.{js,ts,jsx,tsx,mdx}',
    './src/components/**/*.{js,ts,jsx,tsx,mdx}',
    './src/app/**/*.{js,ts,jsx,tsx,mdx}',
    './node_modules/visor-app/dist/**/*.{js,ts,jsx,tsx}', // Add this line
  ],
  // ...
}

5. Usage Example

Once the project is configured, developers can import and use the components just like any other React component.

// In one of your pages or components (e.g., /app/testing/page.tsx)
import { VisualDiff } from 'visor-app/visual-diff';
import { FigmaSimilarity } from 'visor-app/figma-similarity';

export default function TestingPage() {
  return (
    <div className="container mx-auto p-8 space-y-12">
      <h1 className="text-4xl font-bold mb-4">My UI Testing Suite</h1>

      <section>
        <h2 className="text-2xl font-semibold mb-4">Visual Difference Check</h2>
        <VisualDiff />
      </section>

      <section>
        <h2 className="text-2xl font-semibold mb-4">Figma Similarity Analysis</h2>
        <FigmaSimilarity />
      </section>
    </div>
  );
}

And that's it! They now have a powerful visual testing suite integrated directly into their project.

Why We Built This

We believe that high-quality UI development requires better tools. Visor-App aims to bridge the gap between design and implementation, catch visual bugs early, and ultimately help developers ship with more confidence.

This is a community-driven project, and we welcome your feedback and contributions. Give it a try and let us know what you think!