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

@noetic-tools/eval

v1.0.0

Published

Eval framework for Noetic agents: the describe/it/scorer suite runner, built-in and custom scorers, regression baselines, and GEPA-backed prompt optimization.

Downloads

142

Readme

@noetic-tools/eval

Eval framework for Noetic agents.

Write eval suites the way you write tests: describe an agent, it over examples, and score each execution with composable scorers. Suites run against real agents (react, step, any Step), so what you measure is what ships.

  • Suite runnerdescribe / it / it.each with a per-example EvalContext that executes the agent and scores the result.
  • Scorers — built-ins (LLM judge, answer relevancy/similarity, faithfulness, hallucination, bias, completeness, context precision/relevance, tool-call accuracy, prompt alignment, token efficiency, cost, latency, file/directory review) plus scorer.custom() for your own.
  • Regression baselines — save a baseline, then fail CI when scores drop.
  • Optimizationoptimize() improves prompt fields against your own evals, backed by GEPA, and can write the winning values back to source.

Install

bun add -d @noetic-tools/eval

optimize()'s GEPA backend needs the optional peer @ax-llm/ax; install it only if you use optimization. The rest of the package works without it.

bun add -d @ax-llm/ax

Write a suite

import { react } from '@noetic-tools/core';
import { describe, it, scorer } from '@noetic-tools/eval';

const agent = react({
  model: 'anthropic/claude-sonnet-4',
  instructions: 'You are a ticket routing agent...',
  tools: [classifyTool, escalateTool],
  maxSteps: 6,
});

describe(agent, { objective: 'Routes billing tickets to the billing category' }, () => {
  it.each(
    [
      { input: 'I was double-charged on my last invoice', expectedCategory: 'billing' },
      { input: 'Can I get a refund for the overcharge?', expectedCategory: 'billing' },
    ],
    async (ctx) => {
      const exec = await ctx.execute(ctx.example.input);
      await exec.score([
        scorer.custom('classified-correctly', {
          generateScore: (e) =>
            String(e.output).toLowerCase().includes(ctx.example.expectedCategory) ? 1.0 : 0.0,
        }),
        scorer.latency({ target: 5e3, maxAcceptable: 3e4 }),
      ]);
    },
  );
});

Run

noetic-eval                     # run every *.eval.ts suite
noetic-eval --watch             # re-run on change
noetic-eval --json              # machine-readable results
noetic-eval --save-baseline     # record current scores
noetic-eval --check             # fail if scores regress from the baseline
noetic-eval --scope <scope> --budget <n>   # optimization run

License

Apache-2.0