CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-isbot

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

82

0.94x
Overview
Eval results
Files

rubric.jsonevals/scenario-4/

{
  "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
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-isbot

tile.json