npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@x1a0f3n9/dsh-client-store

v0.1.7-rc.3

Published

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

Readme


description: "具有显式快照、订阅与生命周期所有权的浏览器可观察状态存储。" kind: "package-library"

@x1a0f3n9/dsh-client-store

English | 中文

概述

供 Client 控制器与 renderer 适配器共用的不依赖 React 的 observable 和快照存储基础原语。本包负责同步与 animation-frame 发布、基于 Immer 的更新、浅比较和可选的浏览器持久化;React 钩子的构造仍属于 @x1a0f3n9/dsh-client-ui-renderer。当 Client 状态必须在不依赖 React 的情况下发布稳定快照时,请使用它。

目录


模型体验

无,因为本包提供浏览器侧状态基础原语,不注册任何面向模型的内容。

KV Cache 影响

无;这些存储既不组装也不发送模型请求。

已知限制与暂缓事项

  • 持久化仅限浏览器本地——持久化存储使用 localStorage 中的 JSON;非浏览器运行时会禁用持久化,本包也不提供跨设备同步。
  • Web 壳构建输入——静态 ESM 为 Vite 保留第三方导入;独立消费方自行提供开发依赖(依赖规则)。

开发备注

无。

运行时不变式: 不发布伴生入口。本包只导出库引擎,不创建进程全局状态;每个存储实例由其所属测试覆盖。