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

@hangox/cc-search

v1.1.2

Published

AI 搜索命令行工具 - 支持 DeepSeek 联网搜索

Readme

Gemini CLI 搜索工具

使用 Gemini AI 模型进行智能搜索的命令行工具。

安装

从源码安装

# 在项目根目录
pnpm install
pnpm build

# 链接到全局
cd packages/cli
pnpm link --global

使用

基础搜索

gemini-search "TypeScript 最新特性"

带选项的搜索

# 指定模型
gemini-search "React 性能优化" --model gemini-2.5-flash-lite

# 设置最大 token 数
gemini-search "Vue3 教程" --max-tokens 4096

# 添加搜索上下文
gemini-search "Hooks 用法" --context "React 前端开发"

使用子命令

gemini-search search "Go 语言并发编程"

选项

| 选项 | 简写 | 说明 | 默认值 | |------|------|------|--------| | --model <model> | -m | 指定 Gemini 模型 | gemini-2.5-flash-lite | | --max-tokens <number> | -t | 最大 token 数 | 2048 | | --context <context> | -c | 搜索上下文 | - | | --version | | 显示版本号 | - | | --help | -h | 显示帮助信息 | - |

环境变量

优先从环境变量读取配置:

export ANTHROPIC_BASE_URL="https://aigw.ds.163.com"
export ANTHROPIC_AUTH_TOKEN="your-token-here"

如果未设置环境变量,CLI 会交互式询问用户输入。

示例

技术搜索

gemini-search "Rust 所有权系统"
gemini-search "Kubernetes 部署最佳实践"
gemini-search "GraphQL vs REST"

带上下文的搜索

gemini-search "性能优化" --context "Node.js 后端开发"
gemini-search "状态管理" --context "React 大型应用"

长文本搜索

gemini-search "深入解析 Docker 容器技术" --max-tokens 4096

输出格式

搜索成功后会显示:

  • 搜索结果内容
  • 格式化的分隔线
  • 彩色输出增强可读性

错误处理

  • API 请求失败会显示详细错误信息
  • 环境变量缺失会提示用户输入
  • 网络错误会自动捕获并提示

开发

# 开发模式(watch)
pnpm dev

# 构建
pnpm build

# 清理
pnpm clean

许可证

MIT