~/foss-indexA small, growing directory
← All tools

Privacy & access

WebDecoy Node SDK

Local-first bot detection for Node.js apps - tripwires, honeytokens and rate limits that run in your process with no account, no API key and no outbound calls.

MIT

A short, permissive license: use, copy, change and share it for any purpose, including commercial work, as long as the copyright and license notices stay attached.

Read the full license ↗

Plain-language summary, not legal advice.

Source code ↗Support this project ↓
Release notes / v0.35.0

Released 2026-12-01. Snapshot from the included release data, not a live check.

Bot registry regenerated: 440 agents, up from 403. New entries include Devin, Linkup-User, BLEXBot, SeekportBot, Marginalia, ZoominfoBot, CriteoBot, Taboolabot and the Algolia, Coveo and AddSearch site-search crawlers.

Read the full release notes on GitHub ↗

Available on these platforms

Middleware that runs as a library inside the app it protects: local rules need no account, API key or outbound calls. Adapters cover Express, Fastify, Next.js and Hono.

Compatibility details and official sources
  • Linux - Node.js 20+ npm package (@webdecoy/node) with framework adapters
  • Windows - Node.js 20+ npm package (@webdecoy/node) with framework adapters
  • macOS - Node.js 20+ npm package (@webdecoy/node) with framework adapters

Official availability checked 2026-11-29. Availability is not feature parity. The recorded release and license refer to the linked source project; separate clients can differ. No install or compatibility test was run.

Before you install

Bot tripwires that never leave your app.

What does it run on?
Inside your Node.js or edge app as middleware (Express, Fastify, Next.js, Hono) or fetch/node:http wrappers. No separate service to run.
Where is my data?
Nowhere, for local rules: no account, no API key, no outbound calls. Passing an API key explicitly opts into the vendor's hosted dashboard; nothing requires it.
What will I maintain?
An npm dependency and your rule list. MIT and actively developed but young and pre-1.0 (v0.34.0), so pin a version. Monitor mode lets you review verdicts before enforcing.

Advice and funding routes source-checked November 29, 2026. Researched, not an install or restore test. Installation source ↗ · Report a correction

JSON response from a local WebDecoy demo app showing a DENY decision with tripwire true on a controlled decoy route
Our own screenshot of WebDecoy Node SDK v0.34.0. Our capture of the project's own Express example running locally: the controlled decoy route's JSON response, a DENY tripwire verdict, while ordinary routes return ALLOW - with no account, API key or outbound call involved. The tool icon is the project's own mark. Image credits.

WebDecoy’s Node SDK puts bot detection inside your own Node.js or edge app. Instead of shipping requests to a third-party scoring API, it runs local rules in your process: tripwires on scanner-bait paths, invisible honeytoken links that real visitors never follow, and rate limiting. The default monitor mode records verdicts without blocking anything, so you can watch what would have been caught before you enforce a single deny.

Local rules need no account, no API key and make no outbound calls - the SDK and its adapters do not even read WEBDECOY_API_KEY from the environment unless you pass one explicitly. Verdicts arrive as a structured decision (ALLOW, DENY, THROTTLE and friends) with the matched rule attached, so your app keeps the final say. Middleware ships for Express, Fastify, Next.js and Hono, with the same rule set, plus wrappers for fetch and node:http.

Local first, hosted optional. Passing an API key opts into reporting to WebDecoy’s hosted dashboard (the vendor’s commercial platform); every local rule keeps working without it. The project is young and pre-1.0 (v0.34.0), so pin a version and expect the API to move. We ran the repository’s own Express example locally and watched an ordinary route return ALLOW while its controlled decoy route returned a DENY tripwire verdict, exactly as documented.

Quick start

Checked against the project’s README on November 29, 2026. The core tripwire flow was run by us locally using the repository’s own Express example; the framework adapters were read, not run.

Jump to: Any Node app · Express, Fastify, Next.js or Hono

Any Node app

  1. Install the core package: npm install @webdecoy/node
  2. Create a detector with a tripwire rule - new WebDecoy({ rules: [tripwire({ paths: ['/.env', '/wp-config.php'] })] }) - and drop a honeytoken() decoy link into your HTML. Built-in scanner-bait paths (/.git/config, /wp-config.php and more) are included by default.
  3. Inspect the verdict where you handle requests and start in monitor (dry-run) mode; flip action: 'DENY' only after reviewing what the tripwires catch.
Ask your AI to help with setup · Any Node app

Any Node app · Local-first bot detection middleware for a Node.js app: tripwires, honeytokens and rate limits with no account or API key. Paste into your AI assistant. It may only be able to guide you. Review changes before running anything.

Researched from the project's documentation. Checked 2026-11-29. No AI account or connection is needed here.

Read or copy the prompt manually

Express, Fastify, Next.js or Hono

Mount the adapter’s middleware - npm install @webdecoy/express @webdecoy/node, then app.use(webdecoy({ rules: [...] })) for Express - and read req.webdecoyDecision downstream. The Fastify, Next.js and Hono adapters take the same rules. The repository’s examples/express-basic app is a two-minute local demo: an ordinary route passes while /demo-decoy returns a 404 with a DENY tripwire verdict. Full API documentation lives at docs.webdecoy.com.

Why it’s listed

Bot defense usually means sending your traffic to someone else’s cloud. This SDK makes the first line of defense a library call with no data leaving your app, monitor-first rollout, and an explicit, opt-in path to the vendor’s hosted dashboard rather than a quiet dependency on it. The local-first core does the useful part for free.

Documentation

Tags: Security, Local-first, Node.js

Want help setting this up? Ask FOSSadmin ↗

Find FOSS Index useful? Help keep it growing. Your contribution supports maintaining this directory.