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

@oribos/evals

v0.9.0

Published

Oribos evals capability package — scorers consume a run's public result surface (steps / text / usage / finishReason): scoreRun scores a settled run standalone, createScorerProcessor wires per-step scorers into a live run through the Processor seam. No de

Readme

@oribos/evals

Evals / scorers for Oribos: scorers consume a run's public result surface (steps / text / usage / finishReason) at the two points that surface already offers — scoreRun() scores a settled run standalone, and createScorerProcessor() wires per-step scorers into a live run through the Processor seam, the agent's only cross-cutting extension point. The core gains no seam.

import { createScorerProcessor, scoreRun } from '@oribos/evals';

const focusedStep = {
  name: 'focused-step',
  score: ({ step }) => ({ value: step.toolCalls.length <= 1 ? 1 : 0 }),
};

const desk = new Agent({
  // …name / instructions / model / tools…
  processors: [
    createScorerProcessor({
      scorers: [focusedStep], // every completed step, scored as it lands
      onScore: (outcome) => scoreboard.push(outcome),
    }),
  ],
});

const result = await desk.generate('Where is order A-1007?');
const outcomes = await scoreRun(result, [
  {
    name: 'names-the-order',
    score: ({ text }) => ({ value: text.includes('A-1007') ? 1 : 0 }),
  },
]);

Install

npm install @oribos/evals @oribos/core

The package depends on nothing. @oribos/core is a peer (workspace:^): scorers are built from the core's public surface (Processor, the output object's terminal values), so the core stays the single instance the host application owns.

The scoring contract

  • A scorer is a plain object — name plus score(target), no factory required. The two target kinds are the two consumption points: RunScorer sees the run's terminal surface (text / steps / usage / finishReason, a Pick of AgentGenerateResult); StepScorer sees exactly what the processOutputStep hook is handed (step, stepIndex, requestContext), passed through untouched.
  • A score is { value: number, reason?: string }. The range is the scorer's own contract (0..1 by convention). A malformed return — a non-finite value, a non-string reason — is a scorer failure, reported exactly like a throw.
  • Every outcome is reported, discriminated by ok. { scorer, ok: true, score } or { scorer, ok: false, error } — a scoreboard never confuses the two. Wired outcomes also carry the stepIndex they belong to.
  • Evals observe; they do not gate. A scorer's failure never fails the run and never voids the batch: it lands as an ok: false outcome. A gate is a guardrail — a hand-written processor that rewrites or throws. The sink is user code: an onScore throw propagates as an ordinary processor failure (the run's failure).
  • One run, both consumption styles. scoreRun accepts generate()'s settled result or the stream() output object as-is (await serves plain values and promise terminals alike) — the output object's dual consumption, one code path.
  • Zero core changes, zero runtime dependencies. Everything here is composed over the public surface; an app that never installs the package pays nothing.