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

@bottoll/express

v1.1.1

Published

Bottoll WAF middleware for Express

Readme

@bottoll/express

Official Bottoll WAF middleware for Express.

Bottoll protects Express applications against AI crawlers, AI agents, scrapers and automated bot traffic before requests reach your application.

Express Only

This package is designed for Express-based applications.

Supported environments:

  • Express.js
  • NestJS (Express adapter)
  • Express-compatible middleware stacks

Prerequisites

A Bottoll account is required.

Create an account and generate an API key from:

https://app.bottoll.com

If no valid API key is configured, Bottoll filtering is automatically disabled and requests continue normally.

Installation

npm install @bottoll/express

Configuration

Register the Bottoll middleware before your application routes.

import express from "express";
import { bottoll } from "@bottoll/express";

const app = express();

app.use(
    bottoll({
        apiKey: process.env.BOTTOLL_API_KEY,
    })
);

app.listen(3000);

Add your API key to your environment variables:

BOTTOLL_API_KEY=your_api_key

Start your application.

How It Works

For every incoming request:

  1. The Bottoll middleware intercepts the request.
  2. Request metadata is securely sent to Bottoll.
  3. Bottoll analyzes the request using its WAF engine.
  4. Bottoll returns an allow or block decision.
  5. Allowed requests continue normally.
  6. Blocked requests receive a 403 Forbidden response.

Request Data

Bottoll processes only the metadata required for request evaluation and bot detection.

This may include:

  • IP address
  • User-Agent
  • Request path
  • Request method
  • Standard HTTP headers

The following sensitive headers are automatically excluded before transmission:

  • Authorization
  • Cookie
  • Set-Cookie
  • Proxy-Authorization
  • X-CSRF-Token
  • X-XSRF-Token

Complete Example

import express from "express";
import { bottoll } from "@bottoll/express";

const app = express();

app.use(
    bottoll({
        apiKey: process.env.BOTTOLL_API_KEY,
    })
);

app.get("/", (req, res) => {
    res.send("Hello World");
});

app.listen(3000);

Fail-Open Behavior

If Bottoll is temporarily unavailable or an unexpected error occurs, requests are allowed to continue.

This prevents Bottoll from causing downtime for your application.

Response Codes

200

The request is allowed.

403

The request is blocked by Bottoll.

Requirements

  • Node.js 18 or later
  • Express 4+

Documentation

https://bottoll.com/docs

Dashboard

https://app.bottoll.com

Website

https://bottoll.com

License

MIT