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

@huiliyi37/dsh-storage

v0.6.0

Published

Storage hub (ctx.storage): named backend registry plus mounted data-form facilities for the Tianshu Harness

Readme

@huiliyi37/dsh-storage

English | 中文

非会话数据的存储中心(ctx.storage):具名后端注册表加已挂载的数据形式设施。中心自身不执行 IO:后端拥有介质,数据形式拥有语义。存储家族概述列出了这些包;领域 KV 存储 Agent Note记录了设计理由。

结构

  • ctx.storage.backend:名称 → 后端表。多个后端并排保持挂载(jsonsqlite);为消费方提供服务的后端由该消费方自身的配置决定(领域层的路由表),绝非中心的全局选择。register() 返回资源释放函数;注册重复名称或查找未知名称时都会明确报错。
  • ctx.storage.mount(form, facility)ctx.storage.form(form):数据形式挂载。StorageForms 可通过合并扩展;领域层合并 domain,并通过 ctx.storage.domain 访问。
  • 后端拥有一种介质,并公开其支持的数据形状分面。当前分面为 kvsrc/backend.ts 负责定义其确切约定。

模型体验

后端与形式注册

模型看到的内容

无。ctx.storage 是主机侧注册表;中心不注册工具、不注入提示词,也不写入会话事件。

Token 影响

每次请求都不会直接增加 token。

KV Cache 影响

与实时请求相互独立:中心绝不触碰请求前缀,因此无法使提供方缓存复用失效。

已知限制与暂缓事项

  • kv 是唯一的数据形状:后端目前只有一个分面需要实现。
  • 数据形式按需解析:在领域插件挂载前读取 ctx.storage.domain 会抛出 form-not-mounted;组装会按相应顺序排列插件(错误配置会明确报错,而不是静默推迟处理)。