All Projects → trendyminds → visual-differ

trendyminds / visual-differ

Licence: other
A Node-based diffing tool to compare an array of URLs and flag differences between them

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to visual-differ

Blowhole
Docker auditing and enumeration script.
Stars: ✭ 21 (+16.67%)
Mutual labels:  auditing
react-rich-diff
React component to render rich diff between two documents (Markdown, HTML)
Stars: ✭ 51 (+183.33%)
Mutual labels:  diff
elixir-utilities-web
Utilties for the Developer. Regex, HTTP echo. Diffing
Stars: ✭ 36 (+100%)
Mutual labels:  diff
ngx-text-diff
A Text Diff component for Angular
Stars: ✭ 49 (+172.22%)
Mutual labels:  diff
duff
Pure OCaml implementation of libXdiff (Rabin's fingerprint)
Stars: ✭ 20 (+11.11%)
Mutual labels:  diff
spotdiff.vim
A range and area selectable diffthis to compare partially
Stars: ✭ 29 (+61.11%)
Mutual labels:  diff
tqsdk-js
期货行情/历史数据/交易 开发包
Stars: ✭ 52 (+188.89%)
Mutual labels:  diff
lcs-image-diff-rs
🖼 Image diff tool with LCS algorithm
Stars: ✭ 67 (+272.22%)
Mutual labels:  diff
Odin
manage model revisions with ease
Stars: ✭ 60 (+233.33%)
Mutual labels:  diff
microdiff
A fast, zero dependency object and array comparison library. Significantly faster than most other deep comparison libraries and has full TypeScript support.
Stars: ✭ 3,138 (+17333.33%)
Mutual labels:  diff
dif
'dif' is a Linux preprocessing front end to gvimdiff/meld/kompare
Stars: ✭ 18 (+0%)
Mutual labels:  diff
PTEye
Phantom eye——A passive business logic vulnerability auditing tool
Stars: ✭ 55 (+205.56%)
Mutual labels:  auditing
eslint-plugin-diff
Run ESLint on your changes only
Stars: ✭ 80 (+344.44%)
Mutual labels:  diff
textdiff-create
Create lean text diff deltas.
Stars: ✭ 25 (+38.89%)
Mutual labels:  diff
Differentia.js
No longer being supported or maintained. A Graph Theory & Data Structure Library for JavaScript.
Stars: ✭ 13 (-27.78%)
Mutual labels:  diff
gitdub
📤 A github WebHook that emails detailed diffs of your commits.
Stars: ✭ 25 (+38.89%)
Mutual labels:  diff
speech-recognition-evaluation
Evaluate results from ASR/Speech-to-Text quickly
Stars: ✭ 25 (+38.89%)
Mutual labels:  diff
TreeWalker
PHP JSON diff
Stars: ✭ 58 (+222.22%)
Mutual labels:  diff
ecomparatio
eComparatio: text diff and support for digital edition
Stars: ✭ 21 (+16.67%)
Mutual labels:  diff
polscan
Zero-setup SSH-based scanner with extensive visualizations for Debian server inventory, policy compliance and vulnerabilities
Stars: ✭ 57 (+216.67%)
Mutual labels:  auditing

🎨 Visual Differ

A Node-based auditing tool to visually diff pages

An example of the Visual Differ CLI

🤔 What is it?

Have you ever made a change that negatively impacted the front-end? Checking one page for a change might be easy. Checking hundreds is difficult and time-consuming.

Visual Differ allows you to supply an array of URLs to audit and will create an audit.csv to show which comparisons passed and which ones had a non-trivial difference as defined in your config file.

Additionally, you can review the screenshots that were taken and see a "heatmap" of the visual differences thanks to the pixelmatch library.

An example of the Visual Differ displaying the screenshots and diff

Usage

  1. Download the project
  2. Install dependencies npm i
  3. Copy config.example.js to config.js
  4. Modify your config.js values and supply your array of URLs to test
  5. Run node index.js to create screenshots, diffs and generate an audit.csv file

⚙️ Configuring your Test

You can easily modify the parameters of your test in the config.js file (after copying config.example.js to config.js). Below are all of the options you can modify.

module.exports = {
  // The viewport to use when creating images from the URLs
  viewport: {
    width: 1280,
    height: 800,
  },

  // Matching threshold, ranges from 0 to 1. Smaller values make the comparison more sensitive. 0.1 by default.
  // See pixelmatch for more information: https://github.com/mapbox/pixelmatch#api
  diffThreshold: 0.1,

  // The number of pixels in the diff that, once reached, will be flagged in the audit during the testing
  nonacceptableDiff: 10,

  // The maximum amount of screenshot requests to run concurrently. Careful.
  maxConcurrency: 2,

  // The URLs to test for visual differences
  urls: [
    {
      // The first URL to test
      a: "https://time.is/Los_Angeles",

      // The URL to compare the first test to
      b: "https://time.is/New_York",

      // Need to pass in some custom CSS to your test so you can hide or change elements?
      // Provide as much CSS you need and it will be applied when navigating to the URLs
      css: ``,
    },
  ],
};
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].