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/findings

v1.2.3

Published

Finding contract spine for testing-os. Validates, reads, lists, and queries evidence-bound findings — the fourth contract alongside record, scenario, and policy.

Readme

@dogfood-lab/findings

Finding contract spine for testing-os. Validates, reads, lists, and queries evidence-bound findings — the fourth contract alongside record, scenario, and policy.

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

Findings are the evidence-bound observations produced by dogfood runs. Each finding is anchored to a specific source line, carries severity (CRITICAL / HIGH / MEDIUM / LOW) and status (open / fixed / regressed / etc.) fields, and feeds the four-stage intelligence pipeline: derive → review → synthesize → advise.

Install

npm install @dogfood-lab/findings

CLI

npx @dogfood-lab/findings --help

# Derive findings from records
npx @dogfood-lab/findings derive --records-dir records/ --out findings/

# Review pipeline (apply state transitions, build event log)
npx @dogfood-lab/findings review --findings-dir findings/

# Synthesize patterns + recommendations + doctrine
npx @dogfood-lab/findings synthesize --findings-dir findings/

# Query / advise downstream consumers
npx @dogfood-lab/findings advise --topic <topic>

Programmatic surface

import { listFindings, readFinding } from '@dogfood-lab/findings/reader.js';
import { validateFinding } from '@dogfood-lab/findings/validate.js';

const findings = listFindings({ dir: './findings' });
const first = readFinding(findings[0].path);

const result = validateFinding(first);
if (!result.ok) {
  console.error(result.errors);
}

Pipeline stages

| Stage | Module | Output | |---|---|---| | Derive | derive/derive-findings.js | New finding files under findings/; deduplication via derive/dedupe.js | | Review | review/review-engine.js | Status transitions + event-log.jsonl audit trail | | Synthesize | synthesis/pattern-derivation.js, synthesis/recommendation-derivation.js, synthesis/doctrine-derivation.js | Pattern, recommendation, doctrine artifacts | | Advise | advise/advice-bundle.js, advise/query.js | Advisory bundles for downstream consumers (e.g., @dogfood-lab/dogfood-swarm) |

Finding shape

finding_id: F-XXXXXX-XXX
severity: HIGH
status: open
title: <short imperative-mood phrase>
evidence:
  source_pin: { file: <path>, line: <n>, snippet: <verbatim> }
  test_pin: { file: <path>, line: <n>, name: <test-name> }
remediation:
  approach: <strategy>
  rationale: <why>

Full shape: @dogfood-lab/schemas/json/dogfood-finding.schema.json.

Atomic I/O (shared discipline)

Internal helpers under lib/:

  • atomic-write.js — two-phase commit for finding-file writes (writeFileSync to shadow → renameSync to canonical)
  • file-lock.js — cross-process advisory lock via linkSync CAS, Windows-compatible
  • rename-with-retry.js — bounded retry on EPERM/EBUSY (Windows AV scanner handle-release window)

These helpers are intentionally shared cross-package discipline. They're exported via the ./lib/* subpath so @dogfood-lab/dogfood-swarm and @dogfood-lab/ingest can reuse the same atomic-write semantics. The CLAUDE.md in the repo root documents the cycle this creates and why it's accepted.

Docs

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

License

MIT © 2026 mcp-tool-shop