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

@lyhue1991/websearch

v0.1.0

Published

基于 Exa AI 的网页搜索命令行工具,无需 API Key

Readme

@lyhue1991/websearch

基于 Exa AI MCP 端点的网页搜索命令行工具,无需 API Key,开箱即用。

安装

npm install -g @lyhue1991/websearch

或使用 npx:

npx @lyhue1991/websearch "search query"

使用

websearch <query> [options]

参数

| 参数 | 短参数 | 类型 | 默认值 | 说明 | |------|--------|------|--------|------| | --count | -c | number | 8 | 结果数量 (1-20) | | --format | -f | string | json | 输出格式: json / markdown / table | | --type | -t | string | auto | 搜索类型: auto / fast / deep | | --insecure | -k | boolean | false | 跳过 SSL 证书验证 | | --help | -h | - | - | 显示帮助 | | --version | -v | - | - | 显示版本 |

示例

# 基础搜索
websearch "AI news 2025"

# 指定结果数量
websearch "TypeScript tutorial" -c 5

# Markdown 格式输出
websearch "React best practices" -f markdown

# 深度搜索
websearch "machine learning" -c 10 -f table --type deep

# 跳过 SSL 证书验证(适用于代理环境)
websearch "test query" --insecure

输出格式

JSON(默认)

[
  {
    "title": "结果标题",
    "url": "https://example.com",
    "snippet": "内容摘要..."
  }
]

Markdown

## 1. 结果标题
[https://example.com](https://example.com)
内容摘要...

Table

┌────────────────────────────┬──────────────────┬─────────────────────────────┐
│ 标题                       │ URL              │ 摘要                        │
├────────────────────────────┼──────────────────┼─────────────────────────────┤
│ 结果标题                   │ https://...      │ 内容摘要...                 │
└────────────────────────────┴──────────────────┴─────────────────────────────┘

License

MIT