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 🙏

© 2025 – Pkg Stats / Ryan Hefner

error-ai-cli

v2.8.5

Published

Explain Node.js errors using AI (proxy server required)

Readme

🧠 Error-AI CLI

A blazing-fast terminal tool that analyzes Node.js errors, explains them using advanced AI, and gives fixes without leaving your terminal.

✅ Runs directly in terminal ✅ Powered by advanced Gemini backend (no API key needed) ✅ Reads your file, captures real runtime error ✅ Explains the error & gives solution ✅ Beautiful colored output ✅ Typing animation + AI thinking spinner ✅ Debug like a pro — no copy/paste needed


🚀 How It Works

Just run your file with error-ai:

error-ai app.js

It will:

  1. Run your file
  2. Capture the error
  3. Send to AI backend
  4. Show solution with typing effect & colors

Example:

error-ai server.js

📦 Installation

npm install -g error-ai-cli

No API key required — everything is handled securely by the backend.


🧠 Features

| Feature | Description | | --------------------- | ------------------------------------- | | ⚙️ Run & debug | Executes your file and catches errors | | 🤖 AI-powered fixes | Advanced Gemini explains and solves | | 🌈 Colorful output | Chalk + Boxen styling | | ⌨️ Typing effect | Real AI response feel | | ⏳ Spinner animation | Shows "AI analyzing..." | | 🔍 Reads local errors | No copy-paste needed |


🕹️ Usage Examples

Run a file:

error-ai index.js

If your file is inside a folder (like src or utils), use the relative path:

error-ai src/index.js

Or:

error-ai utils/helper.js

Example:

error-ai index.js

If the file has an error, you'll see something like:

❌ Error: fs is not defined
🤔 Why: You didn't import fs
✅ Fix:
const fs = require("fs");

With smooth typing and animations inside an ASCII box.


📎 Requirements

  • Node.js v16+ (v18+ recommended for built‑in fetch)

🛠️ Tech

  • Node.js
  • Gemini AI Backend
  • Chalk v4
  • Boxen v5
  • CLI‑highlight

👨‍💻 Author

Shadab.dev


📄 License

ISC


🌟 Tip

Run error-ai instead of scrolling StackOverflow. Make debugging feel like magic