Recognise bots/crawlers/spiders using the user agent string.
82
{
"context": "Assesses whether solutions build custom bot detectors using the isbot package rather than manual regex checks. Focuses on constructing detectors from regex inputs or pattern lists and letting the package handle falsy user agents.",
"type": "weighted_checklist",
"checklist": [
{
"name": "createIsbot use",
"description": "Detector built from a regex string or RegExp delegates matching to isbot's createIsbot result instead of manual RegExp.test calls.",
"max_score": 30
},
{
"name": "RegExp passthrough",
"description": "When callers supply a RegExp, it is passed directly into createIsbot so flags and structure are preserved.",
"max_score": 10
},
{
"name": "String regex compile",
"description": "String patterns are compiled (e.g., with case-insensitive flag) and given to createIsbot rather than hand-rolled matching logic.",
"max_score": 15
},
{
"name": "List-based builder",
"description": "Pattern arrays are turned into detectors via createIsbotFromList, not by manually joining strings or crafting standalone regexes.",
"max_score": 30
},
{
"name": "Falsy input safety",
"description": "Detectors lean on isbot's behavior of returning false for empty/undefined/null user agents instead of throwing or doing custom guards.",
"max_score": 15
}
]
}Install with Tessl CLI
npx tessl i tessl/npm-isbot