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

melody-autocli

v0.0.6

Published

Melody RPA CLI Tool

Downloads

97

Readme

Melody CLI

Melody RPA 自动化脚本的命令行开发工具,用于构建、运行和打包 Melody RPA 脚本项目。

功能特性

  • 📱 设备管理 - 连接 Android 设备进行调试
  • 📦 项目构建 - Browserify 打包 + 依赖分析
  • 🎁 MPK 打包 - 生成可安装的 RPA 脚本包
  • 🚀 真机运行 - 快速部署到设备运行测试
  • 🛠️ 任务队列 - 添加任务到设备执行队列

环境要求

| 工具 | 版本要求 | |------|----------| | Node.js | >= 16.0.0 | | npm | >= 8.0.0 | | ADB | >= 1.0.40 |

快速开始

1. 安装

# 方式一:全局安装
npm install -g melody-autocli

# 方式二:本地运行
cd <项目目录>
npm install
npm run build

2. 连接设备

# 列出已连接设备
melody devices

3. 创建项目

# 交互式创建
melody create

# 参数式创建
melody create --template=empty --name=my-script --path=./my-script

4. 构建与运行

# 构建项目
melody build <project-path>

# 打包 MPK
melody package <project-path>

# 构建并运行到设备(默认等待10秒收集日志)
melody run <project-path> --auto

# 运行并等待30秒
melody run <project-path> --auto --wait=30000

# 运行并等待5秒
melody run <project-path> --auto --wait=5000

命令参考

| 命令 | 说明 | 示例 | |------|------|------| | devices | 列出设备 | melody devices | | create | 创建新项目 | melody create --template=empty | | build | 构建项目 | melody build ./my-script | | package | 打包 MPK | melody package ./my-script | | run | 构建并运行 | melody run ./my-script --auto | | run --wait | 运行并等待日志 | melody run ./my-script --auto --wait=30000 | | stop | 停止运行 | melody stop --device=xxx | | addTask | 添加任务 | melody addTask ./my-script --mode=last | | uninstall | 卸载脚本 | melody uninstall ./my-script | | dump | 输出窗口信息 | melody dump --device=xxx |

项目结构

melody-cli/
├── src/                  # 源代码
│   ├── commands/        # 命令实现
│   ├── connect/         # 设备连接
│   ├── flows/           # 业务流程
│   ├── plugin-utils/   # 工具类
│   └── utils/          # 辅助工具
├── dist/                # 编译输出
├── icons/               # 证书图片
├── templates/           # 项目模板
├── docs/                # 文档
│   ├── guide/          # 开发指南
│   ├── bug/            # Bug修复记录
│   └── experience/     # 开发经验
└── package.json

文档指南

常见问题

Q: 运行提示"小应用文件读取失败"

A: 检查项目路径是否包含特殊字符或中文,尝试将项目移到纯英文路径。

Q: 设备连接失败

A: 确保手机已开启开发者模式中的 USB 调试,并授权此电脑。

Q: 脚本运行报错

A: 使用 melody dump --device=xxx 查看手机当前页面结构,检查脚本逻辑。

相关链接

注意:以下为本地关联项目,请根据实际路径访问


Melody CLI - RPA Development Tool