Skip to content

state-syncReliable state synchronization between windows/processes

Invalidation → Fetch snapshot → Apply (revision gate)

Install

bash
npm install @statesync/core
npm install @statesync/pinia   # if Pinia
npm install @statesync/tauri   # if Tauri

Quick example

ts
import { createConsoleLogger, createRevisionSync } from '@statesync/core';

const handle = createRevisionSync({
  topic: 'app-config',
  subscriber: mySubscriber,
  provider: myProvider,
  applier: myApplier,
  logger: createConsoleLogger({ debug: true }),
});

await handle.start();

Released under the MIT License.