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

@43world/llm-logger-openclaw-plugin

v0.0.4

Published

OpenClaw plugin that logs LLM request payloads and responses to JSONL.

Readme

llm-logger-openclaw-plugin

OpenClaw 插件。

启用后会把 OpenClaw 对话链路中的底层 LLM 调用请求参数和响应数据写入 JSONL 日志文件。

功能

  • 记录 provider 请求 payload
  • 记录 HTTP 请求与响应
  • 记录 OpenAI Responses WebSocket 收发帧
  • 记录 OpenClaw 的 llm_input / llm_output 摘要事件

安装

直接走npm包安装

openclaw plugins install @43world/llm-logger-openclaw-plugin

源码目录安装

openclaw plugins install -l /root/projects/llm-logger-openclaw-plugin
openclaw plugins enable llm-logger-openclaw-plugin

配置

在 OpenClaw 配置中加入:

{
  "plugins": {
    "entries": {
      "llm-logger-openclaw-plugin": {
        "enabled": true,
        "config": {
          "logFile": "/tmp/openclaw-llm.jsonl",
          "maxBodyBytes": 262144,
          "redactAuthorization": true,
          "includeHooks": true,
          "includeHttp": true,
          "includeWebSocket": true
        }
      }
    }
  }
}

如果不指定 logFile,默认按会话和日期写到:

<OPENCLAW_STATE_DIR>/logs/<session_key>/llm-logger-openclaw-plugin-YYYY-MM-DD.jsonl

其中:

  • <session_key> 来自 OpenClaw 会话;若缺失会写到 _unknown_session_key 目录
  • YYYY-MM-DD 为当天日期后缀,用于每日滚动记录

如果指定了 logFile(例如 /tmp/openclaw-llm.jsonl),会将其作为基准路径与基准文件名,最终写入:

/tmp/<session_key>/openclaw-llm-YYYY-MM-DD.jsonl

日志格式

日志为 JSON Lines。

常见事件类型:

  • llm_input
  • provider_request_payload
  • http_request
  • http_response
  • ws_send
  • ws_message
  • llm_output

说明

  • 日志默认会对常见认证字段做脱敏
  • 请求/响应 body 默认按 maxBodyBytes 截断
  • WebSocket 路径按帧记录,不强制拼装成单一完整响应