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

@kidkender/archmind-scorer

v0.1.0

Published

Scores retrieval/benchmark results against golden traces for ArchMind evaluation.

Readme

@archmind/scorer

Measures how well ArchMind's retrieval and reasoning actually perform — against ground-truth data, not assumptions.


Why objective scoring matters

It's easy to claim a retrieval system is accurate. It's harder to prove it. @archmind/scorer makes quality measurable and regression-proof by providing ground-truth golden traces and the functions to score any result against them.

Every benchmark in the system uses the scorer. When a change improves recall on one trace but breaks another, the numbers say so immediately.


What it scores

Retrieval quality

Given a ground-truth golden trace (which nodes should be retrieved) and an actual RetrievalResult (which nodes were retrieved), the scorer computes:

  • High recall — fraction of HIGH-relevance nodes present in the result
  • Medium recall — fraction of MEDIUM-relevance nodes present
  • Combined recall — 0.7 × high_recall + 0.3 × medium_recall

HIGH-relevance nodes are weighted more because they represent the semantically critical parts of the execution path — the ones that cause real bugs when missed.

Answer quality

Scores an LLM-generated LLMResponse against a GoldenAnswer. Checks that the finding type, severity, key nodes, key phrases, and recommendations align with what a correct answer should contain.

Conversation quality

Scores a multi-turn conversation against a GoldenConversation. Evaluates each turn for per-turn correctness and the overall ability to maintain context and reason about follow-up questions.


Ground-truth format

Golden traces are YAML files in research/golden-traces/laravel/. Each one defines the ground truth for a specific entrypoint:

id: LARAVEL-AUTH-001
entrypoint: "PUT /tasks/{task}"
framework: laravel

nodes:
  - id: policy_TaskPolicy_update
    type: policy
    symbol: TaskPolicy::update
    retrieval:
      relevance: HIGH       # must be retrieved
      compressible: false

  - id: ctrl_TaskController_update
    type: controller_action
    symbol: TaskController::update
    retrieval:
      relevance: MEDIUM
      compressible: true

Node matching uses symbol substring matching plus semantic type equivalence — not exact ID comparison. This makes the scorer resilient to minor changes in how nodes are named.


Adversarial cases

research/adversarial-cases/ documents cases that the parser is expected to handle imperfectly — dynamic middleware, runtime-generated routes, etc. These have expected_failure: true annotations. They are not bugs to fix; they document the known boundaries of static analysis.


Usage

import { loadGoldenTrace, scoreRetrieval } from "@archmind/scorer"

const golden = loadGoldenTrace("research/golden-traces/laravel/LARAVEL-AUTH-001.yaml")
const result = retrieve({ entrypoint: golden.entrypoint }, graphs)
const score  = scoreRetrieval(golden, result)

score.combined_recall   // e.g. 1.00
score.high_recall       // e.g. 1.00
score.medium_recall     // e.g. 1.00

Running tests

cd packages/scorer
node --experimental-vm-modules ../../node_modules/jest/bin/jest.js