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

feishu-doc-cli

v0.1.3

Published

CLI tool to read Feishu Open Platform documentation as Markdown, designed for AI coding agents

Readme

feishu-doc-cli

CLI tool to read Feishu Open Platform documentation as Markdown.

Feishu developer docs live behind a SPA that AI coding agents cannot read directly. This tool exposes the docs through a simple CLI, outputting raw Markdown that agents (and humans) can consume.

Install

npm install -g feishu-doc-cli

Requires Node.js >= 18.

As an AI agent skill

npx skills add m1heng/feishu-doc-cli

Once installed, agents like Claude Code will automatically use feishu-doc when you ask about Feishu/Lark APIs.

Usage

Read a document

feishu-doc read /home/intro

Output:

# 开放平台概述

> Path: /home/intro
> Updated: 2025-11-28

---

(original Markdown content)

Browse the document tree

feishu-doc tree --depth 2
├── 📁 文档首页
│   └── 📄 首页  → /home/index
├── 📁 开发指南
│   ├── 📁 平台简介
│   ├── 📁 开发流程
│   ...

Filter to a subtree:

feishu-doc tree "/uAjLw4CM/uYjL24iN/platform-overveiw" --depth 3

Search documents by title

feishu-doc search "消息"
Found 109 document(s):

  发送消息
    feishu-doc read "/uAjLw4CM/ukTMukTMukTM/reference/im-v1/message/create"

Options

| Option | Description | Default | |--------|-------------|---------| | --lang zh\|en | Language | zh | | --depth <n> | Tree display depth | unlimited |

Following links

Documents contain links in various formats. All of them work directly with feishu-doc read — just copy the href value from any link in the content:

# /ssl:ttdoc/ links (most common in content)
feishu-doc read "/ssl:ttdoc/ukTMukTMukTM/uMTNz4yM1MjLzUzM"

# Full Feishu URLs
feishu-doc read "https://open.feishu.cn/document/client-docs/intro"

# Full Lark URLs
feishu-doc read "https://open.larkoffice.com/document/client-docs/bot-v3/bot-overview"

# /document/ paths
feishu-doc read "/document/client-docs/intro"

# API fullPath (as shown in tree output)
feishu-doc read "/home/intro"

The CLI normalizes all formats internally, including anchors (#section) and query strings. No need to manually convert.

How it works

Feishu Open Platform exposes two public APIs (no authentication required):

| API | Purpose | |-----|---------| | GET /api/tools/docment/directory_list | Full document tree (~925 KB JSON) | | GET /document_portal/v1/document/get_detail?fullPath=<path> | Document content in Markdown |

This CLI is a thin wrapper around these two endpoints.

License

MIT