Visually diff websites

Usage no npm install needed!

<script type="module">
  import silverwindPagediff from 'https://cdn.skypack.dev/@silverwind/pagediff';



Visually diff websites


Installation and Usage

$ git clone git@github.com:silverwind/pagediff.git
$ cd pagediff
$ npm i
$ ./server.js


pagediff(a, b, w, h, delay)

  • a URL or domain for the first page
  • b URL or domain for the second page
  • w width of the generated images
  • h height of the generated images
  • delay delay in seconds after which to take the screenshot

Returns a Promise that resolves to an object with the following properties:

  • a path to the first rendered image
  • b path to the second rendered image
  • diff path to the diff image
  • perc percentage of different pixels between images

On error, the Promise will be rejected with:

  • err Error string and/or stack trace

Go to http://localhost:4000 and enter domains or URLs to compare.

© 2014-2015 silverwind, distributed under BSD licence