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

{
  "context": "This criteria evaluates how effectively the engineer uses the store.js library's get() method with default values to implement a preferences manager. The focus is specifically on proper usage of store.js API for retrieving values with fallback defaults.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Uses store.get()",
      "description": "Each function uses store.get() or store().get() method to retrieve values from storage",
      "max_score": 40
    },
    {
      "name": "Provides default values",
      "description": "Each store.get() call includes the correct default value as the second parameter (\"light\" for theme, \"en\" for language, true for notifications, { columns: 2, widgets: [] } for dashboardLayout)",
      "max_score": 40
    },
    {
      "name": "Correct storage keys",
      "description": "Uses the exact storage keys specified in requirements (\"theme\", \"language\", \"notifications\", \"dashboardLayout\")",
      "max_score": 20
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-store

tile.json