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

@libai168/dsh-tool-memory

v0.1.0

Published

Local knowledge-graph memory for DeepSeek Harness: file-backed entities, relations, and observations with search

Readme

dsh-tool-memory

English | 中文

面向 DeepSeek Harness(dsh)的本地知识图谱记忆 Cordis 插件。Agent 可以把实体、观察和关系存入文件型图谱,跨会话检索和管理——不依赖外部服务,也不需要任何凭据。

安装

npm install @libai168/dsh-tool-memory

需要 peer dependency:@deepseek-ai/cordis(^4.0.1)和 @deepseek-ai/dsh-tools(^0.1.0-rc.6)。

配置

- name: 'github:LJH-snow/dsh-tool-memory'
  config:
    # storagePath: '~/.dsh/memory.jsonl'

图谱以 JSONL 格式存储在 storagePath(默认 ~/.dsh/memory.jsonl)。文件格式与官方 MCP memory 服务器一致:实体行包含 name/entityType/observations,关系行包含 from/to/relationType,已有记忆文件可以直接复用。

工具

| 工具 | 说明 | 写操作 | |---|---|---| | memory_stats | 报告实体、关系、观察数量和存储路径 | 否 | | memory_read_graph | 读取图谱(实体、观察、关系) | 否 | | memory_search | 按关键词搜索实体并附带相关关系 | 否 | | memory_create_entities | 从 JSON 数组创建实体 | 是 | | memory_add_observations | 为单个实体追加观察 | 是 | | memory_create_relations | 在已有实体间创建关系 | 是 | | memory_delete_entities | 删除实体并级联删除其关系 | 是 | | memory_delete_observations | 删除指定观察 | 是 | | memory_delete_relations | 删除指定关系 | 是 |

安全契约

  • 全本地:存储层只读写一个 JSONL 文件,无网络访问、无凭据处理。
  • 写入采用临时文件 + 重命名的原子方式;加载时跳过损坏行,不会让插件失效。
  • 关系只能在已存在的实体之间创建,避免悬挂引用。
  • 输出限长:读取最多 200 个实体、500 个关系;搜索最多 50 个实体(默认 20);名称上限 200 字符、观察上限 2000 字符;每个写操作最多接受 100 条输入。
  • 所有写操作标记为 kind: 'edit';数组参数以 JSON 字符串传入并在写入前校验。

API 范围

当前版本覆盖实体/关系/观察的完整生命周期与文件存储。时间戳、基于向量的语义搜索和多存储隔离属于后续方向。

开发

npm install
npm run typecheck
npm test
npm run build
npm pack --dry-run

许可证

MIT