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

@alexanderjcarter/netq

v0.3.2

Published

netq:面向开发/运维/普通用户的轻量交互式网络排查 CLI

Readme

netq

CI License: MIT Node.js >= 18 Platform

netq 是面向开发者/运维/普通用户的轻量交互式网络排查 CLI:全程选单式交互,不用记 netstat / ping / tracert 等复杂参数,把最常用的网络操作做成「一键可读」的结果页。


功能概览

| 能力 | 说明 | |------|------| | 快速体检 | 公网 IP、DNS、Ping、TCP 端口、HTTP 状态码一键检测 | | 脚本化 | --doctor-json 等输出机器可读 JSON,失败时退出码 1 | | 常用收藏 | 常用目标一键运行,自动保存到 ~/.netq/config.json | | 公网 IP | 快速查询出口 IP(基于 api.ipify.org) | | 本机网卡 | Node 获取 + 可选展示系统命令(ipconfig / ifconfig / ip) | | DNS | lookup / resolve(A / AAAA / CNAME / TXT / MX / NS / SRV) | | Ping / Traceroute | 连通性与路由路径 | | TCP 端口 | 单端口或批量(如 80,443,3000-3010) | | HTTP(S) | 状态码、重定向链、解析 IP | | 监听端口 | 本机 Listening 列表,端口/PID 过滤,Windows 可解析进程名 | | 导出报告 | 结果可导出 TXT/JSON 到 ~/.netq/reports/ |


安装与使用

交互模式(菜单式):

netq

非交互模式(适合脚本 / CI):

netq --public-ip
netq --dns github.com
netq --doctor github.com
netq --doctor-json github.com --ports "80,443,3000-3010"
netq --tcp github.com 443
netq --tcp github.com 443 --json
netq --http https://github.com
netq --http https://github.com --json
netq --listening
netq --listening --json --port 3000

全局安装(发布到 npm 后):

npm i -g netq
netq

说明

  • 设计目标:日常能用得上的核心功能,不堆砌花哨能力。
  • traceroute 在部分 Linux 发行版需单独安装,缺命令时会提示。
  • 配置:~/.netq/config.json(收藏、默认超时、Ping 次数等)。
  • 报告目录:~/.netq/reports/

开源与贡献

| 文档 | 说明 | |------|------| | LICENSE | MIT 许可证 | | SECURITY.md | 安全策略与漏洞报告 | | CONTRIBUTING.md | 贡献指南 | | CHANGELOG.md | 更新记录 | | RELEASE.md | 维护者发布流程 |

页面展示:功能与用法展示页见 docs/index.html