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

snipara-evals

v0.1.0

Published

Project Intelligence evals for AI coding agents.

Readme

snipara-evals

Project Intelligence evals for AI coding agents.

snipara-evals is a small open-source scoring harness for questions most agent evals still miss:

  • did the agent preserve the project context it was given?
  • did it respect decisions and avoid rejected directions?
  • did it understand the impact surface of the change?
  • did it run or report the expected verification?
  • did it preserve enough continuity for another agent to resume the work?

It is deterministic by default and does not require an LLM judge. You describe a case in JSON, pass in the observed agent output, and get a scorecard that can run locally or in CI.

Why This Exists

Most coding-agent evals ask whether the final answer is correct. That is useful, but not enough for real projects. Agents also need to carry project decisions, blast radius, verification plans, and handoff context across a task.

This repo is part of the open "Mini Snipara" stack:

| Repo | Role | | --- | --- | | snipara-companion | Workflow continuity for AI coding agents | | snipara-memory | Local durable project memory | | snipara-evals | Project Intelligence scoring |

Hosted Snipara remains the managed layer for source authority, reviewed memory, team sync, code graph impact, dashboards, and operations.

Quick Start

npx snipara-evals run examples/project-intelligence-case.json

JSON output:

npx snipara-evals run examples/project-intelligence-case.json --json

Fail CI when thresholds are missed:

npx snipara-evals run examples/project-intelligence-case.json --fail-on-threshold

Case Format

{
  "id": "agent-handoff-example",
  "expected": {
    "context": [
      {
        "id": "license",
        "text": "The public repository uses Apache-2.0.",
        "keywords": ["Apache-2.0", "public repository"]
      }
    ],
    "decisions": [
      {
        "id": "hosted-code-graph",
        "statement": "Code graph remains hosted.",
        "keywords": ["code graph", "hosted"],
        "rejectedKeywords": ["open source code graph"]
      }
    ],
    "impact": [
      {
        "id": "cli-surface",
        "target": "CLI command surface",
        "keywords": ["CLI", "command"],
        "files": ["src/cli.ts"]
      }
    ],
    "verification": [
      {
        "id": "test-suite",
        "check": "Run the package tests.",
        "command": "pnpm test",
        "keywords": ["tests pass"]
      }
    ],
    "continuity": [
      {
        "id": "handoff",
        "handoff": "Leave a concise next-step handoff.",
        "keywords": ["handoff", "next step"]
      }
    ]
  },
  "observed": {
    "answer": "Implemented the CLI in src/cli.ts, kept code graph hosted, and ran pnpm test. Handoff: next step is release packaging.",
    "filesChanged": ["src/cli.ts"],
    "commandsRun": ["pnpm test"]
  }
}

Metrics

snipara-evals reports five metric scores from 0 to 100.

| Metric | What it checks | | --- | --- | | Context Preservation | Required facts, constraints, and source details were carried into the result | | Decision Consistency | Canonical decisions were followed and rejected directions were avoided | | Impact Awareness | Files, commands, dependencies, risks, or affected surfaces were acknowledged | | Verification Coverage | Expected checks were run, mentioned, or marked with status | | Continuity | Handoff, resume point, blockers, and next action are visible |

The scoring rules are intentionally simple and public. This repo is not a dump of Snipara's internal benchmark fixtures, tuning notes, or private rubrics.

Library Usage

import { evaluateCase } from "snipara-evals";

const result = evaluateCase({
  id: "demo",
  expected: {
    context: [{ id: "fact", text: "The package is Apache-2.0 licensed." }],
  },
  observed: {
    answer: "The package is Apache-2.0 licensed.",
  },
});

console.log(result.overall.score);

Development

pnpm install
pnpm build
pnpm type-check
pnpm lint
pnpm test
pnpm pack:smoke

Open Source Boundary

Good public contributions:

  • deterministic scoring helpers
  • portable JSON case formats
  • CLI/reporting improvements
  • sanitized examples
  • adapters for public agent transcripts

Keep private:

  • customer data
  • private runbooks or deployment details
  • internal benchmark datasets and raw reports
  • proprietary ranking heuristics or hosted code graph internals
  • secrets, .env files, screenshots, logs, and generated config dumps