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

huozige-web-app-cli

v2.0.0

Published

TypeScript rewrite of Forguncy MQTT command CLI.

Readme

huozige-web-app-cli

基于 TypeScript 重写的 Forguncy Web App MQTT CLI,严格保留原 Go 版本的命令定义、参数名和 MQTT 消息字段。

安装

npm install huozige-web-app-cli

安装后可以继续使用原来的命令名:

fgc-web status

也可以直接用包名对应的可执行文件:

huozige-web-app-cli status

配置

默认读取当前目录下的 config.json,也支持用 -c--config 指定。

示例配置:

{
  "mqttBroker": "tcp://localhost:1883",
  "username": "your-username",
  "password": "your-password",
  "requestTopic": "forguncy/req",
  "responseTopic": "forguncy/res",
  "timeout": 200
}

命令

huozige-web-app-cli servercommand [applicationName] [commandName] [method] [jsonBody] -u [userName] -s [sessionId] -a [agentName]
huozige-web-app-cli binding [applicationName] [commandName] [method] [jsonBody] -u [userName] -s [sessionId] -a [agentName]
huozige-web-app-cli status

参数说明

  • applicationName: 应用名称
  • commandName: 命令名称
  • method: HTTP 方法
  • jsonBody: JSON 格式参数
  • -u, --userName: 用户名
  • -s, --sessionId: 会话 ID
  • -a, --agentName: 代理名
  • -c, --config: 本地 JSON 配置文件路径,默认 config.json

使用示例

1. servercommand POST

huozige-web-app-cli servercommand test getData POST '{"name":"张三"}' -u hanzhou -s 4 -a main

2. servercommand GET

huozige-web-app-cli servercommand test search GET '{"userId":"123"}' -u hanzhou -s 4 -a main

3. binding

$json = '{"CommandId":"83383bb0-1849-4feb-bee9-e538a6ca8c76","Params":{},"options":{"distinct":true}}'
huozige-web-app-cli binding test CalcBindingDataSource POST $json -u Administrator -s 5 -a main

4. 查看配置状态

huozige-web-app-cli status
huozige-web-app-cli --config .\dev.config.json status

兼容性说明

  • 保留 servercommandbindingstatus 三个命令。
  • binding 允许 GetTableDataWithOffset(TableBinding)、GetComboBindingOptions(CandidatesBinding)。
  • MQTT 请求消息仍然使用 traceIdcommanduserNamesessionIdagentNameparameterstimestamp 这些字段。
  • 响应既支持包裹格式 { code, message, data },也支持直接返回原始 JSON。