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.jsIt will:
- Run your file
- Capture the error
- Send to AI backend
- Show solution with typing effect & colors
Example:
error-ai server.js📦 Installation
npm install -g error-ai-cliNo 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.jsIf your file is inside a folder (like src or utils), use the relative path:
error-ai src/index.jsOr:
error-ai utils/helper.jsExample:
error-ai index.jsIf 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 ⚡
