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

@popcornai/cli

v0.1.0

Published

Popcorn CLI: run eval suites (popcorn review), replay runs (popcorn rewind) and tail live runs (popcorn watch)

Readme

@popcornai/cli

Command line for Popcorn AI: run eval suites against your AI agent and catch regressions, replay recorded runs, and tail live runs.

npm install --save-dev @popcornai/cli

Setup

Describe your agents in popcorn.config.ts at your project root:

import { defineConfig } from '@popcornai/cli';
import { supportAgent } from './src/agent';

export default defineConfig({
  agents: { [supportAgent.agentName]: supportAgent },
  judge: { model: 'claude-haiku-5-5' },
});

Set POPCORN_ENDPOINT and POPCORN_API_KEY (or put them in .env; the CLI loads it).

popcorn review

Runs every test case in a suite through your real agent, applies the checks, stores the result and compares it with the latest run on main.

npx popcorn review --suite support-v1
Reviews are in: 33/40, down 4 from main. 4 new bloopers.  ★★★★☆

                this run        main            change
Passing         33/40 (82.5%)   37/40 (92.5%)   -4
Cost per case   $0.013          $0.013          -0.6%

broken   T-002 Package arrived damaged  category: expected "refund", got "shipping"

Exits 1 when a case that passed on the baseline now fails, so it works as a CI gate.

| Option | Default | | | --------------------- | ---------- | -------------------------------------------- | | --concurrency <n> | 4 | Cases run at once | | --repeat <n> | 1 | Run each case n times and report flaky cases | | --baseline <branch> | main | Branch to compare against | | --format | table | table, markdown or json | | --output <file> | | Also write the report to a file | | --fail-on | regression | regression, any or never | | --no-upload | | Don't store this run |

Checks include tool_called, tool_args_schema, output_equals, output_matches, max_steps, max_cost and llm_judge. See the eval guide.

popcorn rewind

Replays a recorded run with tools stubbed to their recorded outputs, then prints a step-by-step diff.

npx popcorn rewind <run-id> --system-file prompts/v2.md
npx popcorn rewind <run-id> --from-step 4 --model claude-sonnet-5-5

popcorn watch

Live tail of incoming runs.

npx popcorn watch

popcorn dataset add

npx popcorn dataset add <run-id> --suite support-v1 --checks '[{"type":"max_steps","max":6}]'

GitHub Action

Post the review as a pull request comment on every push:

- uses: alokmishra70/popcorn-ai/.github/actions/review@v1
  with:
    suite: support-v1

See the CI guide. Requires Node 20.11 or newer. MIT licensed.