Docs

plugin-store

Persistent key-value storage.

What is plugin-store

A simple persisted key-value store for settings and small bits of app state.

Install

js
bash
npm install @tauri-apps/plugin-store

Usage

ts
ts
import { Store } from '@tauri-apps/plugin-store';
const store = await Store.load('settings.json');
await store.set('theme', 'dark');
await store.save();

Docs

Official documentation: plugin-store.