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-memex

v0.0.3

Published

Memex for DeepSeek Harness (dsh) — every day it records what dsh did (sessions, prompts, tools, files, commands) as a Markdown diary. · dsh 的起居注:每天自动整理 dsh 当天做了什么,存成日记。

Readme

dsh-memex

Memex for DeepSeek Harness (dsh) — every evening it reads what dsh did today and writes it down as a Markdown diary. · dsh 的起居注:每天自动整理 dsh 当天做了什么,存成日记。

Memex 是什么

1945 年 7 月,二战还没打完,美国科研总管 Vannevar Bush 在《大西洋月刊》上发表了一篇文章,叫《As We May Think》(《诚如所思》)。他的烦恼很现代:人类产出的知识太多,多到没人记得住、也找不着了。

他的解法是一张桌子。桌面上有几块倾斜的半透明屏幕,桌子里塞满微缩胶片,配上键盘、按钮和拉杆。你读过的书、写过的信、拍过的照片、随手的笔记,全都存进这张桌子,一拉杆就能翻出来。他给它起名 Memex——memory extender,记忆扩展器。

最妙的是“联想路径”(associative trails):Bush 认为人脑不是按字母顺序存东西的,而是“一个念头勾出下一个念头”。所以 Memex 允许你把两份资料“系”在一起,日后顺着线索一路翻下去。

这张桌子从来没有造出来。但它启发了 Douglas Engelbart 去发明鼠标和超文本演示,启发了 Ted Nelson 造出“hypertext”这个词,后来的万维网,基本就是一张没有木头的 Memex。

八十年后,记忆的问题换了个样子:现在是你的电脑替你干了一整天活,但谁也说不清它干了什么。dsh-memex 想做的,就是那张桌子的第一个抽屉:先把 dsh 每天做过的事记下来,一天一页。

中国古代也有类似的东西:起居注——史官每天记录皇帝的言行,后来修史就拿它当底稿。dsh-memex 就是你的 AI 史官,只不过它记的是你,而且从不打瞌睡。

它记录什么

数据来自 dsh 的 ctx.sessionQuery(实时 + 持久化会话,和模型看到的历史一致),按会话归纳:

| 内容 | 来源事件 | | --- | --- | | 会话标题、工作目录、起止时间 | session header + session/title | | 你下达的指令 | user/message | | 工具调用次数、读写的文件、执行的命令 | tool/call 参数 | | 完成 / 未完成的待办 | 当天最后一次 todo/write | | 出错的回合 | turn/end(error) | | 最后的结果 | 当天最后一条 assistant/message | | 今日总结(可选) | 用当天最后使用的模型把以上内容写成一段叙述 + 按项目的成果 + 遗留问题 |

输出:~/.dsh/memex/2026-10-10.md,一天一个文件。

安装

dsh plugin --profile web add dsh-memex

配置

dsh-memex:
  outputDir: "~/.dsh/memex"
  writeAt: "23:30"        # 每天几点写
  catchUpDays: 3          # 启动时补写最近几天缺失/没写完的日记
  summarize: true         # 让模型写「今日总结」;失败时只写事实部分
  # provider: deepseek    # 不填就沿用当天最后一个会话用的模型
  # model: deepseek-chat
  maxSummaryOutputTokens: 16000  # 推理模型的思考也占这个额度
  language: 中文

手动触发:/memex(今天)、/memex 昨天、/memex -3、/memex 2026-10-01。

设计

  • 只读:不往会话日志写任何东西,总结调用是独立的辅助请求。
  • 补写:dsh 没在 writeAt 时运行也不会漏——下次启动时把缺失或在当天结束前写的日记重写一遍。
  • 故障隔离:单个会话读取失败只跳过该会话;总结失败照样写事实日志。
  • 零依赖:只依赖宿主的 @deepseek-ai/cordis / @deepseek-ai/schemastery,dsh 内部接口按结构子集读取。

路线图

这是「每天自动记录电脑做了什么」的第一步:先把 dsh 的工作记下来。后续数据源可以按同样的 collect → render → summarize 管线接入:git 提交、shell 历史、浏览器历史、前台应用时长等。

License

MIT © AIcivilization