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

@liustack/modsearch

v0.1.0

Published

Provider-extensible CLI search bridge for LLM agent workflows

Readme

ModSearch

面向 AI Agent 的搜索外挂 CLI,用于把查询词转换成结构化网页搜索证据,补齐 LLM 工作流中的搜索能力缺口。

特性

  • 面向 Agent 场景,提供稳定可复用的外部搜索上下文
  • Provider 可扩展架构(v1 默认提供 gemini-cli
  • 输出结构化 JSON(summaryitemsuncertainty
  • 适合作为 Agent Skill 工具被 Claude Code / Codex 等调用
  • 单一职责:只做搜索,不做视觉解析、不做页面抓取

安装

npm install -g @liustack/modsearch

或直接用 npx

npx @liustack/modsearch [options]

如果使用默认 provider,请先安装并认证 Gemini CLI:

npm install -g @google/gemini-cli
gemini

用法

# 标准输出 JSON
modsearch -q "OpenAI latest news"

# 落盘到文件
modsearch -q "OpenAI latest news" -o search.json

# 指定 provider、模型和结果数量
modsearch -q "TypeScript 5.9 release notes" -p gemini-cli -m gemini-2.5-flash --max-results 6

参数

  • -q, --query <text> 查询词(必填)
  • -o, --output <path> 可选输出 JSON 路径
  • -p, --provider <name> 搜索 provider 名称(默认 gemini-cli
  • -m, --model <name> 模型名(provider 相关)
  • --prompt <text> 额外搜索约束
  • --max-results <n> 最大结果条数(默认 8
  • --timeout <ms> 超时毫秒(默认 180000
  • --provider-bin <path> provider 可执行路径
  • --workdir <path> provider 命令运行目录

Provider 机制

ModSearch 从设计上支持 provider 扩展。
gemini-cli 只是 v1 的默认底层搜索引擎,后续可以接入任何具备搜索能力的模型或服务商。

Agent Skill

说明

  • modsearch 只做搜索能力。
  • modlens / modfetch 是其他独立项目,不在本仓库实现。

免责声明

本项目仅供个人学习与实验使用,请勿用于商业用途。

License

MIT