For encoding to/from base64urls implementing RFC 4648 base64url standard
89
{
"context": "Evaluates whether the solution leans on the base64url package to encode and decode payloads with optional encoding support, maintains URL-safe output, and uses the library's built-in validation rather than reimplementing Base64 handling.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Encode API",
"description": "Uses the base64url default export or base64url.encode to transform string or Buffer inputs into padding-free URL-safe strings instead of manual Base64 manipulation.",
"max_score": 30
},
{
"name": "Optional encoding",
"description": "Passes a non-default encoding (e.g., \"binary\") through the base64url.encode/default export call to interpret string inputs correctly, rather than crafting Buffers manually.",
"max_score": 20
},
{
"name": "Decode API",
"description": "Restores text using base64url.decode with the requested encoding (including \"binary\" when specified) instead of custom Buffer/base64 logic.",
"max_score": 20
},
{
"name": "Input validation",
"description": "Relies on base64url's TypeError for non-string/Buffer inputs (or equivalent pre-checks mirroring the library's accepted types) rather than accepting arbitrary types silently.",
"max_score": 15
},
{
"name": "URL-safe output",
"description": "Ensures produced strings remain URL-safe (no '=' padding, '+'/'/' replacements) by using base64url helpers such as encode/default export or fromBase64/toBase64.",
"max_score": 15
}
]
}Install with Tessl CLI
npx tessl i tessl/npm-base64url