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

adb-plugin-aegis

v1.0.2

Published

Automated threat detection for Advanced Discord Bot — anti-raid, anti-spam, anti-link, anti-alt

Readme

Aegis

Automated threat detection and mitigation for Discord servers, built as a plugin for Advanced Discord Bot.

Modules

| Module | Description | Default | |--------|-------------|---------| | Anti-Raid | Detects mass joins and auto-locks the server | Off | | Anti-Spam | Detects duplicate messages and mass mentions | Off | | Anti-Link | Deletes messages containing URLs or Discord invites | Off | | Anti-Alt | Blocks or flags accounts below a minimum age | Off |

All modules are off by default. Enable each one independently per guild.

Installation

# In your ADB plugins directory
npm install adb-plugin-aegis

Then add "adb-plugin-aegis" to your ADB plugin list.

Required Bot Permissions

  • Manage Channels (for lockdown)
  • Kick Members / Ban Members (for anti-alt/spam enforcement)
  • Moderate Members (timeout, for spam mute)
  • Manage Messages (to delete spam/links)
  • Set Verification Level (for raid lockdown)
  • Send Messages + Embed Links (for log channel output)

Configuration Commands

All /antimod subcommands require Administrator permission.
/antiraid lockdown requires Moderate Members permission.

Setup

/antimod setup          Show overview and module list
/antimod status         Show all module states and current settings
/antimod log #channel   Set the channel for Aegis log embeds

Anti-Raid

/antimod raid on
/antimod raid off
/antimod raid threshold <joins> <seconds>
  — e.g. /antimod raid threshold 10 10  (10 joins in 10s)

When the threshold is hit, Aegis automatically:

  1. Sets server verification to HIGH
  2. Denies SendMessages for @everyone in all text channels
  3. Logs to the configured log channel

To lift manually:

/antiraid lockdown

Anti-Spam

/antimod spam on
/antimod spam off
/antimod spam action <warn|mute|kick|ban>
  — "mute" applies a 10-minute timeout (default)

Triggers on N identical messages in a window, or a single message with N+ mentions.

Anti-Link

/antimod link on
/antimod link off
/antimod link whitelist <domain>
  — e.g. /antimod link whitelist github.com

Discord invite links (discord.gg/...) are always blocked when the module is on, regardless of the whitelist.
Whitelisted domains are stored per guild and persist across restarts.

Anti-Alt

/antimod alt on
/antimod alt off
/antimod alt age <days>   — minimum account age (default: 7 days)

Actions:

  • flag (default) — logs the join to the log channel; member is not removed
  • kick — immediately kicks the member with a reason

Development / Testing

npm install
npm test

Tests run without a real Discord connection or database (in-memory mocks).

License

This project is licensed under the GNU Affero General Public License v3.0. See the LICENSE file for details.

This repository follows the policies of the main ADB project.