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

@libraz/coverwise

v1.1.1

Published

Combinatorial test coverage engine — analyze, generate, and extend t-wise test suites via WASM

Readme

coverwise

CI npm codecov License

Combinatorial test coverage engine via WebAssembly. Analyzes existing tests for coverage gaps, generates minimal test suites, and extends tests incrementally — no native dependencies.

Install

npm install @libraz/coverwise

Usage

Analyze existing tests

import { Coverwise } from '@libraz/coverwise';

const cw = await Coverwise.create();

const report = cw.analyzeCoverage({
  parameters: [
    { name: 'os',      values: ['Windows', 'macOS', 'Linux'] },
    { name: 'browser', values: ['Chrome', 'Firefox', 'Safari'] },
    { name: 'env',     values: ['staging', 'production'] },
  ],
  tests: myExistingTests,
});

report.coverageRatio;  // 0.72
report.uncovered;      // ["os=Linux, browser=Safari", "os=Linux, env=production", ...]

Extend with missing coverage

const result = cw.extendTests({
  parameters,
  existing: myExistingTests,
});

result.tests.length - myExistingTests.length;  // 3 tests added
result.coverage;   // 1.0
result.uncovered;  // []

Generate from scratch

import { when } from '@libraz/coverwise';

const result = cw.generate({
  parameters: [
    { name: 'os',      values: ['Windows', 'macOS', 'Linux'] },
    { name: 'browser', values: ['Chrome', 'Firefox', 'Safari'] },
    { name: 'theme',   values: ['light', 'dark'] },
  ],
  constraints: [
    when('os').eq('Windows').then(when('browser').ne('Safari')).toString(),
  ],
});

Pure TypeScript (no WASM)

import { Coverwise } from '@libraz/coverwise/pure';

const cw = await Coverwise.create(); // no WASM loading, returns immediately
const result = cw.generate({ parameters: [/* ... */] });

Browser (CDN)

<script type="module">
  import { Coverwise } from 'https://esm.sh/@libraz/coverwise';
  const cw = await Coverwise.create();
  const result = cw.generate({ parameters: [/* ... */] });
</script>

API

| Method | Description | |--------|-------------| | Coverwise.create() | Create instance (loads WASM once) | | cw.analyzeCoverage(params, tests, strength?, constraints?) | Measure t-wise coverage, list uncovered combinations (constraint-excluded tuples are removed from the universe) | | cw.extendTests(existing, input) | Add only the tests needed to close coverage gaps | | cw.generate(input) | Generate minimal covering array from scratch | | cw.estimateModel(input) | Preview model statistics |

Function-based API (init() + generate(), analyzeCoverage(), ...) is also available.

Features

  • Coverage analysis — Measure any test suite's t-wise coverage and list every uncovered combination
  • Incremental extension — Add only the tests needed to close coverage gaps
  • Pairwise & t-wise — 2-wise through arbitrary strength
  • ConstraintsIF/THEN/ELSE, AND/OR/NOT, relational, IN, LIKE
  • Negative testing — Auto-generate single-fault tests from invalid values
  • Mixed strength — Sub-models for critical parameter groups
  • Boundary values — Auto-expand integer/float ranges
  • Equivalence classes — Class-level coverage tracking
  • Seed tests — Build on existing tests incrementally
  • Deterministic — Same input + seed = same output

Requirements

  • Node.js >= 18 or modern browser with WASM support
  • ESM only ("type": "module")

License

Apache License 2.0