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

@yaseen59/wrath-cli

v1.0.0

Published

An AI-powered developer CLI for scaffolding, indexing, and intelligently fixing codebases.

Readme

⚡ WRATH CLI

AI-powered developer CLI — scaffold projects, index codebases, and intelligently fix errors.


Installation

npm install -g wrath-cli
# or run locally
npm install
npm link

Setup

Create a .env file in your project root:

# Choose your AI provider (default: anthropic)
AI_PROVIDER=anthropic

# Anthropic (Claude)
ANTHROPIC_API_KEY=sk-ant-...
ANTHROPIC_MODEL=claude-sonnet-4-20250514  # optional

# OR OpenAI
# AI_PROVIDER=openai
# OPENAI_API_KEY=sk-...
# OPENAI_MODEL=gpt-4o

Commands

wrath create "<description>"

Scaffold a new project from a natural-language description.

wrath create "a REST API with Express, Prisma, and JWT auth"
wrath create "a React app with Tailwind and Zustand" --dir ./my-app
wrath create "a CLI tool for bulk image resizing" --no-install

Options:

  • -d, --dir <directory> — Target directory (default: .)
  • --no-install — Skip npm install
  • --no-git — Skip git init

wrath init

Scan and index the current project into .wrath/index.json.

wrath init
wrath init --force   # re-index even if already indexed

The index captures per-file: hash, imports, exports, functions, classes, summary, lastModified.


wrath fix "<error>"

Use the AI to diagnose and fix an error, with an interactive diff review.

wrath fix "TypeError: Cannot read properties of undefined (reading 'map')"
wrath fix "Module not found: Error: Can't resolve './utils/parser'" --dry-run

Workflow:

  1. WRATH loads the index and asks the AI which files are relevant.
  2. Reads only those files (no entire codebase in context).
  3. Sends error + file contents to the AI.
  4. Shows a colorized diff of proposed changes.
  5. Prompts you to apply or discard.
  6. Updates the index for modified files.

Options:

  • --dry-run — Show diff but don't write any files.

wrath status

Show the state of the current WRATH index.

wrath status

wrath reindex

Force a full re-scan of the project.

wrath reindex

wrath clear

Delete the .wrath directory entirely.

wrath clear

Project Structure

.
├── bin/wrath.js              # CLI entry point
├── src/
│   ├── commands/             # One file per command
│   ├── indexer/              # File scanning, hashing, index building
│   ├── fixer/                # AI client, diff viewer, patch applier
│   ├── creator/              # Project scaffolding via AI
│   ├── utils/                # Logger, file hasher
│   └── config.js             # Central config & constants
└── .wrath/
    └── index.json            # Generated project index

Index Schema

{
  "files": {
    "src/app.js": {
      "hash": "sha256hex...",
      "imports": ["express", "./routes/users"],
      "exports": ["app"],
      "functions": ["createApp", "startServer"],
      "classes": [],
      "summary": "Functions: createApp, startServer | Exports: app",
      "lastModified": 1712345678000
    }
  },
  "lastScan": 1712345678000
}

Supported File Types

JS/TS/JSX/TSX, Python, Go, Rust, Java, C/C++, C#, PHP, Ruby, HTML/CSS/SCSS, JSON, YAML, Markdown, Shell, Dockerfile, and more.

Requirements

  • Node.js ≥ 18
  • An Anthropic or OpenAI API key

License

MIT