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

@qamadness/qam-cypress-reporter

v0.2.0

Published

Helper that submits Cypress (Mochawesome) test results to a QAM Hub instance.

Readme

@qamadness/qam-cypress-reporter

Submits Cypress test results (Mochawesome JSON) to a QAM Hub instance.

Cypress has no native "after all" reporter hook, so this package exposes two ways to push results:

  1. A programmatic submitToQAM() helper you can call inside an after:run hook in cypress.config.js (fully automatic — no extra npm script).
  2. A qam-submit-cypress CLI you run after cypress run in your CI script.

Install

npm i -D @qamadness/qam-cypress-reporter cypress-mochawesome-reporter mochawesome

Enable Mochawesome

cypress/support/e2e.js:

import 'cypress-mochawesome-reporter/register';

cypress.config.js:

const { defineConfig } = require('cypress');

module.exports = defineConfig({
  reporter: 'cypress-mochawesome-reporter',
  reporterOptions: {
    reportDir: 'cypress/reports',
    overwrite: false,
    html: false,
    json: true,
    saveJson: true,
    embeddedScreenshots: true,
    inlineAssets: true,
  },
  e2e: {
    setupNodeEvents(on, config) {
      require('cypress-mochawesome-reporter/plugin')(on);
      return config;
    },
  },
});

Option A — automatic (after:run hook)

const { submitToQAM } = require('@qamadness/qam-cypress-reporter');

module.exports = defineConfig({
  // ...reporter options above...
  e2e: {
    setupNodeEvents(on, config) {
      require('cypress-mochawesome-reporter/plugin')(on);

      on('after:run', async () => {
        await submitToQAM({
          apiUrl: process.env.QAM_API_URL,
          projectId: process.env.QAM_PROJECT_ID,
          runName: `CI Run ${process.env.CI_BUILD_NUMBER ?? new Date().toISOString().slice(0, 16).replace('T', ' ')}`,
          // apiToken ← process.env.QAM_API_TOKEN by default
        });
      });

      return config;
    },
  },
});

Then just run npx cypress run — results submit automatically.

Option B — CLI after cypress run

{
  "scripts": {
    "cy:run": "cypress run",
    "cy:submit": "qam-submit-cypress",
    "cy:test": "npm run cy:run && npm run cy:submit"
  }
}

The CLI reads QAM_API_URL, QAM_PROJECT_ID, QAM_API_TOKEN from env (or accepts --api-url, --project-id, --run-name, --reports-dir, --report-path flags). CI metadata is auto-detected (see below); override it with --branch, --commit-sha, --commit-message, --ci-build-url, --environment, --triggered-by (or the matching QAM_BRANCH, QAM_COMMIT_SHA, QAM_COMMIT_MESSAGE, QAM_CI_BUILD_URL, QAM_ENVIRONMENT, QAM_TRIGGERED_BY env vars), and disable it with --no-auto-detect-ci.

Linking to manual cases

Prefix test titles with TC-<number>:

it('TC-17: adds item to cart', () => { /* ... */ });

Options (submitToQAM)

| Option | Type | Required | Default | | ------------ | -------- | -------- | -------------------------------- | | apiUrl | string | yes | — | | projectId | string | yes | — | | apiToken | string | no | process.env.QAM_API_TOKEN | | runName | string | no | ISO timestamp | | reportsDir | string | no | cypress/reports (latest .json) | | reportPath | string | no | explicit JSON path (overrides dir) | | autoDetectCiMeta | boolean | no | true (auto-detect CI/git metadata) | | branch / commitSha / commitMessage / ciBuildUrl / environment / triggeredBy | string | no | auto — each overrides detection |

CI run metadata

By default both the helper and the CLI auto-detect the branch, commit SHA, commit message, CI build URL, environment and triggering actor and show them on each run in QAM Hub. It recognizes GitHub Actions, GitLab CI, CircleCI, Azure Pipelines, Bitbucket Pipelines, Travis CI, Drone, Buildkite, Jenkins and TeamCity, and falls back to local git for anything a provider doesn't expose. Override any field explicitly, or set autoDetectCiMeta: false to disable it.

Learn more

License

MIT