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

preprompt

v0.2.19

Published

Test any prompt on every AI tool. Run your CLAUDE.md, AGENTS.md, or any AI instruction through Claude Code, Codex, and more in parallel sandboxes. See exactly where agents diverge.

Readme

PrePrompt

Test any prompt on every AI tool. One command, every agent, see what happened.

preprompt CLAUDE.md

PrePrompt runs your AI instructions through coding agents (Claude Code, Codex, Copilot, Cursor, Gemini, OpenCode) in clean sandboxes and shows you exactly what each agent did, files created, commands run, pass or fail.

Install

npm install -g preprompt

Or run without installing:

npx preprompt CLAUDE.md

Usage

# Test a prompt file
preprompt CLAUDE.md

# Test an inline prompt
preprompt "Create a Next.js app with TypeScript and Tailwind"

# Test with specific agents
preprompt CLAUDE.md --agents claude-code,codex

# See which agents are available
preprompt list

# CI mode: assert files exist, exit code 1 on failure
preprompt CLAUDE.md --check "file-exists:package.json" --check "dir-exists:src" --quiet

# JSON output
preprompt CLAUDE.md --json

Output

Detected 2 agents (claude-code, codex)
Detected 5 tools (env, git, node, npm, typescript)

  Project setup (1)
    - package.json exists

  Dependencies (6)
    - express is installed
    - dotenv is installed
    - typescript is installed as dev dependency

Generated 24 criteria

claude-code  52.4s
    + .env
    + .gitignore
    + health.ts
    + index.ts
    ~ tsconfig.json
    ~ package.json
    > npm init -y
    > npm install express dotenv
    > npm run build

codex  118.6s
    + .env
    ~ tsconfig.json
    > npm init -y
    > npm install express dotenv
    > npx tsc --init
    > npm run build

claude-code  0 failed
codex        1 failed
    - Server starts and GET /health returns { status: 'ok' }

Commands

| Command | What it does | |---------|-------------| | preprompt <prompt> | Run a prompt on all detected agents | | preprompt list | Show detected agents and their status | | preprompt diff | Compare filesystem results across agents | | preprompt trace | Replay an agent's execution step by step | | preprompt doctor | Diagnose why an agent failed (AI-powered) | | preprompt fix | Suggest prompt rewrites to fix failures | | preprompt compare | Before/after comparison of two runs | | preprompt badge | Generate an SVG compatibility badge | | preprompt explain | Show agent strengths, weaknesses, quirks | | preprompt history | Browse past runs | | preprompt completions | Generate zsh completions |

Agents

| Agent | Status | |-------|--------| | Claude Code | Supported | | Codex | Supported | | GitHub Copilot CLI | Supported |

How it works

  1. Detects which AI agents are installed on your machine
  2. Analyzes your prompt to generate verifiable success criteria
  3. Lets you review and approve criteria before running
  4. Creates a clean temp directory per agent (sandbox)
  5. Runs all agents in parallel with your prompt
  6. Evaluates each agent's sandbox against the criteria immediately after completion
  7. Shows what each agent did and what failed

License

MIT