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

ai-worklog

v1.0.6

Published

AI 对话工作日志自动收集工具 —— 从 Claude Code / Codex 对话记录生成每日工作日志并推送到 GitLab

Readme

工作日志自动收集系统

自动从 Claude Code 和 Codex 的 AI 对话记录中提取工作内容,调用 Claude API 生成结构化工作日志并提交到 GitLab。

快速开始

# 将 scripts/ 加入 PATH(建议加到 ~/.zshrc 或 ~/.bashrc)
export PATH="$HOME/Developer/local-work-record/scripts:$PATH"

# 生成今天的日志(自动 commit + push)
worklog

# 生成昨天的日志
worklog yesterday

# 指定日期
worklog 2026-03-06

# 生成但不 push
worklog --no-push

# 仅预览收集到的数据(不生成文件)
worklog --dry-run

数据来源

| 来源 | 路径 | 过滤规则 | |------|------|----------| | Claude Code | ~/.claude/projects/{project}/*.jsonl | 按 timestamp 过滤日期,过滤系统注入消息 | | Codex | ~/.codex/sessions/YYYY/MM/DD/rollout-*.jsonl | 按目录日期,提取 event_msg/user_message |

过滤的系统消息前缀:

  • # AGENTS.md instructions
  • <environment_context>
  • <system-reminder>
  • <local-command-caveat>
  • 含超过 20 个 < 标签的消息

日志格式

# 工作日志 - 2026-03-07

## 今日概览
- 涉及项目数: N
- AI 对话次数: N(Claude Code: N,Codex: N)

## 项目工作详情
### [project-name] 一句话概括
**工作类型:** 探索 + 开发
**主要工作:**
- ...
**关键决策:**
- ...

## 今日总结
...

---
*由 collect_work_log.py 自动生成于 ...*

注意:日志不估算工时,工时由工程师自报填写。

目录结构

local-work-record/
├── scripts/
│   ├── collect_work_log.py   # 主脚本(Python 3.8+,无额外依赖)
│   └── worklog               # Shell 入口(chmod +x)
├── logs/
│   └── 2026/
│       └── 2026-03-07.md
└── README.md

API 配置

脚本自动从 ~/.claude/settings.json 读取:

  • env.ANTHROPIC_AUTH_TOKEN — API 密钥
  • env.ANTHROPIC_BASE_URL — API 地址(默认 https://api.anthropic.com

无需手动配置任何环境变量。

命令行选项

worklog [date] [options]

date:
  today         今天(默认)
  yesterday     昨天
  YYYY-MM-DD    指定日期

options:
  --no-push     仅 commit,不 push 到远程
  --dry-run     仅预览收集数据,不生成文件
  --no-git      仅生成文件,跳过所有 git 操作