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/vercel

v1.1.0

Published

Bottoll WAF middleware for Vercel

Downloads

640

Readme

@bottoll/vercel

Official Bottoll WAF middleware for Vercel.

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

Vercel Only

This package is designed exclusively for Vercel deployments.

Supported environments:

  • Next.js deployed on Vercel
  • Vercel Edge Middleware

Other hosting providers are not currently supported.

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/vercel

Configuration

Create a middleware.js or middleware.ts file at the root of your project.

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

export default bottoll({
  apiKey: process.env.BOTTOLL_API_KEY
});

export const config = {
  matcher: "/:path*"
};

Add your API key to your environment variables:

BOTTOLL_API_KEY=your_api_key

Deploy your application to Vercel.

How It Works

For every incoming request:

  1. The Vercel middleware intercepts the request.
  2. Request metadata is 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

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

  • Vercel
  • Node.js 18 or later

Documentation

https://bottoll.com/docs

Website

https://bottoll.com

License

MIT