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

openclaw-sessions-analyze

v0.0.1

Published

OpenClaw Sessions Analyzer CLI

Downloads

14

Readme

openclaw-sessions-analyze

本地查看 OpenClaw 代理会话目录(sessions.json*.jsonl)的小型 CLI:启动后在本机打开浏览器,左侧为会话文件列表,右侧为转录内容。

要求

  • Node.js 18+

安装

npm install -g openclaw-sessions-analyze

使用

osa
  • 默认在 127.0.0.1 上监听端口(默认 47890;若被占用则顺延)。可通过环境变量 PORT 指定起始端口。
  • 启动后会尝试用系统默认浏览器打开页面。
  • 默认会话目录为当前用户下的 ~/.openclaw/agents/main/sessions(Windows 即 %USERPROFILE%\.openclaw\agents\main\sessions)。可在页面顶部修改路径并「保存」;路径会缓存在浏览器本地(localStorage)。

不全局安装时:

npx openclaw-sessions-analyze

macOS 说明

系统自带名为 osa 的工具(AppleScript)。若与全局安装的命令冲突,请使用:

npx openclaw-sessions-analyze

或:

node $(npm root -g)/openclaw-sessions-analyze/dist/cli.js

(路径以本机 npm 全局目录为准。)

从源码运行

npm install
npm run build
node dist/cli.js

测试

npm test

使用 Vitest,覆盖 sessions 模块与 HTTP API 的主要路径。

API(本地)

| 路径 | 说明 | | ----------------------------------------- | ---------------------------------------------------------------------- | | GET /api/config | 返回默认会话目录 defaultRoot | | GET /api/list?root= | 列出会话文件;省略 root 时用默认目录 | | GET /api/session/:sessionId?root=&file= | 读取转录;file 为目录内文件名,用于同一 sessionId 多文件时精确选中 |

许可证

MIT