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-2/

{
  "context": "This criteria evaluates how effectively the engineer uses the store.js library to implement a session storage manager. The focus is entirely on correct usage of store.js API methods (get, set, clearAll) and understanding of the library's automatic serialization features.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Uses store.get()",
      "description": "The getData() function uses store.get() to retrieve values from storage. Should accept a key parameter and return the stored value.",
      "max_score": 20
    },
    {
      "name": "Uses store.set()",
      "description": "The setData() function uses store.set() to store values. Should accept key and value parameters and properly store them in the storage.",
      "max_score": 20
    },
    {
      "name": "Uses store.clearAll()",
      "description": "The resetAll() function uses store.clearAll() to remove all stored data. This is the primary capability being tested.",
      "max_score": 30
    },
    {
      "name": "Initialization logic",
      "description": "The initialize() function properly sets multiple default values using store.set() for each key-value pair in the defaults object, checking if they don't already exist.",
      "max_score": 20
    },
    {
      "name": "Automatic serialization",
      "description": "The implementation relies on store.js's automatic JSON serialization for complex data types (objects, arrays) without manually calling JSON.stringify() or JSON.parse().",
      "max_score": 10
    }
  ]
}

Version

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