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

@shing19/feishu-wechat-cli

v0.1.0

Published

CLI for publishing Feishu docs to WeChat Official Account drafts

Downloads

127

Readme

@shing19/feishu-wechat-cli

把飞书文档一键发布到微信公众号草稿箱的 CLI。

安装:

npm install -g @shing19/feishu-wechat-cli

支持:

  • 从飞书 wiki/docx 抓取 Markdown
  • 自动下载飞书正文图片并上传到微信素材库
  • 发布到微信公众号草稿箱
  • 可选自动生成封面图

安装

1. 安装项目依赖

pnpm install
pnpm build

2. 安装飞书官方 CLI(必需)

本项目依赖飞书官方开源工具 larksuite/cli 来抓取文档和下载图片。

仓库:https://github.com/larksuite/cli

安装方式示例:

npm install -g @larksuiteoapi/cli
lark-cli --help

如果 lark-cli --help 能正常输出,说明依赖已安装完成。

环境变量

复制一份本地配置:

cp .env.example .env

最少需要配置:

WECHAT_APP_ID=your_wechat_appid
WECHAT_APP_SECRET=your_wechat_appsecret

如果你要用自动封面:

IMAGE_API_KEY=...
IMAGE_BASE_URL=...

用法

1. 从飞书直接发布

feishu-wechat publish \
  --feishu "https://my.feishu.cn/wiki/xxxxxxxx" \
  --article-author "Your Name"

2. 从飞书直接发布,并自动生成封面

feishu-wechat publish \
  --feishu "https://my.feishu.cn/wiki/xxxxxxxx" \
  --auto-cover

3. 发布本地 Markdown

feishu-wechat publish -f ./article.md

开源配置设计

本项目只读取当前目录下的 .env

微信配置只保留一套命名:

  • WECHAT_APP_ID
  • WECHAT_APP_SECRET

飞书抓取与图片下载默认内建使用 lark-cli,不做额外 provider 配置。 封面生成也内建在本仓库 scripts/generate-cover.py 中,只通过环境变量提供模型访问配置:

  • IMAGE_API_KEY
  • IMAGE_BASE_URL

注意事项

  • 当前自动封面依赖外部生图服务,可能遇到 429;建议后续补重试和降级策略