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

@mtt-open/mttsports-cli

v0.1.2

Published

mttsports CLI entry package.

Readme

@mtt-open/mttsports-cli

@mtt-open/mttsports-climttsports-cli 的 npm 主包。

它通过 optionalDependencies 依赖当前平台对应的 binary 子包,并统一暴露 mttsports 命令。

同时,这个 npm 包还内置了 OpenClaw fallback watcher 启动器:

  • mttsports_watch_in_bg

Install

npm install -g @mtt-open/mttsports-cli

或作为项目依赖:

npm install @mtt-open/mttsports-cli

Binary resolution

执行 mttsports 时按以下顺序解析可执行文件:

  1. MTTSPORTS_CLI_BIN
  2. 当前平台匹配的 bundled npm 子包
  3. 报错并提示重新安装或检查平台支持

Override bundled binary

MTTSPORTS_CLI_BIN=/absolute/path/to/mttsports npx @mtt-open/mttsports-cli version

OpenClaw fallback watcher

当 agent runtime 不能原生托管 mttsports session watch 时,可以直接调用:

mttsports_watch_in_bg \
  --channel discord \
  --target channel:123

也可以显式传入 OpenClaw session id:

mttsports_watch_in_bg \
  --session-id session_xxx \
  --channel discord \
  --target channel:123

返回值是 JSON,包含:

  • pid
  • pid_file
  • log_file
  • session_id

日志默认写到 ~/.mttsports-cli/watch-router.log;如果设置了 MTTSPORTS_CONFIG,则跟随对应配置目录。

这个 launcher 会:

  1. 后台启动 mttsports session watch
  2. 监听 NDJSON 事件
  3. turn.changed / round.result / error 回调到 OpenClaw
  4. 把回调参数、stderr、退出结果写入日志,便于排查事件没有打回 session 的问题

Supported platform packages

  • @mtt-open/mttsports-cli-darwin-arm64
  • @mtt-open/mttsports-cli-darwin-x64
  • @mtt-open/mttsports-cli-linux-x64-gnu
  • @mtt-open/mttsports-cli-linux-x64-musl
  • @mtt-open/mttsports-cli-win32-x64-msvc