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-md-exporter

v0.0.0-alpha.0

Published

Discover linked Feishu documents and export markdown.

Readme

feishu-md-exporter

npm version bundle JSDocs License

Usage

pnpm start --url "https://my.feishu.cn/docx/TEST_DOCX_TOKEN_001" \
  --app-id "<your-app-id>" \
  --app-secret "<your-app-secret>"

This command recursively discovers linked Feishu documents starting from --url, writes a manifest JSON to ./output/manifest.json, and exports markdown files into ./output.

Options

  • --url <url>: root document url (required)
  • --app-id <appId>: Feishu app id (required unless FEISHU_APP_ID is set)
  • --app-secret <appSecret>: Feishu app secret (required unless FEISHU_APP_SECRET is set)
  • --output <path>: output directory for manifest + markdown (default output)
  • --manifest <name>: manifest file name under output directory (default manifest.json)
  • --max-depth <n>: max recursive depth (default 10)
  • --max-docs <n>: max discovered docs (default 1000)
  • --page-size <n>: API page size (default 200, range 1-500)
  • --debug: print detailed HTTP/debug logs to stderr

Configuration

Config file is supported via unconfig:

  • feishu-md-exporter.config.ts

Example:

import { defineConfig } from 'feishu-md-exporter'

export default defineConfig({
  url: 'https://my.feishu.cn/docx/TEST_DOCX_TOKEN_001',
  maxDepth: 10,
  maxDocs: 1000,
  pageSize: 200,
})

Environment variables are also supported:

  • FEISHU_APP_ID
  • FEISHU_APP_SECRET
  • FEISHU_PAGE_SIZE
  • FEISHU_DEBUG

.env and .env.local in cwd are loaded automatically.

Where to find App ID / App Secret

  1. Open 飞书开放平台
  2. Go to your app in 开发者后台 (self-built app)
  3. Open 凭证与基础信息 (or similarly named credentials page)
  4. Copy App ID and App Secret

License

MIT License © jinghaihan