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

@jev-harness/cli

v0.5.0

Published

Unified `jev` CLI for TypeSafe Jev (System One): ask, models, eval, plus the `jev-gate` post-run gate check for CI and subagents.

Readme

@jev-harness/cli

Two binaries for TypeSafe Jev — the System One decision model:

  • jev — the unified command line: ask, models, eval. Debug question design without building an adapter, and run evaluations without remembering package names.
  • jev-gate — a small CI/subagent gate around one Jev judgment over a git diff, file, or stdin.

Install

npm install -g @jev-harness/cli   # or: npx @jev-harness/cli <command>

From the monorepo:

npm install
npm run build --workspace=@jev-harness/cli

Requires TYPESAFE_API_KEY in the environment (TYPESAFE_BASE_URL, TYPESAFE_DEFAULT_MODEL, JEV_TIMEOUT_MS are honored too).

jev — commands

jev ask — one batched ask

# inline questions, default {} state
jev ask --questions '{"gate":{"type":"noul","instructions":"destructive?"}}'

# state and questions from files
jev ask --state state.json --questions questions.json

# envelope on stdin: {"state": ..., "questions": ...}
cat request.json | jev ask

# '-' reads that input from stdin
jev ask --state - --questions questions.json < state.json

Prints the full JSON response (answers with calibrated probabilities per question, plus usage) to stdout — pipe it into jq or a file. --model, --base-url, and --timeout-ms override the environment for one call.

jev models

jev models   # → ["jev-latest", ...]

jev eval

Delegates to jev-eval — same flags:

jev eval --dataset cases.jsonl --out report.json

jev-gate — usage

Judge a diff:

jev-gate --diff -c "all exported functions are documented"

Judge a file or piped output:

jev-gate --file ./report.txt --criteria "the report contains no failures"
npm test 2>&1 | jev-gate "zero test failures" --json

Exit codes for jev-gate:

  • 0: Jev probability meets the threshold.
  • 1: Jev judged the criteria below the threshold.
  • 2: the gate could not evaluate (missing key, invalid arguments, unreadable file, or API error).

Use --fail-open only when the surrounding pipeline explicitly prefers availability over enforcement. It reports the error but exits 0.

Exit codes (jev)

| Code | Meaning | | ---- | ------------------------------------------------------ | | 0 | Success | | 1 | Runtime error (missing key, API failure) | | 2 | Usage error (bad flags, invalid JSON, unknown command) |

Programmatic use

import { runCli } from "@jev-harness/cli";

const code = await runCli(["ask", "--questions", "..."], {
  fetchImpl: mockFetch,   // injectable for tests
  stdin: "",              // pre-read stdin
  out: (s) => ...,        // output sinks
  err: (s) => ...,
});

Scope

This is a semantic acceptance check, not a replacement for tests, linters, typecheckers, or security scanners. The state is sent to TypeSafe's hosted Jev API; do not pipe secrets or credentials into it.

License

Apache-2.0.