🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

@zubridge/tauri-v1

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zubridge/tauri-v1

A streamlined state management library for Tauri v1 applications using Zustand.

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source
zubridge hero image

streamlined state management for Tauri v1 apps

Why

tldr: I want to use Zustand in my Tauri v1 app, seamlessly

Zustand is a great state management library. As with other state libraries such as Redux, it is recommended that a single store is used in your app.

For Tauri apps, accessing state across the main and renderer processes presents a challenge.

Zubridge solves this by enabling a single store workflow, abstracting away the IPC management and state synchronization between processes.

Features

  • Use Zustand everywhere in your Tauri v1 app
  • Single store workflow across IPC boundary
  • Supports different Zustand usage patterns
  • Handles thunks, inline actions or Redux-style action objects

How It Works

Zubridge uses an additional Zustand store in the front-end (renderer) process, which is synchronized in one direction with your application store in the back-end (main) process.

Actions from the front-end are dispatched via Tauri commands / events to the back-end store, which handles them and updates state accordingly. The front-end store then receives these state updates and synchronizes itself automatically.

zubridge tauri app architecture

Getting Started

See the docs to get started.

Note that this package only supports Tauri v1. If you need Tauri v2 support, see the @zubridge/tauri package.

Keywords

zustand

FAQs

Package last updated on 12 Mar 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts