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

evalpilot

v0.1.3

Published

Generic, easy-to-use eval framework for GitHub Copilot agents and skills: Markdown/TypeScript DSL, modeled results, and terminal/HTML/JSON renderers with JSONL trend tracking.

Readme

evalpilot

A generic, easy-to-use eval framework for GitHub Copilot agents and skills — the TypeScript/npm evalpilot engine.

You describe an eval once — as a Markdown *.eval.md file or a fluent TypeScript *.eval.ts builder — and evalpilot runs it, produces a modeled result, and renders that result to the terminal, a self-contained HTML report, and canonical JSON. It gives you two kinds of signal:

  • Assertions + judge — binary pass/fail (structural checks + LLM-as-judge).
  • Metrics — numeric values appended to committed JSONL history and compared against a baseline so regressions surface over time.

The JSON report schema is the canonical evalpilot report format used by the CLI.

For a full explanation of the engine's mechanics — discovery, spec compilation, staging, the arrange/act/assert pipeline, runners, telemetry, the judge, metrics/baselines, and status decisions — see the engine docs.

Install

npm install --save-dev evalpilot
# or run without installing:
npx evalpilot --help

Requires Node.js >= 18.

Quick start

cd your-repo
npx evalpilot discover                                  # what can it see?
npx evalpilot init                                      # scaffold evals/
npx evalpilot new my-eval --target my-agent --kind agent # create a spec
npx evalpilot lint                                      # validate (no SUT)
npx evalpilot run                                       # execute + render
npx evalpilot show --format html --open                 # open the report
npx evalpilot metrics --check                           # regression gate (CI)

EVALPILOT_RUNNER=mock runs the entire pipeline offline (no copilot, no tokens) — the engine's own tests and the newrun demo use it.

CLI commands

  • evalpilot init — scaffold an evals/ workspace.
  • evalpilot new <name> — create a Markdown or TypeScript eval spec.
  • evalpilot discover [target] — list discovered specs.
  • evalpilot lint [target] — validate specs without launching the SUT.
  • evalpilot run [target] — execute specs and write terminal/HTML/JSON reports.
  • evalpilot show [run] — render or open a previous report.
  • evalpilot metrics [target] — inspect or gate JSONL metric history.

Authoring an eval — Markdown DSL

---
name: my-agent-migration-plan
target: my-agent
kind: agent
tags: [smoke, judge]
timeout: 600
---

# Produces a concrete migration plan
> One-line summary (compact view).

## Description
Optional multi-paragraph, human-readable explanation. A file with only a
title + summary + `## Description` (no `## Act`/`## Assert`) is a valid *stub* —
`evalpilot lint` reports it as `[stub]` rather than an error.

## Act
```prompt
Ask the agent to do a real task. Do NOT include the expected answer.

Assert

files:
  exists: ["**/*.md"]
contains:
  - { text: "migration", ignore_case: true }
tools:
  called:     ["view"]
  not_called: ["str_replace_editor"]
files_accessed:
  not_read:    ["**/secrets.*"]
  not_written: ["agent-packs/**/*.agent.md"]
tokens:
  max_total: 2000000
  models:    ["claude-*"]
judge:
  threshold: 0.7
  criteria: |
    Score 1.0 only if ALL criteria are met; 0.5 partial; 0.0 off-topic.
metrics:
  - { name: judge_score, value: $judge.score, direction: higher_is_better,
      baseline: rolling_mean, tolerance: 0.1 }

The `tools`, `files_accessed`, and `tokens` families assert over run telemetry
(tool calls, file-access-by-tool, token/model usage) captured from Copilot's
OpenTelemetry file exporter. They **skip** (never fail) when telemetry is
unavailable — e.g. the `mock` runner or `EVALPILOT_TELEMETRY=off`. Builder
equivalents: `.expectToolCalled`, `.expectToolNotCalled`, `.expectFileRead`,
`.expectFileNotRead`, `.expectFileWritten`, `.expectFileNotWritten`,
`.expectTokenBudget`. Metric refs `$tokens.total|input|output` and
`$tools.count(<name>)` feed these signals into the trend history.

## Authoring an eval — TypeScript builder

Same capabilities as Markdown, but expressed in code so you can compute prompts
or share setup. Export the built spec as the module default (or any export):

```ts
// my-agent.eval.ts
import { Eval } from "evalpilot";

export default new Eval("my-agent-migration-plan", {
  target: "my-agent",
  kind: "agent",
  tags: ["smoke", "judge"],
  timeout: 600,
})
  .describe("A good result: the agent produces a concrete migration plan.")
  .prompt("Ask the agent to do a real task. Do NOT include the expected answer.")
  .expectFile("**/*.md")
  .expectContains("migration", { ignoreCase: true })
  .judge("Score 1.0 only if ALL criteria are met; 0.5 partial; 0.0 off-topic.", {
    threshold: 0.7,
  })
  .metric("judge_score", "$judge.score", {
    direction: "higher_is_better",
    baseline: "rolling_mean",
    tolerance: 0.1,
  })
  .build();

*.eval.ts files are loaded at runtime via jiti — no separate compile step is required.

Programmatic API

import { runSpecs, collectSpecs, renderTerminal, writeJson } from "evalpilot";

const specs = await collectSpecs("evals");
const report = await runSpecs(specs, { parallel: 4 });
writeJson(report, "evals/_runs/latest/report.json");
console.log(renderTerminal(report));

Structural evals

A structural eval is a *.eval.ts spec with kind: "none" and no .prompt(...). It runs offline and checks repository files directly:

import { Eval } from "evalpilot";

export default new Eval("readme-present", { kind: "none", tags: ["structural"] })
  .check("README exists", (ctx) =>
    ctx.read("README.md") ? true : [false, "missing README.md"]
  )
  .build();

In .check(), ctx.root is the repo root, ctx.read(rel) returns text or null, and ctx.glob(pat) returns sorted absolute paths.

License

MIT