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

clash-verge-tui-control

v0.1.4

Published

一个 TypeScript 终端 TUI,用于方便在只有 ssh 或 TTY 的情况下控制桌面端 Clash Verge Rev 切换节点。

Readme

Clash Verge TUI Control

一个 TypeScript 终端 TUI,用于方便你只有 ssh 或 TTY 的情况下控制桌面端 Clash Verge Rev 切换节点。

本程序不是基于 Mihomo 的 TUI 客户端,而是用于在你已经安装了其他 Mihomo GUI 的情况下提供多一种应急控制方式。

运行效果

支持以下功能:

  • 查看策略组可选节点
  • 显示每个节点的延迟
  • 切换节点
  • 一键切到 DIRECT(直连)

默认连接方式

默认使用 auto 自动发现:

  • 先尝试 Unix Socket:/tmp/verge/verge-mihomo.sock
  • 失败后再尝试 HTTP:http://127.0.0.1:9090
  • 默认策略组:🚀 节点选择

Clash Verge Rev 设置

如果要开启 HTTP 控制器(external-controller),需要配置:

external-controller: 127.0.0.1:9090
secret: your-secret

然后运行时设置:

CLASH_BASE_URL=http://127.0.0.1:9090 CLASH_SECRET=your-secret npm run dev

构建

npm run build

安装与运行

npm i -g clash-verge-tui-control
clashtui

按键

  • ↑(j) / ↓(k):选择节点
  • Enter:切换到选中节点
  • r:刷新节点并测速(启动时默认不测速)
  • d:切换到 DIRECT
  • esc(q):退出

环境变量

  • CLASH_UNIX_SOCKET:Unix Socket 路径(默认 /tmp/verge/verge-mihomo.sock
  • CLASH_BASE_URL:HTTP 控制器地址(默认 http://127.0.0.1:9090
  • CLASH_SECRET:如果设置了 API secret,填这里
  • CLASH_SELECTOR:策略组名称(默认 🚀 节点选择
  • CLASH_TEST_URL:测速 URL(默认 https://www.gstatic.com/generate_204
  • CLASH_TIMEOUT_MS:测速超时毫秒(默认 5000
  • CLASH_CONCURRENCY:并发测速数量(默认 8

示例

命令行参数

  • --transport auto|unix|http:强制指定传输方式(默认 auto
  • --socket-path /path/to.sock:覆盖 Unix Socket 路径
  • --base-url http://127.0.0.1:9090:覆盖 HTTP 控制器地址
  • --secret your-secret:覆盖 API secret

示例

强制用 HTTP:

clashtui --transport http --base-url http://127.0.0.1:9090 --secret your-secret

强制用 Unix Socket:

clashtui --transport unix --socket-path /tmp/verge/verge-mihomo.sock