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

agentproof-cli

v0.3.3

Published

Verify code changes before they reach production — CI-friendly checks, secrets, and security regression detection.

Readme

AgentProof

CI npm Node.js License: MIT

Verify code changes before they reach production.

AgentProof is a local-first verification CLI for Node.js / JavaScript / TypeScript repositories. It reviews a git diff against project context and policy, then reports whether the change is safe to merge.

Install from npm as agentproof-cli. The binary name is agentproof.


Why this exists

Pull requests fail for boring, expensive reasons: broken typechecks, missing tests on sensitive paths, leaked secrets, dependency surprises, and accidental auth regressions.

AgentProof packages those checks into one CI-friendly command with evidence-backed findings and an explicit merge status.


Pipeline

  1. Detect project tooling (package manager, frameworks, build/test/lint)
  2. Build the git diff (--staged, --base, or a revision)
  3. Classify changed files by risk domain
  4. Run available checks (typecheck, lint, tests, build, dependency review)
  5. Evaluate security rules with evidence snippets
  6. Score change risk and production readiness
  7. Emit PASS / REVIEW / BLOCKED

Quick start

npm install -D agentproof-cli
npx agentproof-cli
npx agentproof-cli --base main --ci
pnpm add -D agentproof-cli
yarn add -D agentproof-cli

Note: the npm package agentproof is a different product. This project publishes agentproof-cli.


Example output

AgentProof
──────────────────────────────────

Detected: NestJS + TypeScript + pnpm

Change Risk               HIGH
Production Readiness      81/100

✓ Typecheck               Passed
✓ Build                   Passed
✓ Tests                   Passed
✓ Lint                    Passed

⚠ New dependency          1
✗ Authorization removed   1

MERGE STATUS

BLOCKED

CLI

agentproof --help
agentproof --base main --ci
agentproof --staged
agentproof HEAD~1
agentproof --json
agentproof --sarif
agentproof --html ./agentproof-report.html
agentproof --config agentproof.config.yaml
agentproof --skip-checks

| Flag | Purpose | |------|---------| | --base <ref> | Compare against a branch or commit | | --staged | Analyze staged changes only | | --ci | Exit 1 when blocked | | --json / --sarif / --html | Alternate report formats | | --config <path> | Policy file | | --skip-checks | Run rules without project checks |

Exit codes: 0 pass/review · 1 blocked (with --ci) · 2 error


Coverage

Checks

  • Typecheck, lint, tests, build (when detected and required)
  • Lint can fail only on issues introduced on changed lines
  • Dependency deltas + optional OSV advisories (package name/version only)

Rules

High-signal findings with evidence: secrets, unsafe eval/shell/SQL patterns, redirect and path risks, CORS/TLS/header issues, sensitive logging, and auth/authz removals versus the base branch.

See RULES.md.

Framework detection

Works on any Node/JS/TS git repo. Built-in detection for:

  • Backend: Express, Fastify, Hono, NestJS, plain Node
  • Apps: React, Vite, Next.js, Remix, Astro, Nuxt, Vue, SvelteKit, Angular

Unsupported frameworks still get checks and rules; they just skip framework-specific detection helpers.

Package managers: npm, pnpm, Yarn, Bun.


Configuration

agentproof.config.yaml (also .yml, .json, .ts, or package.json#agentproof):

extends: security   # strict | security | relaxed | ci | ./team-pack.yaml

fail_on: high

protected_areas:
  - "src/auth/**"
  - "src/payments/**"
  - "prisma/migrations/**"

require:
  build: true
  tests: true
  typecheck: true
  lint: false

lint:
  new_issues_only: true

dependencies:
  new_dependency: review
  advisories: true

security:
  secret_detection: true
  auth_regression: true

| Pack | Intent | |------|--------| | ci | Typical PR gate | | security | Secrets + auth regression focus | | strict | Require build/tests/typecheck/lint | | relaxed | Block only on critical findings |


GitHub Action

- uses: Zardron/[email protected]
  with:
    base: origin/main
    fail-on: high

Or:

- run: npm install -D agentproof-cli
- run: npx agentproof --base origin/main --ci

Programmatic API

import { runPipeline, getVersion } from 'agentproof-cli'

const { report, exitCode } = await runPipeline({
  cwd: process.cwd(),
  base: 'main',
  staged: false,
  json: true,
  sarif: false,
  ci: true,
  skipChecks: false,
})

console.log(getVersion(), report.mergeStatus)
process.exitCode = exitCode

TypeScript declarations are included.


Privacy

  • MIT licensed
  • No telemetry by default
  • Source is not uploaded
  • OSV queries send package name/version only
  • Runs on your machine or CI runner

Requirements

  • Node.js 20+
  • Git repository
  • Network only if advisories are enabled

Docs

Maintainer

Maintained by Zardron Pesquera.

License

MIT