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

@thiaq/playwright-runner

v0.1.5

Published

Deterministic Playwright execution and report ingestion for ThiaQ flow harnesses.

Downloads

406

Readme

@thiaq/playwright-runner

Deterministic Playwright execution and report ingestion for ThiaQ-compatible flow harnesses.

import {
  buildFlowSubmissionEnvelope,
  createFlowRunner,
  ingestRunReportFromEnv,
} from "@thiaq/playwright-runner";

Install it with the flow DSL and Playwright test runner:

bun add --dev @playwright/test @thiaq/flow-core @thiaq/playwright-runner

Build one combined v2 submission from the same executable catalog and reports used by the runner. This preserves definition-step ids, journey-step ids, draft obligation bindings, commit provenance, and honest per-journey evidence:

const envelope = buildFlowSubmissionEnvelope({
  machineId,
  contractVersionId: "coverage-version-uuid",
  sourceSpec: "tests/thiaq/coverage-wave.spec.ts",
  flows,
  journeys,
  reports,
  provenance: {
    repo: "customer-repo",
    gitRef: "main",
    gitSha: commitSha,
  },
});

Submit that object through ThiaQ MCP submit_flow_envelope, then approve its returned submissionId with approve_flow_submission. The helper never marks partial or mismatched-commit evidence as passed.

For a pilot or exploratory catalog that must not bind live coverage, set mode: "exploratory". The helper emits submission_mode: "exploratory" and omits all flow and journey obligation bindings. Coverage mode remains the default and still requires each journey to nominate its contract and obligations.

Use contractVersionId for a successor draft. contractVersion remains available when the contract's human-readable version number is the only stable identifier. Agents can call list_coverage_obligations to enumerate the exact ids and keys in that draft, and get_flow_submission_schema to retrieve the authoritative v2 JSON Schema before submission. These operations are available with @thiaq/playwright-runner 0.1.5 or newer.

ingestRunReport and ingestRunReportFromEnv throw RunReportIngestError on every non-2xx control-plane response. Await the promise without converting that error into a passing teardown; its status, issues, and responseBody fields explain catalog/SHA rejection. ingestRunReportFromEnv also sets process.exitCode = 1 before rethrowing, so a broad customer-side catch cannot silently turn rejected evidence into a green CI command. Set THIAQ_ALLOW_INGEST_FAILURE=1 only for a deliberate negative ingest test.