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

@vicfei/agentdiary

v0.2.0

Published

Your agents keep a diary — in your own git repo. Append-only session entries, snapshot memory, zero service dependency.

Readme

agentdiary

你的 agent 写日记——写在你自己的 git 仓里。

你在多个窗口、多台机器上跑 Claude Code / Codex / OpenCode / zcode。活干得不错,但「谁在何时做了什么、结果如何」的记录散落在没人重读的聊天记录里。agentdiary 修的是记录,不是聊天:

sessions/2026-11/2026-11-18-laptop.md   # 追加式;每节点每日一文件
memory/<node>/<project>/…               # 快照式(rsync + 溯源)
agentdiary.toml                          # 节点名 / 扫描档位 / memory 源
  • git 原生——无服务器、无云、无锁定;仓是你的(GitHub/Gitea/本地 bare 均可)。
  • 工具无关——任意 CLI agent 都能追加;DSH 插件(dsh-agentdiary-plugin)以同一格式从 DeepSeek Harness 会话落笔。
  • 高频路径离线可用—— append 与 sync 亚秒完成、无需联网;可选的报告层(P2)是唯一会用到模型的地方。
  • CI 级契约—— verify 校验目录 schema、文件命名与时间序;可接进任何流水线。

安装

npm i -g @vicfei/agentdiary

快速开始

mkdir my-diary && cd my-diary && git init
agentdiary init --node laptop
agentdiary append --task "fixed the parser" --did "read 3 files;patched src/parse.ts" --result "12/12 green" --artifact abc1234
agentdiary log 5
agentdiary verify

有 TTY 时 append 交互补缺;无 TTY(agent 窗口脚本化调用)只认 flags。

命令

| 命令 | 作用 | |---|---| | init | 建立目录契约 + agentdiary.toml(幂等) | | append | 追加当日条目(模板;有 TTY 交互补缺;先过 scan 门) | | sync | 把 memory 源 rsync 进 memory/<node>/(带 _synced_at/_source 溯源),commit + push(rebase 重试 ×3) | | scan [--strict] | 全日记凭据形态扫描;命中 exit 1——可装 pre-commit | | verify | 校验契约(schema、命名、时间序)——CI 友好 | | log [N] / today | 回读最近条目 / 今日文件 |

扫描档位

off(默认)/ tier(常见凭据形态:AWS key、PAT、npm token、私钥…)/ strict(tier + 高熵块)。默认 off 是有意的:日记是记录,记什么由主人决定;仓要共享时再开档。

名字说明

无 scope 的 agentdiary 名被 npm 防蹭名规则拦下——已存在不相干的 agent-diary(会话日志分析,相邻赛道的另一类产品)。本包以 scoped 名发布;二进制就叫 agentdiary。

状态

P0(本版):目录契约 + append/sync/scan/verify/log,条目格式与 DSH 插件同一拼写。P1:适配器自动发现 Claude Code / Codex 会话存储。P2:report daily/weekly 聚合。

MIT.