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

dsh-hindsight-studio

v0.8.93

Published

Deploys and configures the local Hindsight memory service and shows its runtime state, without restarting DeepSeek Harness for a configuration change.

Readme

Hindsight 工作台(dsh-hindsight-studio)

⚠️ 使用风险提示(装之前先读这一块)

这是一个 vibe-coding 出来的产品,工程规范还没到位。 代码是一边跑一边改长出来的:分层、 错误处理、测试覆盖都还没收敛到能称为「规范」的程度,六道离线门禁只能证明「已知的坑不会再犯」, 证明不了「整体是对的」。

  • 验收只做了全流程:在作者本机(Windows)上把「装 → 配 → 起 → 看 → 停」整条链路跑通并留了 记录。没有跨平台真机验收,没有长时间稳定性测试,没有安全审计,冷僻分支的覆盖很有限。
  • 作者自用为主:发出来是为了让少走弯路的人能直接用,不是一份有 SLA、有兼容承诺的通用组件。 API、配置字段、界面文案都可能在补丁版本里变。
  • 它会动这些东西:spawn / kill 子进程,改 profile 的 coding-agent.json 与 daemon 的 .env, 安装与卸载 PostgreSQL,以及在升级引擎时要删实例数据目录(有确认门)。用之前请先备份你的 记忆数据;第一次上手建议拿一个单独的 profile 或独立实例试,不要直接放在主力实例上。
  • 后续计划:有时间会做一次规范化重构(拆分层、补测试、收敛错误处理与命名)。 在那之前,请把它当实验性软件对待:出问题先看日志、先回滚,别指望它能自己说清楚。

上面的风险提示不随版本变化;功能与边界的准确描述在下面的正文里。

给 DeepSeek Harness 里的本地记忆服务 Hindsight 配一个控制台: 配置它、把它跑起来、看见它到底哪一层断了,并且改配置不需要重启 DSH。

状态:M0–M3 已完成,0.8.93 已发布(npm 与 GitHub 同名包)。已有插件条目、四层状态卡(部署前置 / 操作队列 / 最近失败)、 22 个字段的配置页、四步连通性测试、「应用到服务」(写 daemon 的 .env 并重启它)、密钥管理、 带进度的服务启停与失败重试、侧边栏导航里的「记忆控制台」(未安装 / 未启动 / 运行中三态, 地址每 8 秒复读并跟随实际端口),以及按参考插件重构的求星行。 还缺:存储根迁移(M4)。具体边界见 设计说明。

它管的边界

Hindsight 的官方插件负责「记忆怎么组织」(retain / reflect / ingest、bank 配置、页面 seed)。 本插件只管「服务怎么跑起来、怎么被看见」:

| 归本插件 | 归官方插件 | | --- | --- | | 进程生命周期(daemon / 两个适配层 / 控制中心 / 控制面) | coding-agent.json 的 bank 行为段 | | 模型与目录 env(spawn 时注入) | 记忆读写与页面 seed | | PG 安装与数据目录 | — |

本插件不写 coding-agent.json 的 bank 段,也不手写 profile 的 dsh.profile.bundles。

安装

需要一个 DSH 安装(桌面壳 2.0.23-next、内核 0.2.2-rc.1 及以上)。

# 从 GitHub 安装(推荐锁定 tag,把 <version> 换成要装的版本)
dsh plugin --profile desktop add github:XinSpark/dsh-hindsight-studio#v<version>
# 或 npm
dsh plugin --profile desktop add dsh-hindsight-studio

# 从本地目录安装(开发)
# 打开 DSH → 设置 → 插件 → 添加插件 → 选择本仓库的 main/ 目录

安装后在设置 → 插件里会看到「Hindsight 工作台」:条目详情页有状态卡,行标题点开是配置页。 Host 半边的改动要重启 DSH 才生效,client.js 的改动刷新页面即可。

平台

Windows 上完整验收过(记录见 验收记录)。macOS 与 Linux 走同一套代码,平台差异都 收敛在几个具名分支里:

| 能力 | Windows | macOS / Linux | | --- | --- | --- | | 插件加载、状态卡、配置页、使用说明 | ✓ | ✓(纯浏览器侧,无平台判断) | | daemon / 记忆控制台 / 控制中心启停 | ✓ | ✓(都是 uvx hindsight-embed) | | PostgreSQL 启停 | ✓ pg_ctl.exe | ✓ pg_ctl(同一处探测,两个名字都找) | | 按 pid 停掉一个残留服务器 | ✓ taskkill | ✓ SIGTERM | | 拉起外部浏览器 | ✓ cmd /c start | ✓ open / xdg-open | | 文档目录 | ✓ 注册表的 Personal 值(OneDrive 重定向也算) | ✓ ~/Documents,不存在就建 | | 写回行配置、.env、漂移核对、rerank 适配层 | ✓ | ✓(无平台判断) |

macOS 与 Linux 没有实机验收过 —— 上面这张表说的是代码路径,不是实测结论。若你要在那两个平台上发布, 请先照 docs/testing.md 的实机验收表跑一遍。

现在能看到什么

  • 状态卡(插件详情页):四层结构——插件层、契约层、服务层、数据层。服务层把五个进程拆成独立行, 每行带状态灯与端口;Hindsight 自带的三个(daemon / 控制中心 / 控制面)可以启动 / 停止, Rerank 适配标注「内部适配层」—— 它起在本机回环端口上,随插件启停(把 Cohere 请求翻成厂商形状), 所以这一行没有按钮;LLM 代理标注「外部进程」,同样没有按钮 —— 地址指向远端厂商时这一行显示 主机名与「远程」,既不进「N/M 已启用」的分母,也不把整体状态压成故障(本机没有可探的东西); 只有地址写成本机回环时才真的去探那个端口。 数据层除了 bank 数与事实数,还列 部署前置(uvx / 密钥 / 端口 / 引擎缓存 / 磁盘五行,缺哪项直接说;PostgreSQL 与引擎是组件, 各带版本号与安装 / 更新 / 卸载按钮), 操作队列(完成 / 失败 / 待处理)与最近失败——失败的 retain 会丢事实,那是它们唯一能被看见的地方; 旁边的「重试失败项」把失败的 retain 重新排队(失败的操作仍持有原文,所以是真的重做)。 启停按钮走后台 job:首次启动要解包 PostgreSQL 与引擎,按钮旁会滚动显示 CLI 的最后一行输出。
  • 行配置页:五组共 22 个字段(基础 / 会话模型 / 嵌入模型 / 重排模型 / 其它设置),可编辑并写回 profile 配置;「测试全部连接」按 models → chat → embeddings → rerank 四步验证页面草稿 (改模型 → 先测 → 再保存),并内建两个坑的判据:思考模型吞 token、reasoning_effort 取值域。
  • 生效核对与「应用到服务」:保存只改这一页的配置,daemon 读的是它自己的 profile .env。 两者不一致时核对行会说出来(字段 页面=… / daemon=…),点「应用到服务」把值写进 .env 并重启 daemon,全程不重启 DSH。

文档

许可

MIT