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

@moonwork-labs/cli

v0.0.15

Published

MoonWork CLI for content generation, local runtime orchestration, and agent automation.

Readme

MoonWork CLI

MoonWork 是面向跨境电商内容生成和浏览器环境管理的命令行工具。

核心能力

  • 生成商品文案、商品图片和商品视频。
  • 为不同店铺或业务场景创建相互隔离的浏览器 Profile。
  • 使用指定代理和浏览器身份配置启动 Chrome 兼容浏览器。
  • 在本机重启浏览器后继续复用 Profile、登录态和浏览器环境。
  • 为脚本、CI 和 Agent 提供稳定的 JSON 输出。

MoonWork 负责准备浏览器环境,再交给用户或 Agent 操作页面。它不是 Playwright、Puppeteer 等页面自动化框架的替代品。

浏览器相关命令不需要登录 MoonWork;内容生成、任务管理和结果获取需要先登录。

安装

npm install -g @moonwork-labs/cli

验证安装:

moonwork version
moonwork --help

需要 Node.js 18 或更高版本。

快速开始

启动可复用浏览器环境——无需登录

moonwork browser launch store-1-device-1 \
  --display-name "美国店铺 A" \
  --browser-config ./browser-config.json \
  --proxy-config ./proxy-config.json \
  --start-page https://example.com \
  --json

同一个本地浏览器环境应持续使用同一个 Profile ID。--display-name 只是展示名称,不会替代稳定的 Profile ID。

生成商品内容——需要登录

先完成登录:

moonwork login --email [email protected] --password-stdin
moonwork whoami

在 CI 或 Agent 环境中可以使用 Access Token:

moonwork login --token-stdin
moonwork generate-copy \
  --product-name "保温旅行杯" \
  --product-image ./product.png \
  --platform AMZ \
  --language English

命令入口

| 能力 | 主要命令 | | --- | --- | | 内容生成认证 | moonwork login、whoami、logout | | 内容生成——需要登录 | generate-copy、generate-image、generate-video | | 任务与结果——需要登录 | jobs、job、results、cancel | | 代理资源——无需登录 | proxy list、show、check、soak | | 浏览器 Profile——无需登录 | browser profile ... | | 浏览器会话——无需登录 | browser launch、browser session ... | | 浏览器环境诊断——无需登录 | browser doctor、runtime health |

执行 moonwork --help 可以查看当前版本的命令摘要。

JSON 输出

脚本和集成程序建议统一使用 --json。命令返回固定结构:

{
  "ok": true,
  "data": {},
  "error": null,
  "meta": null
}

执行失败时退出码为 1,详细错误位于 error。

查看帮助

通过内置帮助查看当前安装版本支持的命令:

moonwork --help

能力边界

浏览器 Profile 以同一台本地设备上的稳定复用为目标。仅把配置文件复制到另一台电脑,不保证获得完全相同的浏览器身份或登录状态。

MoonWork 可以减少环境混用和配置错误,但不承诺第三方平台一定不会审核、关联、限制或封禁账号。