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

deepwiki-cli

v1.2.1

Published

A CLI tool for retrieving GitHub repository documentation and knowledge via DeepWiki MCP SSE protocol

Readme

DeepWiki

一个强大的 CLI 工具,通过 DeepWiki MCP SSE 协议获取 GitHub 仓库的文档和知识。

功能

  • 🔍 探索仓库结构: 查看所有可用的文档主题
  • 📖 阅读文档内容: 访问详细的 wiki 内容
  • 💬 提问: 使用自然语言查询仓库知识

安装

npm install -g deepwiki-cli

或使用 pnpm:

pnpm add -g deepwiki-cli

使用方法

1. 获取仓库文档结构

deepwiki read_wiki_structure --repoName "owner/repo"
# 或使用简短别名
dw rws -r "owner/repo"

2. 查看具体文档内容

deepwiki read_wiki_contents --repoName "owner/repo" --topic "topic_name"
# 或使用简短别名
dw rwc -r "owner/repo" -t "topic_name"

3. 针对仓库提问

deepwiki ask_question --repoName "owner/repo" --question "你的问题"
# 或使用简短别名
dw aq -r "owner/repo" -q "你的问题"

前置条件

  • Node.js 14 或更高版本
  • DeepWiki MCP 服务器访问权限
  • 有效的 GitHub 仓库路径

示例

OpenAI Node.js SDK

# 探索仓库结构
dw rws -r "openai/openai-node"

# 阅读安装指南
dw rwc -r "openai/openai-node" -t "Installation and Setup"

# 询问认证方法
dw aq -r "openai/openai-node" -q "如何认证?"

Linux 内核

# 探索 Linux 内核文档
dw rws -r "torvalds/linux"

# 询问 Linux 启动流程
dw aq -r "torvalds/linux" -q "Linux 是如何启动的?"

# 询问内核初始化
dw aq -r "torvalds/linux" -q "Linux 内核在启动过程中是如何初始化的?"

React

# 探索 React 文档
dw rws -r "facebook/react"

# 询问 React Hooks
dw aq -r "facebook/react" -q "useEffect 和 useState 是如何工作的?"

命令别名

CLI 为所有命令提供了便捷的别名:

| 完整命令 | 简短别名 | 说明 | |---------|---------|------| | read_wiki_structure | rws, str | 获取仓库文档结构 | | read_wiki_contents | rwc, cont | 查看具体文档内容 | | ask_question | aq, ask | 针对仓库提问 |

参数简写

| 完整参数 | 简短形式 | 说明 | |---------|---------|------| | --repoName | -r, --repo | 仓库名称 (例如: "owner/repo") | | --topic | -t | 文档主题名称 | | --question | -q | 关于仓库的问题 | | --lang | -l | 语言 (en|zh, default: auto) | | --help | -h | 显示帮助 |

依赖

  • axios - HTTP 客户端
  • eventsource - SSE 协议支持

许可证

ISC

贡献

欢迎贡献!请随时提交 Pull Request。

仓库

https://github.com/Dwsy/deepwiki-skills


English Documentation