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-prioritize

v0.1.0

Published

Deterministic policy-based queue prioritization for AI-agent workflows: rank, gate, quota, and select local work items without model calls.

Readme

@razroo/iso-prioritize

Deterministic policy-based queue prioritization for AI-agent workflows.

iso-prioritize turns local facts into an ordered work queue without asking a model to decide what matters next. It ranks items with weighted criteria, applies gates, boosts/penalties, per-field quotas, and emits an auditable JSON result.

Why

Agent systems often know the facts but still spend model tokens deciding:

  • which evaluated jobs to apply to first
  • which due follow-ups matter most
  • which pipeline URLs should be processed next
  • which replacement candidate to choose after a duplicate is skipped

This package moves that decision into local executable policy.

CLI

iso-prioritize rank \
  --config examples/jobforge-prioritize.json \
  --items examples/jobforge-items.json

iso-prioritize select \
  --config examples/jobforge-prioritize.json \
  --items examples/jobforge-items.json \
  --limit 3 \
  --out /tmp/selected.json

iso-prioritize check \
  --config examples/jobforge-prioritize.json \
  --items examples/jobforge-items.json \
  --min-selected 3

iso-prioritize verify --result /tmp/selected.json
iso-prioritize explain --config examples/jobforge-prioritize.json

Config Shape

{
  "version": 1,
  "defaults": { "profile": "jobforge-next-action", "limit": 3 },
  "profiles": [
    {
      "name": "jobforge-next-action",
      "criteria": [
        { "id": "fit-score", "field": "score", "weight": 45, "min": 0, "max": 5 },
        { "id": "urgency", "field": "urgency", "weight": 30, "min": 0, "max": 10 }
      ],
      "gates": [
        {
          "id": "duplicate",
          "action": "skip",
          "reason": "duplicate candidate",
          "when": { "where": { "duplicate": true } }
        }
      ],
      "quotas": [
        { "id": "one-per-company", "field": "company", "max": 1 }
      ]
    }
  ]
}

Field paths first check top-level item fields, then item.data. For example, score resolves item.score if present, otherwise item.data.score.

Item Shape

{
  "id": "followup-datadog",
  "key": "company-role:datadog:staff-ai-engineer",
  "type": "followup",
  "title": "Datadog - Staff AI Engineer follow-up",
  "tags": ["followup"],
  "data": {
    "company": "Datadog",
    "score": 4.1,
    "urgency": 9,
    "ageDays": 10,
    "sourceQuality": 1,
    "status": "Applied",
    "timelineState": "due"
  },
  "source": { "path": "data/applications/2026-04-17.md", "line": 8 }
}

Library

import {
  prioritize,
  selectPrioritized,
  checkPrioritize,
  verifyPrioritizeResult,
} from "@razroo/iso-prioritize";

const result = prioritize(config, items, { profile: "jobforge-next-action", limit: 5 });
const selected = selectPrioritized(result);

Design Notes

  • No MCP server.
  • No model call.
  • No prompt/tool-schema tokens unless you deliberately paste output into a prompt.
  • Stable content hash IDs make results verifiable.
  • Inputs stay generic so consumers can rank jobs, tasks, bugs, follow-ups, or any local work queue.