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

vrunai

v0.1.4

Published

LLM agent evaluation framework — define agent behaviour in YAML, evaluate against multiple models, compare results

Readme

The Problem

Most teams evaluate agents by checking the final output. But agents can produce the correct result via the wrong path — skipping tool calls, hallucinating intermediate values, or taking shortcuts that work in testing but fail in production.

VRUNAI tracks path accuracy, tool accuracy, and outcome accuracy separately — and catches bugs that output-only evaluation misses.

Install

npm install -g vrunai

Usage

vrunai          # Launch the interactive TUI
vrunai web      # Launch the web UI at http://localhost:3120

The TUI and web UI share the same evaluation engine. Configure your LLM providers, load a YAML spec, and run evaluations.

CLI Commands

vrunai models list          # List all built-in models with pricing
vrunai models show <id>     # Show details for a specific model
vrunai models validate      # Validate your custom models config
vrunai web [port]           # Start the web UI (default port: 3120)

What It Evaluates

| Metric | What it measures | |--------|-----------------| | Path accuracy | Did the agent follow the expected execution path? | | Tool accuracy | Were the right tools called in the right order? | | Outcome accuracy | Did the agent produce the correct final output? | | Consistency | How often does the agent take the same path across N runs? | | Latency | Average response time per scenario | | Cost | Total cost per scenario per provider |

Agent Definition Language

Define your agent, tools, execution flow, and test scenarios in a single YAML file:

agent:
  name: "Customer Support Triage"
  description: "Classifies inquiries, checks order status, issues refunds or escalates"
  instruction: "You are a customer support assistant..."

tools:
  - name: "classify_inquiry"
    description: "Classifies the customer inquiry by type and urgency"
    input: { message: "string" }
    output: { type: "string", urgency: "string", confidence: "number" }
    mock:
      - input: { message: "My order hasn't arrived after 14 days" }
        output: { type: "late_delivery", urgency: "high", confidence: 0.94 }

  - name: "lookup_order"
    description: "Looks up order status and refund eligibility"
    input: { order_id: "string", inquiry_type: "string" }
    output: { found: "boolean", status: "string", eligible_for_refund: "boolean" }
    mock:
      - input: { order_id: "ORD-8821", inquiry_type: "late_delivery" }
        output: { found: true, status: "in_transit", eligible_for_refund: true }

flow:
  - step: "classify"
    tool: "classify_inquiry"
    input_from: "user_input"
  - step: "lookup"
    tool: "lookup_order"
    input_from: "classify"
  - step: "route"
    condition:
      if: "lookup.output.eligible_for_refund == true"
      then: "auto_refund"
      else: "escalate"
  - step: "auto_refund"
    tool: "issue_refund"
    input_from: "lookup"

scenarios:
  - name: "late_delivery_auto_refund"
    input: "My order #ORD-8821 hasn't arrived after 14 days"
    context: { order_id: "ORD-8821", customer_id: "CUST-1142" }
    expected_path: ["classify", "lookup", "auto_refund"]
    expected_tools: ["classify_inquiry", "lookup_order", "issue_refund"]
    expected_outcome: { success: true }

providers:
  - name: "openai"
    model: "gpt-4o"
  - name: "anthropic"
    model: "claude-sonnet-4-20250514"

scoring:
  runs_per_scenario: 3

Spec Reference

| Key | Required | Description | |-----|----------|-------------| | agent.name | yes | Display name | | agent.description | yes | Short description of what the agent does | | agent.instruction | yes | System prompt sent to the model | | tools[] | yes | Tool definitions with input/output schemas and mock data | | tools[].mock[] | yes | Input/output pairs used instead of real tool calls | | flow[] | yes | Ordered steps; each maps to a tool or a conditional branch | | flow[].condition | no | if/then/else branch based on a previous step's output | | scenarios[] | yes | Test cases: input, context, expected path/tools/outcome | | scenarios[].mock_override | no | Per-scenario override of a tool's mock output | | providers[] | yes | Models to evaluate; matched against configured API keys | | scoring.runs_per_scenario | no | Times to run each scenario (default: 1) |

Supported Providers

26 built-in models with pricing. Custom base URLs supported for local or self-hosted models. Add your own via ~/.config/vrunai/models.json.

Links

License

AGPL-3.0