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

molymemo

v1.0.46

Published

OpenClaw plugin for MolyMemo - sync AI chat sessions

Readme

MolyMemo OpenClaw Plugin

OpenClaw 插件,用于同步 MolyMemo 服务器上的 AI 对话记录,并通过 Agent 自动分析生成建议。

安装

openclaw plugins install molymemo

更新

openclaw plugins update molymemo

配置

openclaw config set plugins.entries.molymemo.enabled true
openclaw config set plugins.entries.molymemo.config.apiKey YOUR_API_KEY

Agent 分析和建议推送依赖 hooks 功能:

openclaw config set hooks.enabled true
openclaw config set hooks.token YOUR_HOOKS_TOKEN
openclaw gateway restart

配置项

| 参数 | 类型 | 必填 | 说明 | |------|------|------|------| | apiKey | string | 是 | MolyMemo API 认证密钥 | | debug | boolean | 否 | 开启调试日志,debug 模式下防抖和推送间隔缩短为 1 分钟。默认 false | | maxSuggestions | integer | 否 | 建议列表最大条数,默认 10 | | pushIntervalMinutes | integer | 否 | 推送检查间隔(分钟),默认 5 | | pushChannel | string | 否 | 推送渠道(如 telegram、feishu),不设置则不推送 | | pushTo | string | 否 | 推送目标用户,不设置则使用渠道默认 | | sessionIdleMinutes | integer | 否 | 会话空闲多久后触发 Agent 分析(分钟),默认 5 |

完整配置示例:

{
  "plugins": {
    "entries": {
      "molymemo": {
        "enabled": true,
        "config": {
          "apiKey": "mk_xxx",
          "debug": false,
          "pushChannel": "telegram",
          "pushTo": "123456789"
        }
      }
    }
  }
}

工作原理

文件同步

  1. 插件启动时通过 WebSocket 连接到 MolyMemo 服务器
  2. 连接建立后,扫描本地已同步文件,调用 check_updates 接口检查哪些文件需要更新
  3. 通过 HTTP pull_data 接口拉取文件内容,支持 create(全量写入)和 append(追加写入)两种模式
  4. WebSocket 持续监听 file_updated 通知,实时触发增量同步
  5. 每个文件的同步进度通过 .meta.json 记录

Agent 智能分析

文件同步后,插件会启动一个 per-session 防抖计时器。当某个会话文件在空闲时间内无新更新时,自动触发 Agent 分析:

  • 提取有价值的知识点,写入 {workspaceDir}/memory/ 目录作为长期记忆
  • 生成可执行的建议,写入 molymemo-suggestions.json
  • 通过 .meta.json 中的 analyzed_at 字段避免重复分析

建议推送

如果配置了 pushChannel,插件会定期检查未推送的建议,通过 Agent 将建议发送到指定渠道。

连接维护

  • 心跳检测:每 30 秒发送 WebSocket ping,检测连接假死
  • 指数退避重连:断线后从 3s 开始,逐步增加到最大 60s,带随机 jitter
  • 自动恢复:重连成功后自动执行 check_updates 补齐断线期间的更新

文件结构

文件存储在 {workspaceDir}/molymemo/ 下:

{workspaceDir}/molymemo/
├── chat-data/
│   ├── Provider/
│   │   ├── session-id.md          # 对话内容
│   │   └── session-id.meta.json   # 同步元数据
│   └── ...
└── molymemo-suggestions.json      # 建议列表

.meta.json 格式:

{
  "path": "Provider/session-id.md",
  "latest_at": "2026-02-10T09:18:17.415261Z",
  "title": "对话标题",
  "url": "https://...",
  "analyzed_at": "2026-02-10T10:00:00.000Z"
}

Agent 工具

molymemo_browser_history

获取用户最近的浏览器历史记录,无参数。

Gateway 方法

molymemo.status

获取插件运行状态。

{
  "wsUrl": "wss://...",
  "apiUrl": "https://...",
  "connected": true,
  "dataDir": "/path/to/workspace/molymemo"
}

卸载

rm -rf ~/.openclaw/extensions/molymemo
openclaw config unset plugins.entries.molymemo
openclaw config unset plugins.installs.molymemo