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

@weibo-ai/weibo-cli

v0.5.11

Published

Open-source CLI for Weibo platform capabilities.

Readme

weibo-cli

Open-source CLI for the Weibo Open Platform — for humans and AI agents.

npm version node license

npm install -g @weibo-ai/weibo-cli

Operate statuses, comments, friendships, search, users, and more from your terminal — with structured JSON / YAML / table output for scripting and agents.

| | | | --- | --- | | Agent-friendly | Machine-readable output; pipe to jq or agents | | Live command catalog | weibo-cli --help syncs with the platform | | OAuth built-in | Browser or device-code login; tokens in OS keychain | | Lightweight | Node.js ≥ 18, no native addons |

Quick start

weibo-cli auth login          # browser OAuth (recommended)
# weibo-cli auth login --device   # SSH / headless

weibo-cli auth whoami
weibo-cli statuses friends_timeline/biz

Authentication

| Command | Description | | --- | --- | | auth login | Browser OAuth | | auth login --device | Device code (non-interactive) | | auth whoami | Verify session | | auth logout | Clear local credentials |

Commands

Pattern: weibo-cli <group> <action> [flags] — actions may contain / (e.g. show_batch/other).

weibo-cli --help
weibo-cli commands list
weibo-cli commands show users show_batch/other

Examples

weibo-cli statuses friends_timeline/biz --count 5
weibo-cli statuses show_batch/biz --ids 1234567890
weibo-cli comments show/biz --id 1234567890
weibo-cli friendships friends/biz
weibo-cli users show/biz
weibo-cli users show_batch/other --screen_name 来去之间
weibo-cli search statuses/limited --q keyword

Global flags: --output json|table|yaml|raw · --token <token> · -h, --help

Platform groups include statuses, comments, friendships, search, users, attitudes, tags, short_url, wbindex, plus built-ins auth, me, commands, config, version, upgrade.

Output

weibo-cli statuses friends_timeline/biz --output table
weibo-cli statuses friends_timeline/biz --output json | jq '.[] | .text'

中文文档

微博开放平台命令行工具 — 终端操作微博、评论、关注、搜索等,适合脚本与 AI Agent。

安装与快速开始

npm install -g @weibo-ai/weibo-cli

weibo-cli auth login          # 浏览器 OAuth(推荐)
# weibo-cli auth login --device   # 非交互 / SSH

weibo-cli auth whoami
weibo-cli statuses friends_timeline/biz

认证

| 命令 | 说明 | | --- | --- | | auth login | 浏览器 OAuth | | auth login --device | 设备码登录 | | auth whoami | 验证会话 | | auth logout | 清除本地凭据 |

命令示例

weibo-cli --help
weibo-cli commands list --group statuses
weibo-cli statuses friends_timeline/biz --count 5
weibo-cli users show_batch/other --screen_name 来去之间
weibo-cli comments to_me/biz

用户查询: 已知昵称用 users show_batch/other --screen_name;按关键词搜微博用 search statuses/limited --q

输出格式: --output json|table|yaml|raw

License

MIT