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

v1.0.9

Published

OpenClaw plugin for MolyMemo - sync AI chat sessions

Downloads

206

Readme

MolyMemo OpenClaw Plugin

OpenClaw 插件,通过 WebSocket 连接到服务器,接收推送的内容并写入 memory 文件夹。

安装

npm install
npm run build

配置

在 OpenClaw 配置文件中添加插件配置:

{
  plugins: {
    entries: {
      "molymemo": {
        enabled: true,
        config: {
          serverUrl: "ws://localhost:8080",  // 必填,WebSocket 服务器地址
          apiKey: "your-api-key",            // 可选,认证密钥
          reconnectInterval: 5000            // 可选,重连间隔(ms),默认 5000
        }
      }
    }
  }
}

配置项

| 参数 | 类型 | 必填 | 说明 | |------|------|------|------| | serverUrl | string | 是 | WebSocket 服务器地址 | | apiKey | string | 否 | API 认证密钥 | | reconnectInterval | number | 否 | 重连间隔(ms),默认 5000 |

工作原理

  1. 插件启动时建立 WebSocket 连接到配置的服务器
  2. 监听服务器推送的消息
  3. 收到消息后将内容 append 到 {workspaceDir}/memory/molymemo/{filepath}
  4. 连接断开后自动重连

服务器消息格式

服务器推送的消息需要符合以下 JSON 格式:

{
  "type": "memo",
  "content": "要追加的内容",
  "filepath": "notes/daily.md"
}

接口

Gateway RPC 方法

molymemo.append

手动追加内容到文件。

参数:

{
  "content": "要追加的内容",
  "filepath": "相对路径,如 notes/2024/01/15.md"
}

molymemo.status

获取插件状态。

响应:

{
  "serverUrl": "ws://localhost:8080",
  "connected": true,
  "workspaceDir": "~/.openclaw/workspace",
  "molyMemosDir": "~/.openclaw/workspace/memory/molymemo"
}

HTTP 路由

POST /molymemo/append

手动追加内容到文件。

curl -X POST http://localhost:port/molymemo/append \
  -H "Content-Type: application/json" \
  -d '{"content": "Hello World", "filepath": "test.md"}'

GET /molymemo/status

获取插件状态。

Agent 工具

append_memo

Agent 可调用的工具,用于追加内容到记忆文件夹。

参数:

  • content: 要追加的内容
  • filepath: 相对文件路径

文件结构

内容会被追加到 {workspaceDir}/memory/molymemo/{filepath} 路径下。

例如,如果 workspaceDir~/.openclaw/workspacefilepathnotes/daily.md, 那么内容会追加到 ~/.openclaw/workspace/memory/molymemo/notes/daily.md