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

v1.2.3

Published

Ingestion pipeline for testing-os. Thin glue: dispatch → verifier → persist → indexes.

Readme

@dogfood-lab/ingest

Ingestion pipeline for testing-os. Thin glue: dispatch → verifier → persist → indexes.

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

Runs on the receiving side of the dogfood loop. Receives repository_dispatch payloads from consumer repos, validates them through @dogfood-lab/verify, persists records under records/, and rebuilds the read-side indexes (latest-by-repo.json, failing.json, stale.json) atomically.

Install

npm install @dogfood-lab/ingest

Usage — programmatic

import { run } from '@dogfood-lab/ingest';

const result = await run({
  payloadPath: './incoming.json',
  repoRoot: process.cwd(),
  provenance: 'github',
});

console.log(result.persisted_records);  // count of new records written
console.log(result.indexes_rebuilt);    // boolean
console.log(result.rejected);           // array of rejection reasons (if any)

Usage — CLI

npx @dogfood-lab/ingest run --payload incoming.json --repo-root .

The CLI exits with structured exit codes:

  • 0 — ok, all records persisted
  • 1 — user error (bad payload shape, missing files, invalid args)
  • 2 — runtime error (downstream validator failure, I/O failure)
  • 3 — partial success (some records persisted, some rejected)

Pipeline stages

| Stage | Module | Output | |---|---|---| | 1. Load context | load-context.js | Reads existing records/, policies/, prior indexes into memory | | 2. Validate | delegates to @dogfood-lab/verify | Verdict per record: ok or rejection_reasons[] | | 3. Persist | persist.js | Two-phase atomic write to records/<repo>/<record-id>.yaml | | 4. Rebuild indexes | rebuild-indexes.js | Regenerates latest-by-repo.json, failing.json, stale.json with crash-safe journaling |

Each stage emits a structured event via lib/log-stage.js so the ingest loop is observable end-to-end. Failures at any stage carry a code, message, and hint per the testing-os structured error contract.

Concurrency + crash safety

  • Per-repo locking: advisory file lock via @dogfood-lab/findings/lib/file-lock.js — Windows-compatible (uses linkSync CAS, not flock).
  • Atomic two-phase commit: lib/atomic-write.js writes to a .tmp-<pid>.json shadow first, then renames into place with renameWithRetry for Windows AV scanner handle-release windows.
  • Idempotent crash recovery: cleanupCrashedJournals runs at every entry point; partial writes from previous crashes are detected and either completed or rolled back.

What testing-os ingest does NOT touch

  • Consumer source code beyond what's referenced in the dispatch envelope
  • Secrets beyond the dispatch payload's own fields
  • Anything outside the testing-os repo's working tree

The receiver workflow runs with contents: write scoped to the testing-os repo only.

Docs

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

License

MIT © 2026 mcp-tool-shop