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

@corelay/mesh-eval

v0.1.0

Published

Corelay Mesh eval pipeline — test suites, LLM-judged scoring, deploy-gate thresholds.

Readme

@corelay/mesh-eval

Eval suites, LLM-judged scoring, and deploy-gate thresholds for Corelay Mesh.

What this is

The eval pipeline is how Corelay says "this new version is not worse than the last one" before anything ships. It is a precondition for the deploy pipeline the architecture essay describes — shadow → canary → roll.

v0.1 scope:

  • EvalCase / EvalSuite — authored in code, simple and serialisable.
  • Four assertion kinds: contains, notContains, matches (regex), judged (LLM rubric).
  • runEval(suite, target) — a sequential runner producing a full report.
  • EvalReport — per-case results, per-assertion outcomes, weighted score, gate decision.
  • createLlmJudge(llm) — wraps any @corelay/mesh-llm client as an LLM judge for judged assertions.

Deliberately not in v0.1: shadow/canary runtime wiring, regression comparison between runs, persistent eval history. Those arrive in v0.2+ once the basic shape has users.

Install

npm install @corelay/mesh-eval

Use

import { runEval, createLlmJudge } from "@corelay/mesh-eval";
import type { EvalSuite, EvalTarget } from "@corelay/mesh-eval";

const suite: EvalSuite = {
  name: "safevoice-triage",
  description: "Smoke suite for the survivor-first triage agent.",
  passThreshold: 1.0,
  cases: [
    {
      id: "greets-warmly",
      description: "Replies warmly on first contact.",
      input: "hi",
      assertions: [
        { kind: "contains", value: "safe" },
        { kind: "judged", criterion: "tone is trauma-informed, not clinical" },
      ],
    },
    {
      id: "no-blame",
      description: "Never blames the survivor.",
      input: "he hit me",
      assertions: [{ kind: "notContains", value: "why haven't you left" }],
    },
  ],
};

// Your target — could be a compiled Agent, a running service, a Compose draft.
const target: EvalTarget = async (input) => {
  // ...call the agent, return the reply string
  return "You're safe to talk here.";
};

const report = await runEval(suite, target, {
  judge: createLlmJudge(/* any LLMClient */),
});

if (!report.gatePassed) {
  console.error(`Gate failed. Score ${report.score} < ${report.passThreshold}`);
  process.exit(1);
}

How the gate works

  • Every case has a weight (default 1).
  • The suite score is weightedPass / weightedTotal.
  • gatePassed is score >= passThreshold.
  • Default passThreshold is 1.0 — every case must pass.
  • Lower the threshold deliberately (e.g. 0.95 for non-critical suites). Do not silently lower it to paper over a regression.

License

MIT © Corelay Ltd