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-memory-journal

v0.1.2

Published

轻量日记式长期记忆插件 for DeepSeek Harness:每次对话自动注入,内容随对话持续自我迭代,设置页可直接浏览与编辑。显式检索/写入工具由配套的 Python MCP server(py-mcp/)提供。

Readme

dsh-memory-journal(宿主插件)

English | 中文

给 DeepSeek Harness 用的轻量 Cordis 插件。把长期记忆(SOUL.md、 USER.md、MEMORY.md、今天的日记)自动注入每次对话的 system prompt, 并提供 HTTP API 查看/编辑这些文件。每个路由都先经过宿主 connection 服务的准入校验——同源 Host/Origin 栅栏 + 浏览器登录 token——跨站调用和 DNS rebinding 都会被拒;只查回环地址挡不住这些,因为用户浏览器里打开的 任意页面也是从 127.0.0.1 发起请求的。显式的记忆检索/写入/日记工具由 配套的 py-mcp MCP server 提供,不在这里。

不是 DeepSeek 官方插件。

安装

npm install -g dsh-memory-journal

通过 overlay 启用,例如本仓库的 examples/dsh-memory-journal.cordis.yml:

dsh web --patch "$PWD/examples/dsh-memory-journal.cordis.yml"

enabled: true 只在 scopes.json 第一次创建时用作全局默认值(默认到处 都是开的);之后是否注入由 scopes.json 自己决定(见下),可以在 cordis.patch.yml 里改,也可以从 UI 上改。

它做什么

  • 插件挂载时立即生成 SOUL.md/USER.md/MEMORY.md 的起始内容。
  • 把这三个文件加上今天的日记注入 system prompt,顺序为 prompt 缓存稳定性 设计(稳定的文件在前,日记放最后)。
  • 按 scopes.json(插件自己维护的小型存储,会话 > 工作区 > 全局,不是 Cordis config)解析这次请求是否真的要注入,取值依据是当前 agent 的 session.header.id/.cwd。
  • 日记/周记缺失时,通过注入文本提醒模型补上——没有真正的定时器,只在下次 有人说话时才会被动触发。
  • 在输入框下方显示一个 📓 状态条(conversation.composer.dock),可以 切换全局/工作区/会话各自的开关。
  • 在 Web 客户端的设置弹窗里加一个"记忆"页面(settings.section),可以 浏览所有真实存在的日记/周记(最新月份/年份默认展开,当天/本周没写时 显示一个可点击的占位行)以及 MEMORY.md/SOUL.md/USER.md,五种都支持 查看态/编辑态切换。
  • GET /api/dsh-memory-journal/entries 列出所有真实存在的日记/周记条目 (日期或 ISO 周标签 + mtime),给设置页的列表用。
  • GET/POST /api/dsh-memory-journal/file?target=<soul|user|memory|daily:YYYY-MM-DD|weekly:YYYY-Www> 按 py-mcp MemoryStore 同一套命名读/写某一个文件。POST 需要带上 { target, content, expectedMtimeMs }:expectedMtimeMs 必须是上次读到 的那个 mtime(文件还不存在就传 null)——如果文件在此期间被改动过 (比如被 MCP server 写入),保存会返回 409 并拒绝,而不是悄悄覆盖掉 并发的改动。
  • POST /api/dsh-memory-journal/scope(和上面每个路由一样先过 connection 准入校验;未登录或跨站调用返回 401/403)。

完整图景(包括配套的 MCP server 和已知限制)见仓库 README。

License

MIT