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

@skillsregistry/eval

v1.0.3

Published

SkillsRegistry search eval suite — fixtures, Recall@1 / Recall@5 / MRR metrics, and a CLI runner for measuring search quality against any /v1/search endpoint.

Downloads

347

Readme

@skillsregistry/eval

Search-quality eval suite for SkillsRegistry — fixtures, Recall@1 / Recall@5 / MRR metrics, and a CLI runner that measures any /v1/search endpoint against a curated 90+ query fixture set.

Part of the SkillsRegistry SDK. Consumed by both the SkillsRegistry mothership (Cloudflare Workers) and the self-hostable local node (Node.js), and installable standalone as a QA / CI gate.

What ships

  • evalFixtures — 90+ query / expected-skill pairs across 5 phrasing patterns (direct, problem, business, alternate, composition), plus validateFixtures() / getFixtureStats() helpers.
  • computeMetrics(results) / buildEvalResult(fixture, response, ms) / formatMetrics(metrics) — Recall@1, Recall@5, MRR, per-tier accuracy, per-tier latency, per-pattern breakdown, match-source distribution, LLM-fallback lift.
  • runEvalSuite(endpoint, tenantId, options) — the programmatic entry point. Options include limit, verbose, and headers (arbitrary request headers — used to attach auth to protected endpoints).
  • skillsregistry-eval CLI (./dist/cli.js) — runs the suite from the terminal, prints the summary + failed-query report, exits non-zero when success rate < 50%.

Install

npm install --save-dev @skillsregistry/eval

CLI

# Against a public endpoint
npx skillsregistry-eval --endpoint https://api.skillsregistry.net

# Against a protected staging endpoint
npx skillsregistry-eval \
  --endpoint https://staging.example.com \
  --auth "Bearer $STAGING_TOKEN" \
  --header "X-Tenant-Id: default" \
  --verbose --show-failed

Flags:

| Flag | Purpose | |---|---| | -e, --endpoint <url> | Base host or full /v1/search URL | | -t, --tenant <id> | Tenant ID in the request body (default eval-tenant) | | -l, --limit <n> | Max results per query (default 10) | | -a, --auth <value> | Set Authorization: <value> | | -H, --header "Name: Value" | Arbitrary header. Repeatable. | | -v, --verbose | Per-fixture progress | | -f, --show-failed | Failed-query detail report |

Exit codes: 0 = success rate ≥ 0.5 (warnings for < 0.8), 1 = < 0.5 or fatal error.

Programmatic

import { runEvalSuite, formatSummary } from '@skillsregistry/eval';

const result = await runEvalSuite(
  'https://api.skillsregistry.net',
  'my-tenant',
  {
    headers: { Authorization: `Bearer ${process.env.API_TOKEN}` },
    verbose: true,
  },
);

console.log(formatSummary(result));

if (result.metrics.recall5 < 0.8) {
  process.exit(1);
}

Sub-paths

  • . — main barrel
  • ./fixtures — fixture data + validators
  • ./metrics — metric compute + formatters
  • ./runner — programmatic runner
  • ./cli — CLI entry (bin: skillsregistry-eval)

Phase / gate targets

| Metric | Baseline | |---|---| | Recall@1 | ≥ 70% (Phase 1) | | Recall@5 | ≥ 85% (Phase 1), ≥ 90% (Phase 3) | | MRR | ≥ 0.75 (Phase 1) |

.specifica/mvp/tasks.md gates the mothership migration PR (T-1.7) on Recall@5 ≥ 80% against the port before merge.

License

Apache-2.0.