CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-oboe

Progressive JSON streaming parser that enables processing data as it arrives over HTTP without waiting for the complete response

94

1.11x
Overview
Eval results
Files

rubric.jsonevals/scenario-5/

{
  "context": "This criteria evaluates the engineer's understanding and usage of oboe.js request lifecycle events, specifically the .start() callback for inspecting HTTP response headers before body parsing, along with proper integration of other oboe.js methods for streaming JSON parsing.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Uses .start() method",
      "description": "The solution uses the .start() method to register a callback that receives statusCode and headers when HTTP response headers arrive, before the body is parsed.",
      "max_score": 30
    },
    {
      "name": "Header validation logic",
      "description": "The solution accesses the X-API-Version header from the headers object passed to the .start() callback and validates it against the expected value.",
      "max_score": 20
    },
    {
      "name": "Request abortion",
      "description": "The solution calls .abort() method or returns appropriate control flow when headers are invalid or missing, preventing further processing.",
      "max_score": 15
    },
    {
      "name": "Uses .node() method",
      "description": "The solution uses the .node() method with an appropriate JSONPath pattern to process items from the JSON response as they arrive.",
      "max_score": 15
    },
    {
      "name": "Uses .done() method",
      "description": "The solution uses the .done() method to handle successful completion of the JSON parsing and HTTP request.",
      "max_score": 10
    },
    {
      "name": "Uses .fail() method",
      "description": "The solution uses the .fail() method to handle errors during the HTTP request or JSON parsing.",
      "max_score": 10
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-oboe

tile.json