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

abuse-plus

v1.0.4

Published

A terminal which roasts you

Downloads

36

Readme

💀 Abuse — CLI Roasts

Abuse is a small command-line tool that responds to mistyped shell commands with a witty roast. It's configurable, multi-language ready, and intended for developers who like a little personality in their terminal.

⭐ Highlights

  • Playful roasts on invalid commands
  • Fuzzy suggestions for likely intended commands
  • Configurable "insult style" (sarcastic, friendly, badass)
  • Adjustable severity levels (low, medium, high)
  • Safe defaults: critical commands can be exempted

📦 Install

Install from npm (global):

For linux and mac: Just hit

sudo npm install -g abuse-plus

After installation the abuse command is available system-wide.

🔌 Shell Integration (Recommended)

To automatically roast mistyped commands in your shell, run:

abuse shell --install

This will append a hook to your .bashrc / .zshrc that forwards failed commands to Abuse.

⚡ Quick Usage

Mistyped command (example):

gti status

Example output:

❌ Command "gti" not found.
💡 Did you mean: git?

Explicitly use abuse

abuse handle gti status

Manage config:

abuse config --set severity=high
abuse config --get severity
abuse config --path

🎯 Commands

  • abuse handle <attempt> — Analyze a mistyped command and respond.
  • abuse config [--set|--get|--delete|--reset|--path|--open] — Manage user configuration.
  • abuse analyze — (dev) run suggestion engine diagnostics.

See bin/abuse.js and commands/ for the implementation and options.

⚙️ Configuration

User config is stored at ~/.abuse/config.json.

Example defaults:

{
  "language": "en",
  "severity": "medium",
  "enabled": true,
  "exempt_commands": ["sudo", "ssh"],
  "insult_style": "sarcastic",
  "data_dir": "~/.abuse"
}

Config tips:

  • severity: low | medium | high (default: medium)
  • insult_style: sarcastic | friendly | badass
  • exempt_commands: list commands that should never be roasted

🎭 Severity & Styles

Severity levels control how aggressive the output is:

  • low — gentle nudges
  • medium — moderate sarcasm (default)
  • high — strong roasts

Insult styles define tone:

  • sarcastic — dry programmer humor
  • friendly — light-hearted, safe
  • badass — bold, action-movie style

📁 Data layout

The insult phrases live under data/insults/<lang>/<style>/<level>.json. Each file is an array of strings.

Example structure:

data/
└── insults/
		└── en(english)/
				├── sarcastic/
				│   ├── low.json
				│   ├── medium.json
				│   └── high.json
				├── friendly/
				│   ├── low.json
				│   ├── medium.json
				│   └── high.json
				└── badass/
					├── low.json
					├── medium.json
					└── high.json

🛡️ Exempt Commands

By default, critical commands such as sudo and ssh are exempt. Add or modify exemptions via config:

abuse config --set exempt_commands='["sudo","git","npm"]'

🧠 Suggestion Engine & Logging

The suggestion engine combines:

  • local PATH scanning
  • string-similarity matching
  • shell completion lists (where available)

Roasts and suggestions are logged to ~/.abuse/logs.jsonl as JSON lines with fields like command, suggestion, insult, severity, and timestamp.

👨‍💻 Development

Clone and run locally:

git clone https://github.com/neekunjchaturvedi/abuse
cd abuse
npm install

Project layout highlights:

  • bin/abuse.js — CLI entrypoint
  • commands/ — command implementations (handle, config, analyze, etc.)
  • core/ — config and log managers, template engine
  • data/insults — insult datasets
├── bin/
│   └── abuse.js                # CLI entrypoint
│
├── commands/
│   ├── analyze.js              # Debugging / analysis tools
│   ├── config.js               # Config management
│   ├── handle.js               # Core "roast + suggestion" handler
│   ├── init.js                 # Initialization helpers
│   ├── logs.js                 # Log viewing/clearing
│   └── shell.js                # Shell integration (bash, zsh, PowerShell)
│
├── core/
│   ├── configManager.js        # Loads/saves user config from ~/.abuse
│   ├── logManager.js           # Writes logs to ~/.abuse/logs.jsonl
│   └── templateEngine.js       # Insult generator + dataset selector
│
├── data/
│   ├── common/
│   │   └── commands.json       # Common typos → correct command mapping
│   └── insults/
│       └── en/
│           ├── sarcastic/      # Sarcastic insults (low/medium/high)
│           ├── friendly/       # Friendly insults
│           └── badass/         # Badass insults
│
├── package.json                # NPM package info
├── LICENSE
└── README.md

🤝 Contributing

Contributions are welcome: bug reports, PRs, and new roast entries. Please:

  1. Fork the repo
  2. Create a descriptive branch
  3. Add tests where applicable
  4. Open a PR with a clear description

📜 License

MIT © 2025

💬 Contact

If you have questions or suggestions, open an issue or reach out via the repository.

https://github.com/neekunjchaturvedi/abuse

🔮 Whats Tuning Up

Windows OS support
AI Integrations
Statistics
and much more

💡 What You can do

Contribute towards Roasts for your prefered language

Come up with new ideas

Maybe just a correction in the code

🚀 Because we love FOSS

Abuse CLI is free, open-source, and community-driven. Built by developer, for developers. If you enjoy this project, contribute, report issues, or improve it.

❤️ We believe in FOSS. Fork it, hack it, improve it.