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

v0.1.0

Published

memos (usememos) read integration for DeepSeek Harness: configure your self-hosted memos server URL + personal access token, then let any agent search, list, and read your memos notes via memos_search / memos_list / memos_get

Readme

dsh-memos

中文 | English

让 DeepSeek Harness 的会话能读取你的 memos(usememos 自托管笔记)。配置一次服务器地址 + 访问令牌(PAT)后,agent 就能通过 memos_search / memos_list / memos_get 检索你的笔记。

功能

  • 设置面板 — 在 Web 设置页(设置 → Memos)里配置服务器地址 / 访问令牌:保存、测试连接、清除,还有最近 5 条笔记预览。
  • memos_search — 按关键词(匹配正文)和/或标签搜索笔记,返回摘要列表(id、摘要、标签、时间),支持分页与排序。
  • memos_list — 按时间倒序浏览最近笔记,支持分页(pageToken)。
  • memos_get — 按 id 读取单条笔记的完整内容(含标签、附件清单、创建/更新时间)。
  • memos_config — 配置 serverUrl(实例地址)和 accessToken(PAT);reset: true 清除凭据。
  • memos_status — 查看是否已配置、服务器地址与令牌掩码、配置文件路径,不回显完整令牌。
  • 凭据持久化到 ~/.dsh/dsh-memos.json(权限 0600)。
  • 系统提示公告:agent 知道何时该用这个插件。
  • 只读设计:插件不提供任何写入/修改/删除能力,PAT 泄露的风险面最小。

适配版本

针对 memos v0.x API(/api/v1/...,已在 v0.30.0 上核实): GET /api/v1/memos(列表 + CEL 过滤)、GET /api/v1/memos/{id}(单条)。

安装

已发布的版本自带编译好的 lib/ 产物,直接装 tarball 即可:

# 从最新 release 安装(零运行时依赖,无需构建)
dsh plugin --profile web add "https://github.com/omdsh-dev/dsh-memos/releases/latest/download/pkg.tgz"

本地开发用 link 方式:

npm install --legacy-peer-deps && npm run build   # 仅首次:src/*.ts → lib/
dsh plugin --profile web add link:/path/to/dsh-memos

(加 --legacy-peer-deps 是因为 @deepseek-ai/* 开发闭包过不了严格 peer 解析。)

重启 dsh web 生效。源码是 TypeScript(src/);lib/ 是 tsc 输出——纯 ESM、零运行时依赖。 开发时用 npm run dev(watch 模式)。

配置

  1. 在 memos 网页端打开「设置 → Access Tokens / 访问令牌」,创建一个访问令牌(PAT)。
  2. 在 DSH Web 设置页「Memos」面板填入服务器地址(如 https://memos.example.com)和令牌,点「测试连接」验证;或直接让 agent 配置:
帮我配置 memos,服务器是 https://memos.example.com,令牌是 xxxx
  1. 之后直接说:
搜一下我 memos 里关于「路由协议」的笔记
把我最近 10 条 memos 列出来
把 memos 里 #ideas 标签下的笔记汇总一下

PAT 等同于读取凭据:拿到它的人能读你的全部笔记。请保密;泄露后立刻在 memos 里删除该令牌,并用 memos_config(reset: true) 或设置面板清除本地配置。

说明

  • 请求使用 Node 内置 fetch(Node 22+),零第三方依赖。
  • 设置面板通过仅限本机的 /api/dsh-memos 路由族与宿主通信(loopback + 同源校验)。
  • 搜索基于 memos 服务端的 CEL 过滤(content.contains(...)、"tag" in tags),在服务器侧完成,不会把整库拉取到本地。

License

MIT