CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-base64url

For encoding to/from base64urls implementing RFC 4648 base64url standard

89

1.28x
Overview
Eval results
Files

rubric.jsonevals/scenario-4/

{
  "context": "Evaluates how well the solution leverages the base64url package to decode URL-safe and standard base64 tokens into Buffers and to combine them without reimplementing codec logic. Scoring favors direct use of the package's decoding and normalization helpers rather than manual string manipulation. Error handling should rely on package-level validation for malformed input.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "URL decode Buffer",
      "description": "Decodes base64url tokens using base64url.toBuffer (or the equivalent default export with Buffer output) to produce Buffers for URL-safe inputs without reimplementing decoding.",
      "max_score": 35
    },
    {
      "name": "Standard normalization",
      "description": "Converts standard base64 strings via base64url.fromBase64 before decoding so that +, /, and padding are normalized prior to creating Buffers.",
      "max_score": 25
    },
    {
      "name": "Invalid token rejection",
      "description": "Relies on base64url decoding to surface errors for malformed or non-base64url characters (e.g., letting toBuffer/fromBase64 throw) instead of custom regex or silent fallback.",
      "max_score": 20
    },
    {
      "name": "Concatenation pipeline",
      "description": "Builds merged Buffers from outputs of base64url decoding steps (handling both base64url and normalized base64 inputs) without bypassing the package for any segment.",
      "max_score": 20
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-base64url

tile.json