Ctrl + K
DocumentationLog inGet started

tessl/npm-isbot

tessl install tessl/npm-isbot@5.1.0

Recognise bots/crawlers/spiders using the user agent string.

Agent Success

Agent success rate when using this tile

82%

Improvement

Agent success rate improvement when using this tile compared to baseline

0.94x

Baseline

Agent success rate without this tile

87%

rubric.jsonevals/scenario-1/

{
  "context": "Evaluates how the solution uses the isbot package to classify user agents, especially switching between the full detection and the built-in naive heuristic fallback while honoring the spec's options and safety requirements.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Primary detection",
      "description": "Uses isbot for advanced-supported paths so botRatio and classification rely on the package's comprehensive pattern set rather than custom logic.",
      "max_score": 25
    },
    {
      "name": "Naive fallback",
      "description": "When advanced detection is disabled or pattern compilation is unsuitable, routes detection through isbotNaive to classify bots (including Lighthouse/headless/curl cases) instead of duplicating regexes.",
      "max_score": 35
    },
    {
      "name": "Fallback trigger",
      "description": "Respects the supportsAdvancedDetection option (or detected lookbehind support) to choose between isbot and isbotNaive without silently ignoring the option.",
      "max_score": 15
    },
    {
      "name": "No custom regex",
      "description": "Avoids handcrafted bot regexes; detection calls rely on isbot/isbotNaive outputs rather than independent pattern matching.",
      "max_score": 10
    },
    {
      "name": "Nullish safety",
      "description": "Feeds null/undefined/empty user agents through isbot or isbotNaive (which return false) or otherwise leverages their null-safe behavior without throwing or misclassifying them as bots.",
      "max_score": 15
    }
  ]
}

Version

Workspace
tessl
Visibility
Public
Created
Last updated
Describes
npmpkg:npm/isbot@5.1.x
tile.json