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-react

v0.1.1

Published

CLI review gates for AI-generated React and Next.js code before it ships.

Readme

AgentProof React

Your AI agent wrote React. That does not mean it should ship.

Most AI coding workflows fail because the model writes the code, explains the code, and then quietly convinces you the code is fine.

AgentProof React treats AI-generated React and Next.js code as untrusted until deterministic gates pass.

npx agentproof-react check

Bad React in. Review report out. No model self-grading.


Demo

Run the bad fixture first:

npm run demo:bad

It exits with code 1 because the fixture contains common generated-code failures that should block shipping.

Example output:

AgentProof React
Deterministic review gates for AI-generated React.

Checked 1 React/Next.js source file.

❌ Errors: 6
⚠️  Warnings: 4

❌ Client component imports server-only APIs
   examples/bad/UserList.tsx:3:1
   Rule: next/no-server-import-in-client-component
   Why: AI agents frequently cross Next.js server/client boundaries.
   Fix: Move server logic to a server component, route handler, server action, or API boundary.

❌ Unstable index key in mapped list
   examples/bad/UserList.tsx:26:17
   Rule: react/no-index-key

Ship verdict: BLOCKED
Reason: AI-generated code is untrusted until deterministic gates pass.

Run the good fixture:

npm run demo:good

Install

Use directly with npx:

npx agentproof-react check

Or install it in a repo:

npm install -D agentproof-react
{
  "scripts": {
    "agentproof": "agentproof-react check --strict"
  }
}

Usage

Scan changed, staged, or untracked git files when there are any; otherwise scan the current directory:

agentproof-react check

Scan a path:

agentproof-react check src app components

Scan everything under the target path:

agentproof-react check --all

Fail on warnings too:

agentproof-react check --strict

Emit JSON for CI, bots, or PR comments:

agentproof-react check --json

Exit codes:

  • 0: no errors, or warnings only without --strict
  • 1: shipping is blocked by errors, or by warnings in --strict mode
  • 2: CLI usage error, such as an unknown option or missing target path

Current gates

AgentProof React currently checks for:

  • unstable index keys in mapped lists
  • useEffect derived-state patterns
  • server-only imports inside Next.js client components
  • buttons missing explicit type
  • images missing alt
  • unsanitized dangerouslySetInnerHTML
  • browser globals during render
  • placeholder or fake implementation text
  • suspicious empty catch blocks
  • leftover console statements

This is intentionally not a replacement for ESLint, TypeScript, or tests.

It is a small AI-output review gate for the problems agents commonly produce when the code looks plausible but is not safe to ship.


Compared to normal linting

Normal linting asks:

Does this code violate general project rules?

AgentProof React asks:

What would an AI agent plausibly fake, forget, or cross without noticing?

Unlike generic React quality tools, AgentProof React assumes the code was generated by an agent and treats it as untrusted until deterministic checks pass.


CI example

name: AgentProof React

on:
  pull_request:

jobs:
  agentproof:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-node@v4
        with:
          node-version: 20
      - run: npx agentproof-react check --strict

Roadmap

  • PR comment output
  • configurable rule severity
  • Next.js App Router specific gates
  • Cursor / Claude Code / Codex changed-file detection
  • SARIF output for GitHub code scanning
  • rule packs for forms, auth, payments, and data fetching