Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@themineway/smart-storage-react

TheMineWay492MIT1.0.0-alpha.13TypeScript support: included

A React (TS) library that provides a smart and easy way to store data

smart-storage, storage, web, react

readme

Smart Storage

JS Publish to npm Documentation

Smart Storage is a TypeScript/JavaScript utility library for validated web storage. It provides a robust and easy-to-use API for managing data in localStorage, sessionStorage, and in-memory storage with schema validation. Additionally, a React-specific implementation is available for seamless integration with React applications.


🍟 Features

  • Schema Validation: Supports validation using libraries like zod and yup.
  • Multiple Storage Options: Works with localStorage, sessionStorage, and in-memory storage.
  • Type Safety: Fully typed API for TypeScript users.
  • React Integration: A React-specific library for hooks and context-based storage management.
  • Extensibility: Easily extendable for custom storage connectors.

📦 Installation

Core Library

Install the core library for vanilla JavaScript/TypeScript usage:

npm install @themineway/smart-storage-js