All Projects → tauri-apps → tauri-plugin-store

tauri-apps / tauri-plugin-store

Licence: Apache-2.0, MIT licenses found Licenses found Apache-2.0 LICENSE_APACHE-2.0 MIT LICENSE_MIT
Simple and persistent, unencrypted key-value store for your Tauri app.

Programming Languages

rust
11053 projects
javascript
184084 projects - #8 most used programming language
typescript
32286 projects

Projects that are alternatives of or similar to tauri-plugin-store

Electron Store
Simple data persistence for your Electron app or module - Save and load user preferences, app state, cache, etc
Stars: ✭ 3,316 (+2595.93%)
Mutual labels:  preferences, data-persistence
Settings View
🔧 Edit Atom settings
Stars: ✭ 226 (+83.74%)
Mutual labels:  preferences
Androidmaterialpreferences
Provides various "Material Design"-styled preferences
Stars: ✭ 54 (-56.1%)
Mutual labels:  preferences
Bulldog
Android library to simplify reading and writing to SharedPreferences, never write code like this anymore prefs.edit().putString("someKey","someString").apply()
Stars: ✭ 133 (+8.13%)
Mutual labels:  preferences
Xui
A drop-in replacement for iOS Settings Bundle "Settings.bundle".
Stars: ✭ 60 (-51.22%)
Mutual labels:  preferences
Preferenceholder
SharedPreference usage made fun in Kotlin
Stars: ✭ 148 (+20.33%)
Mutual labels:  preferences
Sheldon
Type-safe reactive preferences for Android
Stars: ✭ 34 (-72.36%)
Mutual labels:  preferences
iOSUtilitiesSource
IOS Utilities Library for Swift
Stars: ✭ 46 (-62.6%)
Mutual labels:  preferences
Mac
macOS Mojave v. 10.14 setup for developers.
Stars: ✭ 209 (+69.92%)
Mutual labels:  preferences
Ccnpreferenceswindowcontroller
CCNPreferencesWindowController is an Objective-C subclass of NSWindowController that automatically manages your custom view controllers for handling app preferences.
Stars: ✭ 105 (-14.63%)
Mutual labels:  preferences
Mac Bootstrap
💻 Provision a new Mac for web development with dotfiles + Fish/Zsh, Neovim, and Tmux
Stars: ✭ 96 (-21.95%)
Mutual labels:  preferences
Androidpreferenceactivity
Provides an alternative implementation of Android's PreferenceActivity
Stars: ✭ 63 (-48.78%)
Mutual labels:  preferences
Macos Fn Toggle
A macOS app to quickly toggle the behavior of the fn key.
Stars: ✭ 178 (+44.72%)
Mutual labels:  preferences
Mac config
Scripted installation and configuration of Mac OS X apps and preferences
Stars: ✭ 55 (-55.28%)
Mutual labels:  preferences
Prefser
Wrapper for Android SharedPreferences with object serialization and RxJava Observables
Stars: ✭ 228 (+85.37%)
Mutual labels:  preferences
Material Prefs
⚙ A beautiful and extensible API for bulding preferences screen
Stars: ✭ 51 (-58.54%)
Mutual labels:  preferences
Night Shift On Unsupported Macs
Enable Night Shift on older Unsupported Macs
Stars: ✭ 86 (-30.08%)
Mutual labels:  preferences
Api Generator
Api Generator是一款可以自动解析Controller类抽取REST接口信息并自动上传YApi的IDEA插件。YApi好伴侣,从此维护文档再也不是事儿了!
Stars: ✭ 139 (+13.01%)
Mutual labels:  preferences
tauri-plugin-authenticator
An official Tauri plugin for using a yubikey in your Tauri App
Stars: ✭ 42 (-65.85%)
Mutual labels:  tauri-plugin
setup
My setup... dotfiles, aliases, functions, preferences, apps. Everything.
Stars: ✭ 110 (-10.57%)
Mutual labels:  preferences

Tauri Plugin Store

devto Test

This plugin provides an interface for storing unencrypted values on the application configuration files folder.

Installation

There are three general methods of installation that we can recommend.

  1. Pull sources directly from Github using git tags / revision hashes (most secure, good for developement, shown below)
  2. Git submodule install this repo in your tauri project and then use file protocol to ingest the source
  3. Use crates.io and npm (easiest, and requires you to trust that our publishing pipeline worked)

For more details and usage see the example app. Please note, below in the dependencies you can also lock to a revision/tag in both the Cargo.toml and package.json

RUST

src-tauri/Cargo.toml

[dependencies.tauri-plugin-store]
git = "https://github.com/tauri-apps/tauri-plugin-store"
tag = "v0.1.0"
#branch = "main"

Use in src-tauri/src/main.rs:

use tauri_plugin_store::PluginBuilder;

fn main() {
    tauri::Builder::default()
        .plugin(PluginBuilder::default().build())
        .build()
        .run();
}

WEBVIEW

Install from a tagged release

npm install github:tauri-apps/tauri-plugin-store#v0.1.0
# or
yarn add github:tauri-apps/tauri-plugin-store#v0.1.0

Install from a commit

npm install github:tauri-apps/tauri-plugin-store#488558717b77d8a2bcb37acfd2eca9658aeadc8e
# or
yarn add github:tauri-apps/tauri-plugin-store#488558717b77d8a2bcb37acfd2eca9658aeadc8e

Install from a branch (dev)

npm install https://github.com/tauri-apps/tauri-plugin-store\#dev
# or
yarn add https://github.com/tauri-apps/tauri-plugin-store\#dev

package.json

  "dependencies": {
    "tauri-plugin-store-api": "github:tauri-apps/tauri-plugin-store#v0.1.0",

Use within your JS/TS:

import { Store } from 'tauri-plugin-store-api';
const store = new Store('.settings.dat');
await store.set('some-key', { value: 5 });
const val = await store.get('some-key');
assert(val, { value: 5 });

License

MIT / Apache-2.0

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].