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

{
  "context": "This criteria evaluates how well the engineer uses store.js's automatic storage fallback selection feature. The focus is on proper use of createStore() with multiple storage backends, checking storage availability, and leveraging the library's built-in fallback mechanisms.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Uses createStore",
      "description": "Uses the store.createStore() function to create a custom store instance rather than using the default store",
      "max_score": 20
    },
    {
      "name": "Configures storage array",
      "description": "Passes an array of storage backends to createStore() that includes at least localStorage, sessionStorage, and memoryStorage in priority order",
      "max_score": 25
    },
    {
      "name": "Checks enabled flag",
      "description": "Uses the store.enabled property to determine whether persistent storage is available",
      "max_score": 20
    },
    {
      "name": "Uses get method",
      "description": "Uses store.get() method to retrieve values from storage, optionally with default values",
      "max_score": 15
    },
    {
      "name": "Uses set method",
      "description": "Uses store.set() method to store values in the selected storage backend",
      "max_score": 15
    },
    {
      "name": "Includes cookieStorage",
      "description": "Includes cookieStorage in the storage backends array as an additional fallback option for environments like Safari private mode",
      "max_score": 5
    }
  ]
}

Version

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