Installation
Prerequisites
Section titled “Prerequisites”Before installing Standard Store, ensure you have the following:
- Node.js (version 16 or higher)
npm i @standard-store/storepnpm add @standard-store/storeyarn add @standard-store/storeWith React
Section titled “With React”For React projects, install the React integration package:
npm i @standard-store/store @standard-store/reactpnpm add @standard-store/store @standard-store/reactyarn add @standard-store/store @standard-store/reactWith Storage Adapters
Section titled “With Storage Adapters”To use built-in adapters (localStorage, cookies, URL state, etc.):
npm i @standard-store/store @standard-store/adapterspnpm add @standard-store/store @standard-store/adaptersyarn add @standard-store/store @standard-store/adaptersAll available adapters are included in the @standard-store/adapters package:
- localStorage
- sessionStorage
- Cookie
- In-Memory
- Next.js nuqs
- React Router
See Also
Section titled “See Also”- Quick Start - Get started with Standard Store