{"id":15266389,"url":"https://github.com/ferreira-tb/tauri-store","last_synced_at":"2026-02-06T15:09:22.940Z","repository":{"id":246853917,"uuid":"824352186","full_name":"ferreira-tb/tauri-store","owner":"ferreira-tb","description":"Persistent stores for Tauri","archived":false,"fork":false,"pushed_at":"2025-03-28T23:49:16.000Z","size":2314,"stargazers_count":46,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-31T05:02:23.509Z","etag":null,"topics":["nuxt","pinia","react","svelte","tauri","vue"],"latest_commit_sha":null,"homepage":"https://tb.dev.br/tauri-store/","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ferreira-tb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["ferreira-tb"]}},"created_at":"2024-07-05T00:17:44.000Z","updated_at":"2025-03-31T01:17:21.000Z","dependencies_parsed_at":"2024-10-29T00:25:38.166Z","dependency_job_id":"387bb6b9-f41c-4bf1-b362-a65105824c81","html_url":"https://github.com/ferreira-tb/tauri-store","commit_stats":{"total_commits":63,"total_committers":2,"mean_commits":31.5,"dds":"0.015873015873015928","last_synced_commit":"1811e9ececa8ce920c20453768806088ce59e007"},"previous_names":["ferreira-tb/tauri-plugin-pinia","ferreira-tb/tauri-store"],"tags_count":65,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ferreira-tb%2Ftauri-store","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ferreira-tb%2Ftauri-store/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ferreira-tb%2Ftauri-store/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ferreira-tb%2Ftauri-store/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ferreira-tb","download_url":"https://codeload.github.com/ferreira-tb/tauri-store/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247601447,"owners_count":20964864,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["nuxt","pinia","react","svelte","tauri","vue"],"created_at":"2024-09-30T05:04:44.420Z","updated_at":"2026-02-06T15:09:22.935Z","avatar_url":"https://github.com/ferreira-tb.png","language":"Rust","funding_links":["https://github.com/sponsors/ferreira-tb"],"categories":[],"sub_categories":[],"readme":"# tauri-store\n\nPersistent stores for Tauri.\n\n\u003e [!NOTE]\n\u003e This is not an official Tauri plugin.\n\n## Features\n\n- Save your stores to disk.\n- Synchronize across multiple windows.\n- Debounce or throttle store updates.\n- Access the stores from both JavaScript and Rust.\n\n## Usage\n\n\u003e [!TIP]\n\u003e There are also [custom plugins](#plugins) that tightly integrate with your favorite framework or library.\n\n```typescript\nimport { Store } from 'tauri-store';\n\nconst store = new Store('my-store', { counter: 0 });\n\n// Get a value. This is a synchronous operation!\nconst counter = store.get('counter');\nconsole.log(counter);\n\n// Set a value.\nstore.set('counter', 42);\n\n// Update a value with a callback.\nstore.update('counter', (value) =\u003e value + 1);\n\n// Set multiple values at once.\nstore.patch({ counter: 0 });\n\n// Listen to changes.\nstore.subscribe((state) =\u003e {\n  console.log(state);\n});\n\n// Save the store. Unlike the others, this is asynchronous.\nawait store.save();\n```\n\n## Documentation\n\nCheck the [documentation](https://tb.dev.br/tauri-store/) for more information on how to install and use the plugins.\n\n## Plugins\n\nCurrently, the following plugins are available:\n\n| Name                                                                                       | Version                                                                                                                 | Works with |\n| ------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------- | ---------- |\n| [tauri-store](https://tb.dev.br/tauri-store/guide/getting-started)                         | [![npm](https://img.shields.io/npm/v/tauri-store.svg)](https://www.npmjs.com/package/tauri-store)                       | Everything |\n| [@tauri-store/pinia](https://tb.dev.br/tauri-store/plugin-pinia/guide/getting-started)     | [![npm](https://img.shields.io/npm/v/%40tauri-store%2Fpinia.svg)](https://www.npmjs.com/package/@tauri-store/pinia)     | Vue, Nuxt  |\n| [@tauri-store/svelte](https://tb.dev.br/tauri-store/plugin-svelte/guide/getting-started)   | [![npm](https://img.shields.io/npm/v/%40tauri-store%2Fsvelte.svg)](https://www.npmjs.com/package/@tauri-store/svelte)   | Svelte     |\n| [@tauri-store/valtio](https://tb.dev.br/tauri-store/plugin-valtio/guide/getting-started)   | [![npm](https://img.shields.io/npm/v/%40tauri-store%2Fvaltio.svg)](https://www.npmjs.com/package/@tauri-store/valtio)   | React      |\n| [@tauri-store/vue](https://tb.dev.br/tauri-store/plugin-vue/guide/getting-started)         | [![npm](https://img.shields.io/npm/v/%40tauri-store%2Fvue.svg)](https://www.npmjs.com/package/@tauri-store/vue)         | Vue, Nuxt  |\n| [@tauri-store/zustand](https://tb.dev.br/tauri-store/plugin-zustand/guide/getting-started) | [![npm](https://img.shields.io/npm/v/%40tauri-store%2Fzustand.svg)](https://www.npmjs.com/package/@tauri-store/zustand) | React      |\n\n## Examples\n\nYou can find example projects in the [examples directory](https://github.com/ferreira-tb/tauri-store/tree/main/examples). To check them out, run the following commands:\n\n```sh\ngit clone https://github.com/ferreira-tb/tauri-store.git\ncd tauri-store\npnpm install\npnpm run example [EXAMPLE_NAME]\n```\n\nFor example, to run the [`pinia`](https://github.com/ferreira-tb/tauri-store/tree/main/examples/pinia) project, you can use:\n\n```sh\npnpm run example pinia\n```\n\nFor a completely random example, run:\n\n```sh\npnpm run example random\n```\n\n## Supported Tauri Version\n\nThe plugins require Tauri `2.0` or later.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fferreira-tb%2Ftauri-store","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fferreira-tb%2Ftauri-store","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fferreira-tb%2Ftauri-store/lists"}