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

@sunjiehao/zyhy-network

v0.2.5

Published

macOS Ethernet and ZYHY-Private Wi-Fi split routing CLI

Readme

ZYHY-Network

当前版本:V0.2.5

默认包含 oa.hq.cmcc、mail.cmhi.chinamobile.com 和 oa.komect.com 的内网分流。 已有安装保留原配置时,执行 zyhy-network add oa.komect.com 即可补充新域名。

让 Mac 同时使用公司网线和 ZYHY-Private Wi-Fi:普通网络走网线,OA、邮箱等内网地址自动走 Wi-Fi。

功能

  • 仅在网线已连接且 Wi-Fi 为 ZYHY-Private 时启用分流
  • 监听 macOS 网络与系统代理变化并自动更新,不再每 5 秒轮询
  • 默认每 300 秒低频校验一次,可修改间隔或关闭
  • 支持 zyhy-network refresh 立即刷新 DNS、路由和分流配置
  • GitHub 与 npm 安装提供相同的 zyhy-network 命令

安装

GitHub:

请按顺序逐行执行下面三条命令。安装完成后不需要再手动运行其他脚本。

git clone https://github.com/lampardrodgers/ZYHY-Network.git
cd ZYHY-Network
sudo ./install.sh

sudo ./install.sh 会安装并启动后台服务。之后,网线、Wi-Fi、IP、网关或 DNS 发生变化时,程序会自动重新判断是否启用内网分流;网络状态没有变化时 不会重复修改系统网络配置。

npm:

npm install -g @sunjiehao/zyhy-network
zyhy-network install

需要修改系统配置时,命令会自动请求管理员权限。

常用命令

zyhy-network status                 # 查看状态
zyhy-network refresh                # 强制刷新
zyhy-network interval               # 查看定时校验设置
zyhy-network interval 600           # 改为每 600 秒校验
zyhy-network interval 0             # 关闭定时校验
zyhy-network add '*.hq.cmcc'        # 添加域名后缀
zyhy-network add 172.21.0.0/16      # 添加网段
zyhy-network uninstall              # 卸载,保留配置

注意

  • 网线和 ZYHY-Private Wi-Fi 需要同时连接;网络变化后会自动恢复分流
  • 系统代理工具重启或切换后,会自动恢复内网域名的代理绕过项
  • Chrome 若无法打开内网,请关闭“设置 → 隐私和安全 → 安全 → 使用安全 DNS”