CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-store

A localStorage wrapper for all browsers without using cookies or flash, providing persistent client-side storage with automatic fallback and plugin architecture

75

0.96x
Overview
Eval results
Files

rubric.jsonevals/scenario-3/

{
  "context": "This criteria evaluates the engineer's proficiency in creating custom store.js plugins, specifically focusing on proper use of the plugin architecture and the super_fn pattern for extending existing store methods.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Plugin structure",
      "description": "The plugin is implemented as a function that returns an object containing method implementations, following the store.js plugin architecture",
      "max_score": 15
    },
    {
      "name": "super_fn usage",
      "description": "The overridden set method correctly uses super_fn as its first parameter and calls super_fn(key, value) to execute the original set behavior",
      "max_score": 25
    },
    {
      "name": "Version storage",
      "description": "The plugin stores version history using appropriate storage keys (e.g., using a special prefix or structure) and preserves previous values when set is called",
      "max_score": 20
    },
    {
      "name": "getVersion implementation",
      "description": "Implements getVersion method that retrieves historical versions by index, correctly accessing the stored version history",
      "max_score": 20
    },
    {
      "name": "listVersions implementation",
      "description": "Implements listVersions method that returns an array of all versions with metadata (value and timestamp)",
      "max_score": 15
    },
    {
      "name": "Plugin integration",
      "description": "The plugin can be successfully integrated with a store instance using addPlugin or during store creation with createStore",
      "max_score": 5
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-store

tile.json