@fingerprintjs/botd

中文文档
2.0.0发布于 2025/11/04MITTypeScriptESM + CJS零依赖近 30 天下载 159.4万

botd is a browser library for JavaScript bot detection

原始使用文档
文档目录13 节
  1. BotD
  2. 🚧 Maintenance Status
  3. Quick start
  4. CDN
  5. NPM
  6. 🤖 Upgrade to Fingerprint Pro Bot Detection to detect sophis…
  7. Migrating from v0
  8. Migrating from v1
  9. Supported browsers
  10. Where to get support
  11. Contributing
  12. Other products by Fingerprint on GitHub!
  13. License

FingerprintJS logo

Current NPM version Discord server BotD documentation

BotD

BotD is an open source library that we created to make it easy for every developer to detect basic bots in their web apps.

It is available under a permissive MIT license and will always be free for developers and commercial use.

🚧 Maintenance Status

We keep the open-source BotD package healthy with timely critical fixes and regressions addressed as fast as possible. That said, the near-term roadmap is stability-only, so new features are unlikely to land soon. Please plan accordingly if you depend on upcoming enhancements.

For more demanding applications we created a professional API-based bot detection software that is called Fingerprint Pro Bot Detection.

⚡ View Our Demo

Quick start

CDN

<script>
    // Initialize an agent at application startup, once per page/app.
    const botdPromise = import('https://openfpcdn.io/botd/v2').then((Botd) => Botd.load())
    // Get detection results when you need them.
    botdPromise
        .then((botd) => botd.detect())
        .then((result) => console.log(result))
        .catch((error) => console.error(error))
</script>

Run this code

NPM

npm i @fingerprintjs/botd
# or
yarn add @fingerprintjs/botd
import { load } from '@fingerprintjs/botd'

// Initialize an agent at application startup, once per page/app.
const botdPromise = load()
// Get detection results when you need them.
botdPromise
    .then((botd) => botd.detect())
    .then((result) => console.log(result))
    .catch((error) => console.error(error))

Run this code

📕 Full documentation

🤖 Upgrade to Fingerprint Pro Bot Detection to detect sophisticated bots with confidence.

Fingerprint Pro Bot Detection is a professional bot detection service that processes all information server-side and transmits it securely to your servers using server-to-server APIs.

Fingerprint Pro Bot Detection provides both browser and server-side APIs that make the process of bot detection fast and secure. When using the Pro Bot Detection, use the browser JavaScript SDK to obtain the requestID value and then verify this value using our server API.

The Pro product combines vast amounts of auxiliary data that bots leak (cursor movements, network overrides, browser changes and more) to be able to reliably deduplicate real users from automated software, resulting in the detection of popular automation tools, their derivatives and plugins.

A big advantage of the Pro detection is that it's able to distinguish good bots from bad ones that allow you to block malicious traffic without blocking search engine crawlers, monitoring workers, etc.

Pro BotD screenshot

Full product comparison:

Open Source Pro

Core Features

100% open sourceyesno1
Search engine detection
works in all modern browsers - see our full list of browsers supported
–✓
Automation web services detection–✓
Automation browser extensions detection–✓

Detectable automation tools & frameworks

Headless Browsers (Chrome, Firefox)✓✓
seleniumHQ/selenium
umbrella project encapsulating a variety of tools and libraries enabling web browser automation
✓✓
microsoft/playwright
Node.js library to automate Chromium, Firefox and WebKit with a single API
✓✓
ariya/phantomjs
headless WebKit scriptable with JavaScript
✓✓
segmentio/nightmare
high-level browser automation library
✓✓
electron/electron
framework lets you write cross-platform desktop applications using JavaScript, HTML and CSS
✓✓
laurentj/slimerjs
scriptable browser
✓✓

Detectable stealth plugins

berstend/puppeteer-extra/packages/puppeteer-extra-plugin-stealth
plugin for puppeteer-extra to prevent detection.
-✓
microlinkhq/browserless
efficient driver for controlling headless browsers built on top of puppeteer developed for scenarios where performance matters
-✓
ultrafunkamsterdam/undetected-chromedriver
optimized Selenium Chromedriver patch which does not trigger anti-bot services
-✓
MeiK2333/pyppeteer_stealth
stealth plugin for pyppeteer
-✓

Additional Features

Server-side accuracy increase
based on additional server-side data, such as TLS crypto support, ipv4/v6 data and others
–✓
Query API
build flexible workflows
–✓

Operations

Data securityYour infrastructureEncrypted at rest
StorageYour infrastructureUnlimited up to 1 yr
RegionsYour infrastructureHosting in US, EU and Mumbai
ComplianceYour infrastructureGDPR, CCPA compliant2
SLANo SLA99.9% Uptime
SupportGitHub communitySupport team via email, chat, and call-back within 1 business day

1. Pro uses the open source BotD library as well as proprietary technology for increased accuracy and result stability.

2. Fingerprint Pro is GDPR and CCPA compliant as the data processor. You still need to be compliant as the data controller and use the bot detection for fraud prevention under legitimate interest or ask for user consent.

Pro result example:

{
    "bot": {
        "result": "bad"
        "type": "selenium"
    }
}

🍿 Live demo

📕 Fingerprint Pro documentation

Migrating from v0

Migrating from v1

Supported browsers

The library supports all popular browsers. See more details and learn how to run the library in old browsers in the browser support guide.

Where to get support

Thanks to our series B funding, we are happy to provide technical support for our open-source BotD library. We recommend using GitHub Issues to submit bugs or Discussions to ask questions. Using issues and discussions publicly will help the open-source community and other users with similar issues. However, if you require private support, please email us at [email protected].

Contributing

See the Contribution guidelines to learn how to contribute to the project or run the project locally. Please read it carefully before making a pull request.

Other products by Fingerprint on GitHub!

License

MIT

© 2025 FingerprintJS, Inc

版本与发布记录

@fingerprintjs/botd 共发布 24 个版本,首次发布于 2022/10/20;过去 12 个月发布了 0 个版本。

版本发布日期距今
2.0.0latest2025/11/041 年前
2.0.0-alpha.0alpha2025/08/211.2 年前
1.9.12024/03/302 年前
1.9.02024/01/012 年前
1.7.22023/11/252 年前
1.7.12023/11/123 年前

其他发布通道:beta → 1.0.0-beta.0,alpha → 2.0.0-alpha.0。

关于 @fingerprintjs/botd 的常见问题

@fingerprintjs/botd 是什么?

botd is a browser library for JavaScript bot detection

如何安装 @fingerprintjs/botd?

在项目目录运行 npm install @fingerprintjs/botd,或使用 pnpm add / yarn add / bun add。

@fingerprintjs/botd 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@fingerprintjs/botd 支持 ESM 还是 CommonJS?

同时提供 ES Module 与 CommonJS 入口,import 和 require() 都可以使用,打包工具会自动选择合适的版本。

@fingerprintjs/botd 可以商用吗?

@fingerprintjs/botd 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@fingerprintjs/botd 的下载量有多少?

根据 npm 官方下载统计,@fingerprintjs/botd 在 2026/10/15 – 2026/11/13 这 30 天内被下载 1,593,988 次,日均约 53,133 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@fingerprintjs/botd 还在维护吗?

最新版本 2.0.0 发布于 2025/11/04(1 年前);至今共发布 24 个版本,其中过去 12 个月发布了 0 个;首次发布于 2022/10/20。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。