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

@wmjs/cli

v0.1.1

Published

wm 控制面 CLI + NestJS daemon(双入口共享 DI)

Readme

@wmjs/cli

wm 控制面命令行工具:一个命令在后台拉起常驻 daemon(NestJS HTTP + WebSocket),托管 wm-web / wm-automation 两个 SPA 控制台,并通过 /api/* 暴露能力。CLI 与 daemon 双入口、共享同一套依赖注入。

环境要求

  • Node.js >= 22(ESM-first,daemon 产物为 ES2022 bundle)

安装

npm i -g @wmjs/cli
# 或
pnpm add -g @wmjs/cli

安装后获得全局 wm 命令。

快速开始

wm start          # 后台启动 daemon(默认 :8650),并打开控制台
wm logs -f        # 跟随查看 daemon 日志
wm restart        # 重启
wm stop           # 停止

命令一览

| 命令 | 说明 | 常用选项 | | --- | --- | --- | | wm start | 后台启动 daemon(HTTP + WS),ready 后托管 SPA | -p, --port <n>(默认 8650WM_PORT)、--no-open--timeout <ms>--dry-run | | wm stop | 停止后台 daemon | --grace <ms>(SIGTERM→SIGKILL 窗口,默认 10000)、--force--dry-run | | wm restart | 重启 daemon(默认 stop+start) | -p, --port <n>--graceful(蓝绿重启)、--timeout <ms>--dry-run | | wm logs | 查看日志(三桶:cli / server / daemon) | -s, --source <bucket>(默认 server)、-n, --lines <n>(默认 100)、-f, --follow--json |

wm logs 在 TTY 下默认 pretty 渲染;管道/重定向或加 --json 时输出原始 JSON 行。

用户态目录 ~/.wm/

daemon 运行期的所有状态都落在用户家目录下的 ~/.wm/,不会污染当前工程:

  • ~/.wm/state/ — PID file 等运行时状态
  • ~/.wm/logs/ — 三桶日志(cli / server / daemon
  • ~/.wm/config/ — 外部服务凭据(如 translate.json / ai.json,建议 0600

daemon 默认仅监听 127.0.0.1:8650,凭据走用户态独立文件、不入包、响应与日志中脱敏。

许可证

ISC