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

{
  "context": "This criteria evaluates how well the engineer uses store.js's serialization and deserialization features to handle edge cases when reading and writing data from localStorage. The focus is on leveraging store.js's automatic JSON parsing capabilities and error handling for malformed data.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Uses store.get",
      "description": "Uses store.get() method to retrieve values from localStorage instead of directly accessing localStorage API",
      "max_score": 20
    },
    {
      "name": "Uses store.set",
      "description": "Uses store.set() method to store values in localStorage instead of directly accessing localStorage API",
      "max_score": 20
    },
    {
      "name": "Uses store.remove",
      "description": "Uses store.remove() method to delete values from localStorage instead of directly accessing localStorage API",
      "max_score": 15
    },
    {
      "name": "Leverages automatic deserialization",
      "description": "Relies on store.js's automatic JSON.parse() functionality to deserialize stored values, handling both JSON-stringified and raw string values without manual parsing",
      "max_score": 25
    },
    {
      "name": "Default value handling",
      "description": "Uses store.get()'s second parameter (optionalDefaultValue) to provide default values when keys don't exist",
      "max_score": 10
    },
    {
      "name": "Leverages automatic serialization",
      "description": "Relies on store.js's automatic JSON.stringify() functionality to serialize values when storing, without manual stringification",
      "max_score": 10
    }
  ]
}

Version

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