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

{
  "context": "This criteria evaluates how well the engineer uses the store.js package to handle cross-browser compatibility and automatic storage fallback mechanisms. The focus is on leveraging store.js's built-in capabilities for detecting storage availability and selecting appropriate storage backends.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Store engine import",
      "description": "Imports store-engine from 'store/src/store-engine' to create a custom store instance",
      "max_score": 10
    },
    {
      "name": "Storage backend imports",
      "description": "Imports individual storage backends from 'store/storages/' (localStorage, sessionStorage, memoryStorage)",
      "max_score": 15
    },
    {
      "name": "Custom store creation",
      "description": "Uses engine.createStore() with an array of storage backends to configure automatic fallback behavior",
      "max_score": 25
    },
    {
      "name": "Correct storage order",
      "description": "Passes storage backends in the correct priority order: localStorage first, sessionStorage second, memoryStorage as fallback",
      "max_score": 15
    },
    {
      "name": "Storage availability check",
      "description": "Uses the store.enabled property to determine if persistent storage is available (false when using memoryStorage fallback)",
      "max_score": 20
    },
    {
      "name": "Store operations",
      "description": "Uses store.set() and store.get() methods correctly for storing and retrieving values",
      "max_score": 15
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-store

tile.json