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

@qawolf/api-contracts

v0.167.0

Published

Versioned contracts for the QA Wolf public API

Readme

@qawolf/api-contracts

Versioned contracts for the QA Wolf public API.

The package is the source of truth for public endpoints, and server implementations must derive their public input and output schemas from these contracts. Contract name values are exact tRPC route paths under the public namespace. Authorization and privileged request state stay in the owning server controller or policy.

import { publicContractsV1 } from "@qawolf/api-contracts/v1";

const contract = publicContractsV1.run.create;

Every contract declares annotations with explicit readOnlyHint, destructiveHint, and openWorldHint booleans. These describe possible side effects for clients; adapters such as MCP pass them through. They do not control authorization. A kind: "read" contract can have readOnlyHint: false when reading also changes resource state, such as refreshing a billed runner's activity timer.

Every contract also requires annotationJustifications, with an explanation for each of those three hints. Keep each explanation specific to the tool, nonblank, and at most 200 characters so it fits the OpenAI submission form. Apex exposes these explanations in the QA Wolf extension _meta["qawolf/annotationJustifications"] on each MCP tool, including discovery before sign-in. This metadata does not replace the standard boolean annotations or change authorization. Submission authors can copy the explanations into the form; automatic import by OpenAI is not assumed.

Annotations include downstream effects in connected integrations. Creating an environment can create a remote Git branch, and stopping a run can update external run-status messages and commit statuses, so both declare openWorldHint: true. Inspection, journal reads and screenshots refresh the runner's inactivity timer on every runner and can extend its billed lifetime, so their contracts declare readOnlyHint: false.

Contracts are built by a factory that takes the id schemas as input. External consumers use publicContractsV1, which validates ids loosely (the server is the source of truth for id formats). The server instantiates makeContractsV1 with its own strict id schemas, so the contract shape can never drift between the two sides while validation strictness stays server-owned.

This package must not depend on internal packages or expose internal concepts: it is published publicly.

Run events webhook

The package also defines the body of each run events webhook request, so a receiver can check what it gets after verifying the request's signature:

import { publicRunEventsWebhookRequestSchema } from "@qawolf/api-contracts/v1";

const { events } = publicRunEventsWebhookRequestSchema.parse(body);

Publishing

This package is published to the public npm registry so external repositories such as qawolf/cli can consume the public contracts.