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

@titan-design/throughput

v0.3.2

Published

Per-class throughput model: recency-weighted quantiles of agent-hours and cost over task actuals

Readme

@titan-design/throughput

Per-class throughput model: recency-weighted quantiles of agent-hours and cost over task actuals.

classTable(actuals, config) returns p10, p50, p80 and p90 of implAgentHours, reviewAgentHours and usd, keyed kind x size band (estimate <=1, 2, 3, >=4, none). Rows are weighted by a 21-day recency half-life. A class below 20 weighted rows backs off to its kind, its size band, the task's initiative, then global, and names the level and n it used. classFor(table, { kind, estimate, initiative }) resolves one task.

import { classFor, classTable } from "@titan-design/throughput";

const table = classTable(rows, { minerIndexedAt });
classFor(table, { kind: "security", estimate: 2, initiative: "web" });
// { level: "kind", levelKey: "security", n: 31, weightedN: 22.4, implAgentHours: { p10, p50, p80, p90 }, ... }

forecastSet(tasks, table, { seed, closure, weekEffect }) simulates a set of tasks from their class quantiles and returns p10/p50/p80/p90 of the set's total hours and USD. closureRates supplies each class's chance of closing with no agent work, and weekEffects a shared per-week multiplier, so tasks done in one bad week move together.

const closure = closureRates(rows, table);
const weekEffect = weekEffects(rows, table);
forecastSet(tasks, table, { seed: "plan-1", closure, weekEffect }).totals.implAgentHours; // { p10, p50, p80, p90 }

backtestSets(rows, { origins, memberships, seed, open }) checks those set intervals: it refits at each origin and scores [p10, p90] coverage on seat-week, parent and milestone sets, with and without the week effect.

reviewTable(rows, { key: "diff" }) predicts reviewer hours, review rounds and post-PR wall hours keyed on review-panel class x lead touch, and reviewAblation compares that key with kind x size band on the same rows (pinball loss and 80% coverage per target).

The table carries modelHash (config, watermark and package version), watermark and packageVersion. Equal inputs give equal output in any row order.

Tier 2 of the titan-platform DAG. May import only packages in the same tier or below; the package-layers rule in .codewatch/check.json enforces this in CI.

Reference: https://hjewkes.github.io/titan-platform/reference/throughput