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

diary-search

v1.1.4

Published

OpenClaw 日记与会话检索插件 - 为喜欢写日记的你,或需要查找历史对话的场景

Readme

diary-search

OpenClaw 日记与会话检索插件 - 搜索日记、查找历史对话(含归档)、导出会话记录、查询定时任务运行记录

功能特性

日记检索

  • BM25 全文检索 - 基于 MiniSearch 的高效搜索
  • 中文分词支持 - Bigram + Unigram 混合分词策略
  • 时间衰减排序 - 近期日记优先显示
  • 同义词扩展 - 支持中英文同义词查询
  • 时间过滤 - 支持今天、昨天、本周、本月等快捷过滤

会话检索

  • 按日期列出会话 - 查看某天有哪些对话
  • 搜索会话内容 - 关键词搜索历史对话
  • 导出纯对话文本 - 过滤工具调用,只保留对话内容
  • 支持归档文件 - 可搜索已归档的历史会话
  • 智能过滤 - 自动过滤定时任务会话和心跳消息

定时任务查询

  • 运行记录查询 - 查看定时任务的执行情况
  • 按 Agent 过滤 - 支持过滤指定 Agent 的定时任务

安装

请使用 OpenClaw 的 diary-search skill 进行安装:

clawhub install diary-search

或查看 SKILL.md 获取完整的安装方式。

使用方法

安装后,直接对 OpenClaw 说:

日记搜索

搜索我上周关于"项目架构"的日记
搜索 2026-02 月关于"数据库优化"的讨论
查找昨天提到的"bug"
查看我的日记统计

会话检索

列出昨天的会话
列出 2026-03-03 的会话
搜索我之前说的"webchat"
导出会话 77762d1f 的对话内容

定时任务查询

查看最近 7 天的定时任务运行记录
查看 xiaobu 的定时任务

工具说明

日记工具

| 工具 | 说明 | |------|------| | diary_search | 搜索日记内容 | | diary_stats | 获取日记统计信息 |

会话工具

| 工具 | 说明 | |------|------| | session_list_by_date | 按日期列出会话文件(自动过滤定时任务) | | session_search | 搜索会话消息内容(默认 30 天,含归档) | | session_export | 导出会话的纯对话文本(自动过滤心跳) |

定时任务工具

| 工具 | 说明 | |------|------| | cron_list_runs | 列出定时任务运行记录 |

与 memory-lancedb 的关系

| 插件 | 检索方式 | 适用场景 | |------|----------|----------| | memory-lancedb | 向量检索 | 语义相似性搜索 | | diary-search | 关键词检索 | 精确查找 |

两者可以同时使用,互补增强记忆检索能力。

日记格式

支持 .md.txt.markdown 文件,文件名建议使用 YYYY-MM-DD.md 格式。

同义词配置

编辑 synonyms.json 自定义同义词:

{
  "数据库": ["DB", "database", "存储"],
  "项目": ["工程", "project"],
  "架构": ["设计", "结构", "architecture"]
}

更新日志

v1.1.3

  • ✨ 新增 cron_list_runs 工具,可查询定时任务运行记录
  • ✨ 会话搜索默认支持归档文件(.deleted.xxx
  • ✨ 会话搜索默认时间范围改为 30 天
  • ✨ 自动过滤定时任务会话和心跳消息
  • 🐛 修复会话路径问题,使用 stateDir 配置

License

MIT