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

dsh-log-viewer

v0.1.2

Published

DSH 日志分析插件:选择本机 Java 服务文本日志,分析 ERROR/异常堆栈,提供 AI 工具与 Web 仪表盘

Readme

dsh-log-viewer — Java 日志分析插件

npm version DSH Plugin

选择本机 Java 服务文本日志,看异常统计,并可一键 AI 研判。
适用于 Spring Boot / Logback / Log4j 常见文本格式,自动识别异常类名与堆栈(含 Caused by)。

安装

方式一:一键安装(推荐)

dsh plugin --profile web add dsh-log-viewer

方式二:从 GitHub 安装

dsh plugin --profile web add github:CodeDice1024/dsh-log-viewer

方式三:本地开发测试

cd D:\deepseek\deepseek-harness
pnpm dsh web --patch ./scratch-plugin/dsh-log-viewer/cordis.yml --no-open

使用

  1. 打开 http://127.0.0.1:3080 → 右下角 「日志分析」
  2. 或直接访问 http://127.0.0.1:3080/log-viewer
  3. 选择 .log 文件 → 查看仪表盘 → 点击 「AI 分析异常」
  4. 在对话中也可直接说:分析一下 test.log

能力

| 能力 | 说明 | |------|------| | 📊 Web 仪表盘 | 紧凑选文件、日志级别分布、异常统计、时间线 | | 🤖 AI 分析 | /log-viewer/api/ai-analyze,自动调用默认模型 | | 🔧 AI 工具 | analyze_log / search_log / get_exceptions 三个对话工具 |

工具说明

| 工具名 | 功能 | |--------|------| | analyze_log | 分析日志文件,返回汇总统计报告 | | search_log | 按关键字搜索日志条目 | | get_exceptions | 提取异常和堆栈追踪信息 |

日志格式注意

支持 Logger: 69 -(冒号后有空格)、线程名带逗号、切面 [File.java : n] [AUTO_WRITE] 等线上常见写法。

开发

git clone https://github.com/CodeDice1024/dsh-log-viewer.git
cd dsh-log-viewer
# 在 DSH 源码目录中测试
pnpm dsh web --patch ./cordis.yml