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-plugin-cfr

v0.1.0

Published

把 cfr 与 rg 注册为 DSH 的 jar 反编译工具。

Readme

dsh-plugin-cfr

把 cfr 与 rg 注册为 DSH 的模型工具,给 Agent 一套完整的 jar 反编译体验:反编译一次、全文检索、按类读取。

cfr.jar 已随插件分发(vendor/cfr.jar,CFR 0.152,MIT 许可证),rg 由 @vscode/ripgrep 依赖提供,系统里只需要有 java。

工具

| 工具 | 作用 | | --- | --- | | jar_decompile | 把整个 jar 反编译到缓存目录,返回目录与 Java 文件数。同一个 jar 只真正编译一次,之后直接命中缓存。 | | jar_search | 在反编译源码里用 ripgrep 做正则检索,返回 文件:行号:内容;jar 未反编译时自动先反编译。 | | jar_read | 按类名读取源码,支持全限定名、内部名与短名,按行返回并可用 offset / limit 翻页;缓存缺失时即时反编译单个类。 |

会话工作目录用于解析相对路径,所以 jar_read { jar: "lib/foo.jar", className: "Bar" } 直接可用。

缓存

反编译结果按 jar 的路径与内容指纹落在 $DSH_HOME/cache/jar-decompile/<jar 名>-<指纹>/,跨会话、跨工作区复用。jar 内容变化会生成新目录,旧目录可随时删除。

配置

默认无需配置。要换 cfr 版本、调整缓存位置或换 ripgrep 时,在 profile 的 cordis.patch.yml 里覆盖 jar-cfr 行的 config:

- id: jar-cfr
  config:
    cacheDir: D:\cache\jar-decompile
    javaPath: java
    cfrJar: D:\tools\cfr-0.152.jar
    rgPath: ''

| 配置项 | 默认值 | 说明 | | --- | --- | --- | | cacheDir | $DSH_HOME/cache/jar-decompile | 反编译缓存根目录 | | javaPath | java | 启动 cfr 用的 java | | cfrJar | 内置 vendor/cfr.jar | 想换版本时给出 cfr.jar 的绝对路径 | | rgPath | 内置 @vscode/ripgrep | 想换 ripgrep 时给出可执行文件路径 |

依赖

  • java:PATH 上可用,或用 javaPath 指定。
  • rg:由 @vscode/ripgrep 依赖提供;依赖缺失时回退到 PATH 上的 rg。
  • cfr.jar:已内置,无需单独安装。

安装

先在插件目录安装依赖:

pnpm install

再在 DSH 里用插件管理安装本目录的 bundle:

plugin_manager action=install_bundle target=<本目录绝对路径>