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

@vlsi/github-actions-random-matrix

v2.0.0

Published

Pairwise test matrix generator with constraint support and GitHub Actions integration

Readme

About

Generate randomized GitHub Actions matrices with pairwise coverage and constraint support.

Install

npm install @vlsi/github-actions-random-matrix

Usage

Create .github/workflows/matrix.mjs:

import { createGitHubMatrixBuilder } from '@vlsi/github-actions-random-matrix/github';

const { matrix } = createGitHubMatrixBuilder();

matrix.addAxis({
  name: 'tz',
  values: [
    'America/New_York',
    'Pacific/Chatham',
    'UTC'
  ]
});

matrix.addAxis({
  name: 'os',
  title: x => x.replace('-latest', ''),
  values: [
    'ubuntu-latest',
    'windows-latest',
    'macos-latest'
  ]
});

matrix.addAxis({
  name: 'locale',
  title: x => x.language + '_' + x.country,
  values: [
    {language: 'de', country: 'DE'},
    {language: 'fr', country: 'FR'},
    {language: 'ru', country: 'RU'},
    {language: 'tr', country: 'TR'},
  ]
});

matrix.setNamePattern(['os', 'tz', 'locale']);

matrix.exclude({locale: {language: 'de'}, os: 'macos-latest'});
matrix.generateRow({os: 'windows-latest'});
matrix.generateRow({os: 'ubuntu-latest'});

const include = matrix.generateRows(Number(process.env.MATRIX_JOBS || 5));
if (include.length === 0) {
  throw new Error('Matrix list is empty');
}

include.sort((a, b) => a.name.localeCompare(b.name, undefined, {numeric: true}));
console.log(JSON.stringify({include}));

The current pgjdbc usage is in .github/workflows/matrix.mjs.

Workflow example:

jobs:
  matrix_prep:
    runs-on: ubuntu-latest
    outputs:
      matrix: ${{ steps.set-matrix.outputs.matrix }}
    env:
      MATRIX_JOBS: 7
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-node@v4
        with:
          node-version: 20
      - run: npm ci
      - id: set-matrix
        shell: bash
        run: |
          matrix_json="$(node .github/workflows/matrix.mjs)"
          echo "matrix=$matrix_json" >> "$GITHUB_OUTPUT"

  build:
    needs: matrix_prep
    runs-on: ${{ matrix.os }}
    strategy:
      fail-fast: false
      matrix: ${{ fromJson(needs.matrix_prep.outputs.matrix) }}
    name: ${{ matrix.name }}
    env:
      TZ: ${{ matrix.tz }}

API

import { MatrixBuilder } from '@vlsi/github-actions-random-matrix'

import { createGitHubMatrixBuilder } from '@vlsi/github-actions-random-matrix/github'

Features:

  • Randomized pairwise coverage keeps CI job counts low while exploring more combinations
  • exclude(...) forbids invalid combinations
  • imply(...) models rules like windows -> jdk 17
  • constrain(...) supports custom predicates across multiple axes
  • generateRow(...) forces important rows to appear
  • ensureAllAxisValuesCovered(...) guarantees each value of an axis appears at least once
  • pairCoverageReport() reports feasible pair coverage

Sample integrations

  • [ ] logback: https://github.com/qos-ch/logback/pull/556
  • [ ] Spock: https://github.com/spockframework/spock/pull/1415
  • [ ] Reload4j: https://github.com/qos-ch/reload4j/pull/16
  • [ ] JMeter: https://github.com/apache/jmeter/pull/693
  • [ ] kSar: https://github.com/vlsi/ksar/pull/251
  • [x] TestNG: https://github.com/cbeust/testng/pull/2584
  • [x] pgjdbc: https://github.com/pgjdbc/pgjdbc/pull/2534

License

Apache License 2.0