Svelte Synk Demo

Open this page in multiple tabs and interact with controls. Values and timer outcomes should stay in sync across tabs.

Synced Stores and Leader Tasks

Cross-tab text synchronisation

Edit in one tab and confirm the same value appears in other tabs.

Shared numeric state mutations

Use direct input and +/-/clear buttons to verify synced write/update flows.

Leader-only one-shot timeout

Start once, wait for Done banner, and verify only leader runs the task.

Leader interval scheduling and counter sync

Run interval ticks on leader while all tabs observe the same counter updates.

Counter: 0

Session-lifetime store behaviour

This value is scoped to the current session lifetime, not persistent lifetime.

Lifetime: session

Direct leader task submission API

Runs a keyed leader task immediately and reports submission status.

Ping counter: 0 Lifetime: persistent

Local Utility Stores (Not Synced)

ValidatableStore acceptance and rejection

Applies only values that pass validation (integer range 0..100).

Current value: 0 Is initial: yes

Try numbers 0..100. Out-of-range values are ignored.

InterceptableStore read/write transforms

Demonstrates write interception and read mapping in a local-only store.

Readable output: read:hello

Is initial: yes

Maintenance and Diagnostics

Maintenance APIs

Runs cleanup operations for user-data or all persisted stores.

No maintenance action run yet.

Debug

Inspect leadership, session id, and hydration/source/lifetime metadata.

  • Runtime status: ssr
  • Is leader: no
  • Current tab id: baa92628-c522-42de-8754-d67a26755c75
  • Leader tab id: unknown
  • Session id: ssr
  • Text metadata: ssr / initial / persistent
  • Timeout metadata: ssr / initial / persistent
  • Interval metadata: ssr / initial / persistent
  • Session note metadata: ssr / initial / session
  • Last submit status: n/a
  • Last task event: n/a