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

@democratize-quality/qualitylens

v0.2.8

Published

Test coverage map for Playwright automated tests, by functional area

Downloads

1,053

Readme

qualitylens

Test coverage map — automated + manual, by functional area. Know exactly what's tested, what isn't, and where the risk is — before every release.


The problem

Your CI is green. Your Playwright suite has 600 tests. But does /billing/refund have a test? Does /onboarding/import-data? When was /auth/sso last tested manually?

Nobody knows. Until production breaks.

qualitylens answers the question your coverage tool can't: "Which user-facing flows have no test coverage — automated or manual?"


Free vs Pro

| Feature | Free (qualitylens) | Pro (qualitylens + qualitylens-pro) | |---------|-----------------|--------------------------------| | Playwright test source | ✅ | ✅ | | YAML manual coverage | ✅ | ✅ | | Console reporter | ✅ | ✅ | | qualitylens init / validate | ✅ | ✅ | | CI --fail-under gate | ✅ | ✅ | | HTML reporter | — | ✅ | | JSON reporter | — | ✅ | | Markdown reporter | — | ✅ | | Azure DevOps Test Plans | — | ✅ |

Both tiers use the single qualitylens binary. Pro features activate automatically when qualitylens-pro is installed alongside.


Installation

Free:

npm install -g @democratize-quality/qualitylens

Pro:

npm install -g @democratize-quality/qualitylens @democratize-quality/qualitylens-pro

No config change needed — the CLI detects qualitylens-pro at runtime.


Quick start

npx @democratize-quality/qualitylens init   # creates qualitylens.yaml in your project root
npx @democratize-quality/qualitylens scan   # generates console report (+ HTML/JSON/MD with Pro)

Sample output:

qualitylens: 68% total coverage (41% auto, 27% manual, 32% none)

Authentication         ████████████████████ 92% ✅
Checkout & Payments    ████████████░░░░░░░░ 54% ⚠️
Onboarding             ████████████░░░░░░░░ 60% ⚠️
Admin & Settings       █████░░░░░░░░░░░░░░░ 28% ❌

No coverage found (8 routes):
  ❌ /checkout/promo-code
  ❌ /billing/refund
  ❌ /billing/invoice-download
  ❌ /admin/billing-settings
  ❌ /admin/permissions
  ❌ /admin/audit-log
  ❌ /onboarding/import-data
  ❌ /auth/mfa-setup

Stale manual coverage (>30 days, 2 routes):
  ⚠️  /onboarding/welcome     — last tested 34d ago (priya)
  ⚠️  /onboarding/profile-setup — last tested 34d ago (priya)

How it works

qualitylens combines test sources against your app routes:

| Source | What it reads | How | Tier | |--------|--------------|-----|------| | Playwright | *.spec.ts test titles | AST parsing | Free | | YAML | manualCoverage entries | YAML file | Free | | Azure DevOps | Test Plan test case names | REST API | Pro |

It fuzzy-matches test descriptions against your app's routes, groups them by functional area, and reports what's covered, what's manual-only, what's stale, and what has no coverage at all.

See docs/HOW_IT_WORKS.md for full details.


Configuration

Place a qualitylens.yaml in your project root:

projectName: my-saas-app
staleThresholdDays: 30

routes:
  type: nextjs
  path: ./pages

areas:
  - name: Checkout & Payments
    patterns: [/checkout, /billing]
  - name: Authentication
    patterns: [/auth, /login]

# Optional: Azure DevOps Test Plans
# ado:
#   orgUrl: https://dev.azure.com/myorg
#   project: MyProject
#   planId: 42
#   patEnvVar: ADO_PAT

# Manual coverage (from Excel, exploratory testing, etc.)
manualCoverage:
  - route: /auth/sso
    lastTested: 2025-03-01
    tester: james

# CI gates
thresholds:
  - area: Checkout & Payments
    minCoverage: 70

Full reference: docs/CONFIGURATION.md


CLI reference

qualitylens scan [options]
  --config <path>       path to qualitylens.yaml (default: ./qualitylens.yaml)
  --output <path>       output directory (default: ./)
  --format <formats>    console (free) | html,json,markdown (Pro) — comma-separated
  --since <branch>      only show routes changed since this git branch
  --fail-under <n>      exit 1 if total coverage < n (CI gate)

qualitylens init            interactive setup — creates qualitylens.yaml
qualitylens validate        checks config and ADO connection

Pro formats — if you run --format html without qualitylens-pro installed, qualitylens prints an install hint and continues. Nothing crashes.


CI integration

Free:

- name: Run qualitylens
  run: npx @democratize-quality/qualitylens scan --format console --fail-under 60

Pro (HTML + JSON report, ADO source):

- name: Run qualitylens Pro
  run: npx @democratize-quality/qualitylens scan --format html,json,console --fail-under 60
  env:
    ADO_PAT: ${{ secrets.ADO_PAT }}

Full examples: docs/CI_INTEGRATION.md


VS Code extension (Pro)

The qualitylens Pro VS Code extension shows a live coverage dashboard in your sidebar. The panel updates automatically when qualitylens.yaml changes. Requires qualitylens-pro.


Built by

Raj Uppadhyay — author of Scalable Test Automation with Playwright

Related tools: