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

@dogfood-lab/schemas

v1.2.3

Published

JSON schemas for the testing-os contract spine — record, finding, pattern, recommendation, doctrine, policy, scenario, submission.

Readme

@dogfood-lab/schemas

JSON schemas for the testing-os contract spine — record, finding, pattern, recommendation, doctrine, policy, scenario, submission.

Part of the testing-os monorepo — the operating system for testing in the AI era.

This package ships the 8 canonical JSON Schemas (2020-12 dialect) that the testing-os contract spine validates against. Every record, finding, pattern, recommendation, doctrine artifact, policy file, scenario definition, and submission envelope produced by the rest of the monorepo conforms to one of these schemas. Consumer packages (@dogfood-lab/verify, @dogfood-lab/findings, @dogfood-lab/report) load the schemas via the ./json/* subpath export and compile them with ajv.

Install

npm install @dogfood-lab/schemas

The 8 Schemas

| Schema file | Purpose | |---|---| | dogfood-record.schema.json | Persisted test/audit record produced by dogfood runs | | dogfood-record-submission.schema.json | Envelope shape repository_dispatch payloads must match | | dogfood-finding.schema.json | Evidence-bound finding contract — anchored to source line + severity + status | | dogfood-pattern.schema.json | Reusable pattern derived from findings (synthesis layer) | | dogfood-recommendation.schema.json | Recommendation derived from patterns | | dogfood-doctrine.schema.json | Doctrine artifact synthesized from patterns + recommendations | | policy.schema.json | Per-repo policy YAML shape (gate accumulation, severity thresholds) | | scenario.schema.json | Scenario definition shape (what gets tested + how) |

Usage — TypeScript surface

The package exports validatePayload and the compiled validators:

import { validatePayload } from '@dogfood-lab/schemas';

const result = validatePayload(submission, 'dogfood-record-submission');
if (!result.ok) {
  console.error('schema mismatch:', result.errors);
  process.exit(1);
}

Usage — Raw JSON schemas

The raw schema files are available via the ./json/* subpath export. Use createRequire to load them at runtime:

import { createRequire } from 'node:module';
const require = createRequire(import.meta.url);

const recordSchema = require('@dogfood-lab/schemas/json/dogfood-record.schema.json');
const findingSchema = require('@dogfood-lab/schemas/json/dogfood-finding.schema.json');

Or with import attributes (Node 22+):

import recordSchema from '@dogfood-lab/schemas/json/dogfood-record.schema.json' with { type: 'json' };

Compatibility

| | Constraint | |---|---| | JSON Schema dialect | 2020-12 | | Node | ≥ 20 | | $id form | https://github.com/dogfood-lab/testing-os/packages/schemas/src/json/<name>.schema.json |

$id is a contract field. Changes that consumers should treat as contract changes bump the monorepo's lockstep version.

Docs

📖 Full handbook: https://dogfood-lab.github.io/testing-os/handbook/

License

MIT © 2026 mcp-tool-shop