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

lpm-curl

v0.1.0

Published

CLI tool to capture Meego API requests as curl commands

Readme

lpm-curl

🚀 一键捕获 Meego API 请求并转换为 curl 命令

功能

  • 自动启动浏览器,访问 Meego 平台
  • 引导用户完成 Feishu/Lark 扫码登录
  • 自动抓取指定的 API 请求
  • 将请求转换为可直接使用的 curl 命令输出

快速安装(推荐)

方式一:一行命令安装(自动检测/安装 Node.js)

# 使用默认 host (https://project.feishu.cn)
curl -fsSL https://unpkg.com/[email protected]/install.sh | bash

# 安装时指定默认 host(后续运行无需再指定)
curl -fsSL https://unpkg.com/[email protected]/install.sh | bash -s -- --host=https://meego.larkoffice.com

安装后使用:

lpm-curl                    # 使用安装时指定的默认 host
lpm-curl --host=https://other.com  # 临时覆盖 host

或者直接使用 npx(需要 Node.js 已安装):

# 使用默认 host
npx lpm-curl

# 指定 host
npx lpm-curl --host=https://meego.larkoffice.com

安装脚本会自动:

  • 检测 Node.js 版本,如果不符合要求则自动安装
  • 全局安装 lpm-curl
  • 创建可执行命令

方式二:使用 npx(无需安装)

npx lpm-curl

方式三:手动安装

# 全局安装
npm install -g lpm-curl

# 或使用本地版本
git clone <repo>
cd lpm-curl
npm install
npm link  # 创建全局链接

使用方法

# 基本用法
lpm-curl                                              # 使用默认 host (https://project.feishu.cn)
lpm-curl --host=https://meego.larkoffice.com           # 指定自定义 host

# 运行模式
lpm-curl                                              # 有头模式(需要 GUI,可扫码登录)
lpm-curl --headless                                   # 无头模式(适合服务器)
HEADLESS=true lpm-curl

# 组合使用
lpm-curl --host=https://meego.larkoffice.com --headless

工作流程

  1. 启动浏览器:自动查找系统中的 Chrome/Chromium,如未找到则使用 Playwright 内置浏览器
  2. 访问 Meego:打开 https://meego.larkoffice.com
  3. 等待登录
    • 首次使用:跳转到 Feishu 登录页,用户扫码登录
    • 后续使用:自动复用已保存的登录状态
  4. 抓取 API:登录成功后,自动打开 OpenApp 列表页,拦截目标 API 请求
  5. 输出 curl:将捕获的请求转换为 curl 命令并输出到控制台

项目结构

lpm-curl/
├── bin/lpm-curl.js      # CLI 入口
├── src/index.js          # 核心逻辑
├── install.sh            # 一键安装脚本
├── package.json
└── README.md

系统要求

  • Node.js: >= 16.0.0
  • 操作系统: macOS, Linux, Windows (WSL)
  • 浏览器: Chrome, Chromium 或 Playwright 内置浏览器

常见问题

Q: 首次运行需要登录吗?

A: 是的,首次运行需要扫码登录 Feishu。登录状态会保存在本地,后续运行会自动复用。

Q: 支持 headless 模式吗?

A: 支持,添加 --headless 参数或使用 HEADLESS=true 环境变量。

Q: 如何更新到最新版本?

A: 运行 npm update -g lpm-curl 或重新执行安装脚本。

License

MIT