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

@razroo/iso-preflight

v0.1.0

Published

Deterministic preflight planning for AI-agent workflows: validate file-backed facts, apply gates, and produce bounded dispatch rounds without model calls.

Readme

@razroo/iso-preflight

iso-preflight answers: is this agent workflow safe to dispatch, and what rounds should run?

It is a deterministic, local CLI/library for validating file-backed candidate facts, applying precomputed skip/block gates, and producing bounded dispatch plans before browser/MCP/tool-heavy agent work starts. It does not call a model, does not run an MCP server, and does not add prompt or tool-schema tokens.

Install

npm install @razroo/iso-preflight

CLI

iso-preflight plan --config preflight.json --candidates candidates.json
iso-preflight check --config preflight.json --candidates candidates.json
iso-preflight explain --config preflight.json

Use --workflow <name> when a config contains multiple workflows, and --json for machine-readable output. check exits 1 if any candidate is blocked.

JobForge-style usage

iso-preflight plan \
  --config examples/jobforge-preflight.json \
  --candidates examples/jobforge-candidates.json

Example output:

iso-preflight: PLAN workflow=jobforge.apply
candidates: 3 ready, 1 skipped, 0 blocked, 2 round(s)
pre:
  - geometra-cleanup: geometra_list_sessions && geometra_disconnect({ closeBrowser: true })
rounds:
  1. job-1, job-2
  2. job-3
skipped:
  - job-4: already applied according to artifact index @ .jobforge-index.json
post:
  - merge: npx job-forge merge
  - verify: npx job-forge verify

Config shape

{
  "version": 1,
  "workflows": [
    {
      "name": "jobforge.apply",
      "roundSize": 2,
      "idFact": "id",
      "conflictFact": "companyKey",
      "requiredFacts": ["id", "company", "role", "companyRoleKey", "url"],
      "sourceRequiredFacts": ["company", "role", "companyRoleKey", "url"],
      "requireGateSources": true,
      "gatePolicy": {
        "skipStatuses": ["skip"],
        "blockStatuses": ["block", "fail"]
      },
      "preSteps": [{ "id": "cleanup", "label": "Cleanup", "command": "npx example cleanup" }],
      "postSteps": [{ "id": "verify", "label": "Verify", "command": "npx example verify" }]
    }
  ]
}

Candidate shape

Candidates carry facts and gate outcomes produced by domain code. A fact can be a raw JSON value or { "value": ..., "source": "path:line" }. Facts listed in sourceRequiredFacts must use the object form with a source.

{
  "candidates": [
    {
      "facts": {
        "id": { "value": "job-1", "source": "reports/001.md:3" },
        "company": { "value": "Anthropic", "source": "reports/001.md:6" },
        "companyKey": { "value": "company:anthropic", "source": "templates/canon.json" }
      },
      "gates": [
        { "id": "duplicate", "status": "pass", "source": ".jobforge-index.json" }
      ]
    }
  ]
}

Library

import {
  formatPreflightPlan,
  loadPreflightConfig,
  parseJson,
  planPreflight,
} from "@razroo/iso-preflight";

const config = loadPreflightConfig(parseJson(configText));
const result = planPreflight(config, parseJson(candidatesText), {
  workflow: "jobforge.apply",
});

console.log(formatPreflightPlan(result));

Boundaries

iso-preflight does not discover candidates, canonicalize identities, query indexes, or inspect ledgers by itself. Domain packages should use tools such as iso-canon, iso-index, iso-ledger, and iso-contract to produce candidate facts and gates, then feed those facts into iso-preflight for the final safe dispatch plan.