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

@flakeytesting/cli

v0.9.0

Published

CLI tool for uploading test results to Flakey

Readme

@flakeytesting/cli

CLI for uploading test results, coverage, accessibility scans, visual diffs, and UI-coverage data to the Flakey dashboard. The reporters do the same upload at end-of-test; the CLI is for cases where you don't have a reporter (Selenium, custom runners) or you want to ship reports from CI separately from the test run.

Install

pnpm add -D @flakeytesting/cli
# or
npm install --save-dev @flakeytesting/cli

The published binary is flakey-upload — that's the name you invoke (npx flakey-upload … or just flakey-upload … in a package.json script).

Quick start

# Upload a mochawesome / cypress JSON report
FLAKEY_API_URL=https://flakey.your-domain.com \
FLAKEY_API_KEY=fk_xxx... \
npx flakey-upload --suite my-app-e2e --reporter mochawesome --report-dir cypress/reports

Subcommands

| Subcommand | Purpose | |---|---| | upload (default) | Upload a test run from a reporter's output directory | | coverage | Upload Istanbul coverage-summary.json to a run | | a11y | Upload axe-core accessibility scan results | | visual | Upload a visual-regression manifest (per-test diff records) | | ui-coverage | Upload per-route visit data so the dashboard knows which routes your tests exercise |

Run flakey-upload <subcommand> with no args for a usage line.

Supported reporter formats

--reporter <name> accepts:

  • mochawesome — Cypress / Mocha JSON (default)
  • junit — JUnit XML (Jest, pytest, Go test, Java, .NET, PHPUnit)
  • playwright — Playwright JSON reporter output
  • jest — Jest JSON output
  • webdriverio — WebdriverIO JSON output

For Cypress / Playwright / WebdriverIO projects, prefer the matching @flakeytesting/<framework>-reporter package — it uploads automatically with no extra CLI step.

Env vars

| Variable | Default | Purpose | |---|---|---| | FLAKEY_API_URL | http://localhost:3000 | Backend API URL | | FLAKEY_API_KEY | (none — required) | API key for authentication | | FLAKEY_SUITE | default | Suite-name fallback when --suite is omitted | | FLAKEY_RELEASE | — | Release version (backend upserts release + links run) | | FLAKEY_ENV / TEST_ENV | — | Target env label stored on runs.environment |

CI-metadata chains (same ordering across every Flakey package):

  • BRANCHGITHUB_HEAD_REFGITHUB_REF_NAMEBITBUCKET_BRANCH
  • COMMIT_SHAGITHUB_SHABITBUCKET_COMMIT
  • CI_RUN_IDGITHUB_RUN_IDBITBUCKET_BUILD_NUMBER

GITHUB_HEAD_REF is preferred over GITHUB_REF_NAME because GitHub Actions sets the former to the source branch on PR runs (the more useful value).

Flags

flakey-upload [upload]
  --suite <name>            Suite name (or set FLAKEY_SUITE)
  --reporter <format>       mochawesome | junit | playwright | jest | webdriverio
  --report-dir <path>       Where to find the report file (default: cypress/reports)
  --screenshots-dir <path>  Where to find screenshot PNGs (default: cypress/screenshots)
  --videos-dir <path>       Where to find video MP4s (default: cypress/videos)
  --snapshots-dir <path>    Where to find snapshot bundles (default: cypress/snapshots)
  --branch <ref>            Override branch detection
  --commit <sha>            Override commit detection
  --ci-run-id <id>          Override CI run id
  --release <version>       Release label
  --environment <env>       Environment label
  --api-key <key>           Override FLAKEY_API_KEY

Example: CI snippet (GitHub Actions)

- name: Run tests
  run: npm test
- name: Upload to Flakey
  if: always()                          # upload even on test failure
  env:
    FLAKEY_API_URL: ${{ vars.FLAKEY_API_URL }}
    FLAKEY_API_KEY: ${{ secrets.FLAKEY_API_KEY }}
  run: npx flakey-upload --suite my-app --reporter jest --report-dir reports/

Compatibility

  • Node 20+

Links