CtrlK
CommunityDocumentationLog inGet started
Tessl Logo

tessl/npm-store

tessl install tessl/npm-store@2.0.0

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

Agent Success

Agent success rate when using this tile

75%

Improvement

Agent success rate improvement when using this tile compared to baseline

0.96x

Baseline

Agent success rate without this tile

78%

rubric.jsonevals/scenario-4/

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

Version

Workspace
tessl
Visibility
Public
Created
Last updated
Describes
npmpkg:npm/store@2.0.x
tile.json