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

cc-rtk

v0.3.4

Published

Token optimization + statusLine for Claude Code — intercepts Bash commands, reduces output 60-90%

Readme

claude-rtk ⚡

English

GitHub stars ⭐ 去 GitHub 点个 Star 吧!

Token 优化 + statusLine 统计。 每条 Bash 命令输出节省 60–90%,还能在状态栏看到实时数据。

[rtk[active]] | cmd:42 | -252k | ~75%

配合 cc-statusline 食用更佳 —— 扔进盒子里,和 claude-hud 以及其他插件和平共处。

它能干嘛

一个插件,两件事:

1. Token 压缩

每条 Bash 命令都被 rtk 拦截压缩后才发给 LLM。那些一堆乱七八糟的输出?没了。

| 命令 | Token 节省 | |------|:----------:| | git status/diff | 75-80% | | grep/rg | 80% | | cargo/npm test 输出 | 90% | | ls/cat | 70-80% |

2. 状态栏实时统计

嗯,它会计数。拦截了多少命令、省了多少 token —— 就在底部状态栏里。

[rtk[active]] | cmd:127 | -762k | ~75%

蓝色 rtk,绿色 active,数据部分用默认色。不花哨。

可以单独用,也可以作为 cc-statusline 的链来源 —— 聚合器会自动识别。

前提条件

curl -fsSL https://rtk.sh/install.sh | bash
rtk --version

安装

两种方式,选一种:

方式一:插件安装(推荐)

/plugin marketplace add kira4094/cc-rtk
/plugin install cc-rtk
/reload-plugins

重启 Claude Code,搞定。

方式二:npm 安装

npm install -g cc-rtk
cc-rtk install

重要:装完后必须重启 Claude Code,插件才会生效。

卸载

插件方式卸载

/plugin uninstall cc-rtk
/reload-plugins

npm 方式卸载

cc-rtk uninstall --purge   # 卸载插件 + 删除数据
npm uninstall -g cc-rtk

重启 Claude Code。

看效果

配合 cc-statusline 看完整效果 —— claude-hud、cc-rtk、还有你扔进去的其他东西,全部在一条状态栏里。

[↪▨] [deepseek-v4-flash[1M]] ██████░░░░ 55% | git:(master*) | tok: ...
 ⏵⏵ accept edits on (shift+tab to cycle)
[rtk[active]] | cmd:127 | -762k | ~75%

协议

MIT。基于 rtk (Apache 2.0) 的插件封装。