{"library":"typesafe-storage","type":"library","category":null,"description":"A TypeScript-first wrapper around localStorage and sessionStorage that enforces type safety for stored values. Version 1.0.9 uses a `createStorage` function accepting a generic type map, so only defined keys and value types are allowed at compile time. Unlike raw Web Storage (which only stores strings), it automatically serializes/deserializes objects and arrays via JSON. The package has no runtime dependencies and ships its own TypeScript definitions. It follows semantic versioning and is released on demand. Key differentiators: full type inference for keys and values, no extra configuration beyond the generic parameter, and a simple API mirroring the standard Storage interface.","language":"javascript","status":"active","version":"1.0.9","tags":["javascript","typescript","typesafe","storage","store","webstorage","sessionstorage","localstorage"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install typesafe-storage","imports":["import { createStorage } from 'typesafe-storage'","import { createStorage } from 'typesafe-storage'","createStorage<MySchema>(localStorage)"]},{"cmd":"yarn add typesafe-storage","imports":[]},{"cmd":"pnpm add typesafe-storage","imports":[]}],"homepage":"https://github.com/kotarella1110/typesafe-storage#readme","github":"https://github.com/kotarella1110/typesafe-storage","docs":null,"changelog":null,"pypi":null,"npm":"typesafe-storage","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}