TwickaS/delorun--packages-client-store ↗★ 1

@deepseek-ai/dsh-client-store

React-free observable and snapshot-store contracts with the shared Zustand/Immer engine

Package
@deepseek-ai/dsh-client-store
Compatibility
Unverified
Cordis peer range
workspace:~
Version
0.2.2-rc.3
License
MIT
Last updated
Nov 22, 2026

Other repositories with this package name

Install

This plugin has no verified bundle, or compatibility checks failed. Read the repository notes first. Read the full README ↗


description: "Observable browser state stores with explicit snapshots, subscriptions, and lifecycle ownership." kind: "package-library"

@deepseek-ai/dsh-client-store

English | 中文

Summary

React-free observable and snapshot-store primitives shared by Client controllers and renderer adapters. The package owns synchronous and animation-frame publication, Immer-backed updates, shallow equality, and optional browser persistence; React hook construction remains in @deepseek-ai/dsh-client-ui-renderer. Use it when Client state must publish stable snapshots without depending on React.

Table of Contents


Model Experience

None, as this package provides browser-side state primitives and registers nothing model-facing.

KV Cache effect

None; the stores neither assemble nor send model requests.

Known Limitations and Deferred Work

  • Persistence is browser-local — persisted stores use JSON in localStorage; non-browser runtimes disable persistence, and the package provides no cross-device synchronization. Every persisted key joins the active connection's host id (contract C10), so two connections sharing one browser origin keep separate state; until the studio names a host id the bare persist name remains, and an entry written without a host id is not read or migrated.
  • Web-shell build input — the static ESM retains third-party imports for Vite; independent consumers supply its development dependencies (dependency rules). The build defaults to production; NODE_ENV=development enables development checks. Wholesale set() freezes snapshots only outside production; update() retains Immer's automatic freezing.

Dev Note

Working context for maintainers — click to expand

None.