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

slow-ddos-detection

v0.0.1-beta1

Published

slow ddos dataset generator

Readme

Low and Slow DDoS Detection and Mitigation using Machine Learning for HTTP services

Introduction

This project is continuation of Research Project with title "DEEP LEARNING-BASED DETECTION SYSTEM FOR SLOW AND LOW DDOS ATTACKS AT THE APPLICATION LAYER". The main goal of this project is to detect and mitigate Low and Slow DDoS attacks using Machine Learning inside application layer.

Usage

Installation

npm install slow-ddos-detection

Database Initialization

DATABASE_URL=postgresql://janedoe:mypassword@localhost:5432/mydb?schema=sample npx slow-ddos-detection db-init

Using as Middleware

import { middleware } from 'slow-ddos-detection';

const server = http.createServer((req, res) => {
    middleware(req, res, (req, res) => {
        // Your code here
    }, {
        // Options
        identifierGetter: (req) => req.ip,
    });
});

server.listen(process.env.PORT || 8080, () => {
  console.log(`Server listening on port ${process.env.PORT || 8080}`)
})

Using the detection function

import { detectFromLogInterval } from 'slow-ddos-detection';

detectFromLogInterval({
    model: 'lstm-8',
    interval: 1000,
    clientSize: 10
})

Available Models

| Model | Accuracy | Precision | Recall | F1 Score | Time per Prediction (ms) | | --- | --- | --- | --- | --- | --- | | cnn1d-4 | 0.97561738 | 0.97123202 | 0.979810726 | 0.975502513 | 0.725539231 | | lstm-4 | 0.979055955 | 0.975609756 | 0.982367758 | 0.978977094 | 2.142544545 | | lstm2-4 | 0.989371679 | 0.991244528 | 0.987538941 | 0.989388265 | 4.525164114 | | cnn1d-8 | 0.98249453 | 0.983114447 | 0.981886321 | 0.9825 | 0.898093154 | | lstm-8 | 0.99187246 | 0.9931207 | 0.990642545 | 0.991880075 | 4.911534855 | | lstm2-8 | 0.99187246 | 0.995622264 | 0.988206083 | 0.991900312 | 8.551422319 | | cnn1d-16 | 0.989684276 | 0.991244528 | 0.988154613 | 0.989697159 | 0.985933104 | | lstm-16 | 0.994373242 | 0.998123827 | 0.990689013 | 0.994392523 | 8.0675211 | | lstm2-16 | 0.995623632 | 0.999374609 | 0.991930478 | 0.995638629 | 16.44170053 | | cnn1d-32 | 0.993122851 | 0.996247655 | 0.990055935 | 0.993142145 | 1.036886527 | | lstm-32 | 0.993748046 | 0.999374609 | 0.988249845 | 0.993781095 | 34.05501719 | | lstm2-32 | 0.99593623 | 0.999374609 | 0.992546584 | 0.995948894 | 60.39418568 |

Impact

This project is expected to help developers to detect and mitigate Low and Slow DDoS attacks using Machine Learning inside application layer.

CPU Usage

CPU Usage

Memory Usage

Memory Usage

Alive Connections

Alive Connections