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

toolfind

v0.1.1

Published

Local CLI tool finder built from Homebrew metadata, man pages, and local command help.

Readme

Local Tool Finder

本地 CLI 工具知识库 / 工具发现器。它扫描本机 Homebrew 已安装工具,读取 brew 描述、实际命令、man 文档和 --help 摘要,生成本地 JSON 缓存,然后支持用中文或英文搜索“我本机有什么命令可以做这件事”。

快速开始

npm install -g .
toolfind scan
toolfind search "json 格式化"
tf "查看目录大小"
toolfind show jq
toolfind examples jq

不想全局安装时,也可以直接运行:

node bin/toolfind.js scan
node bin/toolfind.js search "http 请求"

默认缓存位置:

~/.toolfind/index.json

toolfind 不会在搜索时自动扫描,也不会做实时后台扫描。需要刷新数据时,手动运行:

toolfind scan

扫描过程中会在命令行输出进度日志,包括发现的 formula 数量、每个 formula 的处理状态、跳过原因和缓存写入位置。

可以用 TOOLFIND_HOME 改到其他目录:

TOOLFIND_HOME=/tmp/toolfind toolfind scan

命令

toolfind scan [--all] [--no-man] [--limit N]
toolfind search <query>
toolfind <query>
toolfind show <command>
toolfind examples <command>
toolfind doctor
  • scan: 扫描 brew leaves,生成索引。
  • scan --all: 扫描所有 brew formula,包含依赖。
  • scan --no-man: 跳过 man/help 增强,只用 brew 元数据。
  • search: 搜索本地缓存。
  • show: 查看某个命令的详细索引信息。
  • examples: 查看命令示例。
  • doctor: 检查 brew、man、col 和缓存状态。

设计文档

docs/implementation.md