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

@node-red-runlab/node-red-runlab

v0.1.7

Published

RunLab Node-RED 自定义节点插件 - 用于协议指令执行和日志上报

Downloads

118

Readme

@node-red-runlab/node-red-runlab

蚂蚁物联公司 (AntIOT) IOT 自动化测试专用自定义节点

本项目是蚂蚁物联公司为 IOT 自动化测试场景定制的 Node-RED 节点插件。它提供了与蚂蚁物联 SDK 深度集成的指令执行、协议适配及执行结果断言功能。

核心功能

  • 可视化指令构建:支持通过 UI 界面动态选择协议(BMS、电源、充电器、显示器等)并生成指令。
  • 自动化测试断言:内置断言 DSL 引擎,支持对设备返回的 ACK 数据进行多维度校验(原子校验、逻辑组合、条件校验)。
  • 高性能并行执行:支持多端口并行发送指令,大幅提升测试效率。
  • 执行链路追踪:详细记录每次执行的 Agent 状态、设备回复、执行耗时等元数据,并支持非阻塞日志上报。

包含节点

1. 构建指令 (ant-command)

用于配置和发送协议指令。

  • 支持动态加载蚂蚁物联协议 SDK。
  • 提供可视化参数输入与 HEX 预览。
  • 集成断言配置功能。

2. 流程切换 (flow-switcher)

用于在自动化测试链路中控制流程的状态转换。

安装

在 Node-RED 的用户目录(通常是 ~/.node-red)下执行:

npm install @node-red-runlab/node-red-runlab

快速上手

  1. 拖入 构建指令 节点。
  2. 在配置界面选择 协议类型 和具体的 协议版本
  3. 可视化构建 标签页选择要执行的命令。
  4. 如需校验结果,勾选 等待 ACK 回复 并在 Payload 标签页配置断言 DSL。

断言 DSL 示例

{
  "if": { "path": "voltage", "operator": ">", "expected": 3.6 },
  "then": { "path": "status", "operator": "==", "expected": "normal" },
  "else": { "path": "error_code", "operator": "exists" }
}

许可证

MIT License (c) 蚂蚁物联