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

privateqa-community

v0.1.3

Published

Write tests in natural language, run them with Playwright. Plugin-extensible.

Readme

privateqa

Write end-to-end tests in plain language, run them with Playwright — zero config.

Install

npm install privateqa-community

That's it. Playwright and Chromium are installed automatically.

This README documents the Community edition only.

Looking for production-grade capabilities? See privateqa.com: Enterprise adds AI-powered local auto-healing for unstable selectors, secure Docker deployment, CI/CD integration, and WCAG accessibility reporting. The platform is designed for security-first teams, with execution in an isolated environment and controlled network exposure.

Try the bundled example scenario

The npm package includes scenarioExemple.md so you can try the full pipeline immediately:

npx privateqa run scenarioExemple.md --headed

Quick start

1. Write a scenario (scenario.md):

# Login test

- Ouvrir "https://your-app.example.com"
- Clique sur "Login"
- Remplis "Email" avec "[email protected]"
- Remplis "Password" avec "secret"
- Clique sur "Submit"
- Vérifie que "Welcome" est visible

2. Run it:

npx privateqa run scenario.md

Done. privateqa maps the page, compiles the scenario to a Playwright spec, and executes the test — all in one command. A detailed HTML report opens automatically after execution.

Options

npx privateqa run scenario.md --headed        # see the browser
npx privateqa run scenario.md --url <url>     # override the URL
npx privateqa run scenario.md --no-map        # reuse existing DOM map
npx privateqa run scenario.md --map-headed    # show browser during mapping only
npx privateqa run scenario.md --glossary .privateqa/glossary.json  # apply business glossary
npx privateqa run scenario.md --save          # save run in evolution history
npx privateqa run scenario.md --reporter      # open report in Chromium at the end
npx privateqa run scenario.md --no-open       # don't auto-open report

Scenario syntax

| Step | Example | |------|---------| | Navigate | Ouvrir "https://example.com" | | Click | Clique sur "Login" | | Fill | Remplis "Email" avec "[email protected]" | | Select | Sélectionne "France" dans "Country" | | Assert | Vérifie que "Welcome" est visible | | Scroll to text | Scroll jusqu'à "Footer" | | Scroll to top | Scroll en haut de la page | | Wait | J'attends 2s | | Compound | Scroll jusqu'à "Prix" et clique sur "Acheter" |

Targets and values are wrapped in quotes ("…"). Multiple test cases can be defined using headings (#, ##, #1, #LOGIN) — each heading generates a separate .spec.ts file.

By default, privateqa keeps the same browser tab/page between generated tests in the same run. This means you can chain segmented scenarios and avoid repeating Ouvrir "https://..." at the beginning of every section.

Structured prefixes like A.1:, TC-01:, or Action: are automatically stripped, so you can write formal test plans and privateqa will parse them correctly.

Full reference: SYNTAX.md

Business glossary (Community)

If your teams use domain-specific wording (banking, insurance, medical, etc.), you can define a deterministic glossary and privateqa will rewrite those expressions before parsing steps.

  • Default paths (auto-applied): .privateqa/glossary.json then glossary.json
  • Custom path: --glossary <path>
  • Bundled default glossary: glossary.json

Example format:

{
  "version": 1,
  "terms": {
    "FLC": {
      "mapsTo": "Formulaire Liste de Conformite",
      "uiHints": ["Formulaire FLC", "formulaire conformite"]
    }
  },
  "actions": {
    "valider dossier": "Clique sur \"Valider le dossier\""
  }
}

Concrete test on privateqa.com:

{
  "version": 1,
  "terms": {
    "mail": {
      "mapsTo": "contact",
      "uiHints": ["page de mail", "page mail"]
    },
    "request demo": {
      "mapsTo": "Request Demo",
      "uiHints": ["demander une demo"]
    }
  },
  "actions": {
    "ouvrir la page de mail": "Clique sur \"Request Demo\"",
    "verifier le formulaire de contact": "Verifie que \"Envoyez-nous un message\" est visible"
  }
}

Scenario using this glossary:

- Ouvrir "https://privateqa.com/"
- Ouvrir la page de mail
- Verifier le formulaire de contact

How it works:

  • terms: replaces domain words/aliases with a canonical wording
  • actions: rewrites business shortcuts into explicit step lines
  • Replacement is text-based (deterministic), applied before step parsing

Limits (Community):

  • No semantic inference: unknown terms are not guessed automatically
  • Replacements are lexical: keep glossary keys explicit and unambiguous
  • For advanced semantic interpretation, use Enterprise capabilities

Reports

Every run generates a full HTML report with:

  • Per-step pass/fail status and duration
  • Screenshots at each step (success and failure)
  • Error details with Playwright call logs
  • Overall summary with charts

Use --save to accumulate runs into an evolution chart that tracks your test health over time.

Advanced: step-by-step commands

For more control, you can run each stage separately:

npx privateqa map https://your-app.com          # 1. Map the DOM
npx privateqa compile scenario.md --glossary .privateqa/glossary.json  # 2. Generate .spec.ts
npx privateqa run                                # 3. Run all generated tests

CLI reference

| Command | Description | |---------|-------------| | privateqa run <scenario.md> | All-in-one: map + compile + execute + report | | privateqa run | Execute already-generated tests | | privateqa map <url> | Crawl a URL and build a DOM map | | privateqa compile <scenario.md> | Generate Playwright spec(s) from a scenario | | privateqa report | Generate an HTML report from the last run | | privateqa evolution | Generate an evolution chart across runs | | privateqa api | Start the REST API server |

Plugin system

privateqa exposes a plugin API to intercept step failures, add retry logic, or hook into the test lifecycle:

import { registerPlugin } from "privateqa-community";
import type { QAPlugin } from "privateqa-community";

const myPlugin: QAPlugin = {
  name: "my-plugin",
  async onStepFailure(ctx) {
    console.log(`Step "${ctx.label}" failed:`, ctx.error.message);
    return { action: "fail" };
  },
};

registerPlugin(myPlugin);

| Hook | When | |------|------| | onStepFailure(ctx) | A test step throws — return retry, skip, or fail | | onTestBegin(page, testInfo) | Before each test | | onTestEnd(page, testInfo) | After each test |

Exports

| Import path | Contents | |-------------|----------| | privateqa-community | Plugin API, step types, builder, store | | privateqa-community/base | Playwright fixtures (test, expect, qaStep) | | privateqa-community/plugin | Plugin types and registry | | privateqa-community/errors | Error detection and enrichment |

Environment variables

| Variable | Default | Description | |----------|---------|-------------| | PRIVATEQA_SINGLE_BROWSER | true | Run generated specs with one Playwright worker (single browser instance) | | PRIVATEQA_KEEP_TAB | true | Reuse the same Playwright page/tab across tests (same worker) |

License

MIT