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

@wzrd_sol/clawrouter-velocity

v0.1.6

Published

WZRD velocity scoring dimension for ClawRouter — model momentum as routing signal

Readme

@wzrd_sol/clawrouter-velocity

A model-momentum scoring signal for ClawRouter and any agent-native LLM router. It surfaces which models are gaining adoption across HuggingFace, GitHub, OpenRouter, and ArtificialAnalysis, and converts that into a [-1, 1] term you fold into your router's model-selection sum.

Install

npm install @wzrd_sol/clawrouter-velocity

Quick start

import { startCache, scoreModelVelocity, rankByVelocity } from "@wzrd_sol/clawrouter-velocity";

// Start the background cache (refreshes every 5 min; lookups are synchronous, in-memory)
await startCache();

// Score a single model for your router's weighted sum.
const dim = scoreModelVelocity("Qwen/Qwen3.6-27B");
// e.g. a surging model -> { name: "modelVelocity", score: 0.72, weight: 0.06, signal: "surging", wzrd: {...} }
// Values are live — the exact score and signal track the model's current momentum.

// Rank a batch of models by velocity
const ranked = rankByVelocity([
  "meta-llama/Llama-3.3-70B-Instruct",
  "Qwen/Qwen3.5-9B",
  "deepseek-ai/DeepSeek-V3",
]);
// Sorted by velocity score (highest first)

CommonJS

The package ships both ESM and CommonJS builds. The scoring functions are fully synchronous in both — safe to call inside ClawRouter's <1ms scoring loop.

const { startCache, scoreModelVelocity } = require("@wzrd_sol/clawrouter-velocity");

await startCache();
const dim = scoreModelVelocity("Qwen/Qwen3.5-9B"); // returns the dimension object, not a Promise

How it works

  1. Background cache polls the WZRD signal feed every 5 minutes
  2. scoreModelVelocity() converts WZRD's signal to ClawRouter's [-1, 1] dimension format
  3. Trend direction dominates (70%), raw velocity refines (30%), confidence dampens low-data models
  4. Quality index from ArtificialAnalysis benchmarks boosts by up to 15%
  5. Untracked models return neutral (0) — never breaks existing routing

ClawRouter is open-source (MIT). It scores each request across its own classifier dimensions (complexity, context, cost) to pick a tier; this signal is a separate, model-side term — it nudges selection toward models that are gaining adoption. Fold score * weight (suggested weight 0.06) into your model-selection sum, or wire it into a ClawRouter fork. It never reorders on its own — untracked models score 0, so existing routing is unchanged.

Scoring

The final score is a blend, not a fixed value per trend:

score = trendWeight * 0.7 + (rawVelocity - 0.5) * 0.6 * 0.3   // trend dominates, velocity refines
score *= confidenceWeight                                      // low-data signals dampen toward 0
score *= 1 + (qualityIndex / 100) * 0.15                       // AA benchmark boost, up to +15%
score  = clamp(score, -1, 1)

trendWeight is the per-trend input coefficient below. A surging model does not score +1.0 — after the velocity/confidence blend it typically lands around +0.6 to +0.8; a cooling model lands around -0.4 to -0.6.

| WZRD Trend | Trend weight (input) | Typical final score | Meaning | |---|---|---|---| | surging | +1.0 | +0.6 to +0.8 | Downloads/stars growing >30% | | accelerating | +0.6 | +0.3 to +0.5 | Growing 8-30% | | stable | 0.0 | ~0.0 | Flat | | decelerating | -0.5 | -0.2 to -0.4 | Slowing | | cooling | -0.8 | -0.4 to -0.6 | Dropping >50% | | insufficient_history | -0.1 | ~0.0 | Not enough snapshots yet |

Fuzzy matching

Model IDs are matched with a robust fallback cascade (highest → lowest priority):

  1. Exact normalized match: "Qwen/Qwen3.5-9B" (case-insensitive)
  2. Slug match: "qwen3.5-9b" (last segment after /)
  3. Fuzzy key match: dots→dashes, strips common suffixes (e.g., -chat, -instruct)
  4. ClawRouter alias table: known provider variants (e.g., "google/gemini-2.5-flash""gemini-2-5-flash")
  5. Provider-prefix fallback: if lookup fails, tries matching the model name alone (e.g., "vendor/my-model""my-model")
  6. Abbreviation normalization: common format variants (bf16 → bfloat16, f32 → float32)

Untracked models return 0 (neutral) — your existing router logic is never disrupted.

API

| Function | Returns | Description | |---|---|---| | startCache(url?, ms?) | Promise<void> | Start background refresh (default: 5 min) | | stopCache() | void | Stop background refresh | | refreshCache(url?) | Promise<void> | Force a one-off refresh now | | getVelocityScore(model) | number | 0.0-1.0 score (0.5 = neutral/untracked) | | getVelocitySignal(model) | VelocitySignal \| null | Full signal data | | scoreModelVelocity(model) | VelocityDimensionScore | ClawRouter dimension format | | rankByVelocity(models) | Array<...> | Sorted by velocity (highest first) | | getCacheSize() | number | Models in cache | | getCacheAge() | number | Cache age in ms |

Signal source

Data comes from the public, free, no-auth WZRD momentum API. It surfaces the top ~100 models ranked by momentum across HuggingFace, GitHub, OpenRouter, and ArtificialAnalysis. The cache merges the /premium feed (richer fields: velocity EMA, acceleration, quality index) with the base feed (broader coverage), so you get the full tracked set with extra fields where available. If the API is unreachable, the cache keeps serving the last good data (stale-while-revalidate).

License

MIT