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

@byrdocs/cli

v0.3.1

Published

Agent-oriented BYRDocs search, download, and contribution CLI

Readme

BYRDocs CLI

面向 Agent 的 BYRDocs 搜索、下载和贡献命令行工具,用于把登录、搜索、 下载、上传和 metadata 等步骤做成稳定的脚本接口。

安装

临时运行:

npx -y @byrdocs/cli help

长期使用:

npm install -g @byrdocs/cli
byrdocs help

安装 Skill:

npx skills add byrdocs/byrdocs-cli-envolved

开发

npm install
npm run build
npm test

构建后可以直接运行本地 CLI:

node dist/cli.js help
node dist/cli.js doctor
node dist/cli.js auth login
node dist/cli.js upload ./file.pdf
node dist/cli.js download <file-ref> --output ./file.pdf
node dist/cli.js meta schema
node dist/cli.js search "keyword"   # 简单 fallback;agent 搜索优先读取线上搜索契约

常用命令:

  • doctor:检查本地环境和 BYRDocs 服务连通性。
  • auth login|wait|status|logout:管理登录会话和本地 token。
  • upload <file.pdf|file.zip>:上传文件并返回 md5/key。
  • download <file-ref> --output <path>:下载文件到本地路径。
  • meta schema|init|validate|preview:生成、校验和预览 metadata YAML。
  • search <query>:简单调用 BYRDocs 搜索接口。Agent 场景先按 skill 的 references/upstream.md 读取 https://search.byrdocs.org/llms.txt,优先使用搜索 MCP 或 HTTP API。

加 --json 可以得到机器可读输出。--api-base 和 --search-url 可用于 测试时覆盖默认 BYRDocs 接口地址。

包信息

npm 包会暴露 byrdocs 命令,需要 Node.js 20 或更高版本。

发布由 GitHub Actions 在 v*.*.* tag 上触发。发布前用 npm 更新版本, 再把版本提交和 tag 一起推送:

npm version patch
git push origin master --follow-tags