For complete installation options (manual Cargo.toml setup, all package managers, and capability details), see the Installation page.
Install the plugin
The fastest way to add both the Rust crate and the npm package in one command is through the Tauri CLI:This adds
tauri-plugin-configurate to src-tauri/Cargo.toml and installs tauri-plugin-configurate-api as an npm dependency.See Installation if you prefer to set up each package manually.Register the Rust plugin
Open
src-tauri/src/lib.rs and call tauri_plugin_configurate::init() in your Tauri builder:src-tauri/src/lib.rs
Grant permissions
Add the default permission set to your capability file. This enables all standard operations (create, load, save, patch, delete, and more):
src-tauri/capabilities/default.json
Define your schema
In your frontend code, import Each
defineConfig, keyring, and optional to describe your config shape. TypeScript infers all value types from the schema automatically.src/lib/config.ts
keyring() field requires a unique id string within the schema. defineConfig() validates this at runtime and throws if any IDs are duplicated.Create a Configurate instance and run a create/load cycle
Instantiate The config file is written to
Configurate with your schema, a file name, a base directory, and a provider. Then create the config and load it back.src/lib/config.ts
{AppConfig}/app.json. Adjust baseDir, options.dirName, and options.currentPath in the Configurate constructor to control the exact path — see Path resolution for details.Complete working example
The snippet below is a self-contained module you can drop into any Tauri v2 project after completing the steps above.src/lib/config.ts
Next steps
Core concepts: Schema
Learn about
defineConfig, keyring, optional, and array schemasCore concepts: Providers
Choose and configure the right storage backend for your app
CRUD operations
Explore create, load, save, patch, delete, exists, and reset
Batch operations
Load, save, or patch multiple configs in a single IPC call