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

@datafire/crossbrowsertesting

v4.0.0

Published

DataFire integration for Crossbrowsertesting.com Screenshot Comparisons API

Readme

@datafire/crossbrowsertesting

Client library for Crossbrowsertesting.com Screenshot Comparisons API

Installation and Usage

npm install --save @datafire/crossbrowsertesting
let crossbrowsertesting = require('@datafire/crossbrowsertesting').create({
  username: "",
  password: ""
});

.then(data => {
  console.log(data);
});

Description

What's in this version:

  1. Compare two screenshots for layout differences
  2. Compare a full screenshot test of browsers to a single baseline browser for layout differences.
  3. Compare a screenshot test version to another test version - good for regression tests.
  4. Get links to the Comparison UI for visual representation of layout differences

Actions

screenshots.target_screenshot_test_id.target_version_id.comparison.parallel.base_version_id.get

Get comparison results for all browsers in target screenshot test against the same browser in the base screenshot test. This is a good method for regression testing. For example, you've run a screenshot test against a set of browsers that is "good". Then, after some changes, you run a new screenshot test against the same set of browsers. This method will compare each of the same browsers against each other. For example, IE9 will be compared to IE9 from an earlier test. This is a many-to-many comparison where the OS/Browser/Resolution must match between the two test versions in order for the comparison to return results. The two versions can be from the same screenshot_test_id or not.

crossbrowsertesting.screenshots.target_screenshot_test_id.target_version_id.comparison.parallel.base_version_id.get({
  "target_screenshot_test_id": 0,
  "target_version_id": 0,
  "base_version_id": 0
}, context)

Input

  • input object
    • target_screenshot_test_id required integer: test id of the target Screenshot Test
    • target_version_id required integer: version id of the target Screenshot Test
    • base_version_id required integer: version id of the base Screenshot Test
    • format string: The format of the returned data. Possible values are "json" or "jsonp".
    • callback string: Name of callback method for JSONP requests.
    • tolerance number: Used as the basis for detecting box model differences in element positioning and dimensions that should be flagged and reported back to the comparison results. The default is 30px which is a good basis for finding notable layout differences.

Output

screenshots.target_screenshot_test_id.target_version_id.comparison.base_result_id.get

Get comparison results for all browsers in target screenshot test against a base screenshot result. The base result can be from the same test or from another test run at an earlier time. This is a one-to-many comparison.

crossbrowsertesting.screenshots.target_screenshot_test_id.target_version_id.comparison.base_result_id.get({
  "target_screenshot_test_id": 0,
  "target_version_id": 0,
  "base_result_id": 0
}, context)

Input

  • input object
    • target_screenshot_test_id required integer: test id of the target Screenshot Test
    • target_version_id required integer: version id of the target Screenshot Test
    • base_result_id required integer: result id of the base Screenshot Test
    • format string: The format of the returned data. Possible values are "json" or "jsonp".
    • callback string: Name of callback method for JSONP requests.
    • tolerance number: Used as the basis for detecting box model differences in element positioning and dimensions that should be flagged and reported back to the comparison results. The default is 30px which is a good basis for finding notable layout differences.

Output

screenshots.target_screenshot_test_id.target_version_id.target_result_id.comparison.base_result_id.get

Get comparison results for a single target screenshot result against a base screenshot result. This is a one-to-one comparison.

crossbrowsertesting.screenshots.target_screenshot_test_id.target_version_id.target_result_id.comparison.base_result_id.get({
  "target_screenshot_test_id": 0,
  "target_version_id": 0,
  "target_result_id": 0,
  "base_result_id": 0
}, context)

Input

  • input object
    • target_screenshot_test_id required integer: test id of the target Screenshot Test
    • target_version_id required integer: version id of the target Screenshot Test
    • target_result_id required integer: result id of the target Screenshot Test
    • base_result_id required integer: result id of the base Screenshot Test
    • format string: The format of the returned data. Possible values are "json" or "jsonp".
    • callback string: Name of callback method for JSONP requests.
    • tolerance number: Used as the basis for detecting box model differences in element positioning and dimensions that should be flagged and reported back to the comparison results. The default is 30px which is a good basis for finding notable layout differences.

Output

Definitions

comparison

  • comparison object
    • differences integer
    • elements array
    • error boolean
    • message string
    • show_comparisons_public_url string
    • show_comparisons_web_url string
    • tolerance integer

element

  • element object
    • difference string
    • full_path string
    • short_path string
    • show_difference_public_url string
    • show_difference_web_url string

full_comparison_test

  • full_comparison_test object

screenshot

  • screenshot object
    • screenshot_id integer

single_comparison_test

target