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

@hieptuanle/mm-cli

v0.1.1

Published

Mattermost CLI for humans and agents (TypeScript port of mattermost-cli)

Readme

mm-cli

Mattermost CLI for humans and agents. TypeScript port of rhnvrm/mattermost-cli.

Install

Published on npm as @hieptuanle/mm-cli. Pick whichever fits your environment:

# Run without installing (no PATH changes)
npx @hieptuanle/mm-cli --help

# Global install — adds `mm` to your PATH
npm i -g @hieptuanle/mm-cli
pnpm add -g @hieptuanle/mm-cli

# Or install per-project
pnpm add @hieptuanle/mm-cli
npx mm --help

Once installed, the binary is mm:

mm --help

From source

If you want to hack on the CLI:

git clone https://github.com/hieptuanle/mm-cli.git
cd mm-cli
pnpm install
pnpm build
node dist/index.js --help

# Optionally expose `mm` globally:
pnpm link --global

Setup

# Interactive login (password + MFA)
mm login --url https://chat.example.com

# Or with a Personal Access Token
mm login --url https://chat.example.com --token <pat>

# Verify
mm whoami

Credentials are stored at ~/.config/mm/config.json (mode 600). Override via MATTERMOST_URL, MATTERMOST_TOKEN, MATTERMOST_TEAM, or MM_CONFIG_PATH.

Usage

mm overview                         # mentions + unread + active channels
mm messages general                 # read messages
mm messages general --since 1h
mm messages general --threads
mm messages @alice                  # DM with a user
mm thread <post-id>                 # root + last 9 replies
mm thread <post-id> --limit 0       # full thread
mm search "deployment issue"
mm mentions                         # @-mentions in last 24h
mm channel general
mm channels --since 6h
mm unread
mm pinned general
mm members general
mm user @alice

Output

Colored human-readable output by default. Each command supports:

| Flag | What it does | | ---------------- | --------------------------------------------- | | (default) | Colored TTY output for humans | | --json | Pretty JSON with essential fields | | --json --full | Pretty JSON with all fields | | --ndjson | One JSON object per line (for piping) | | --raw | Raw markdown / plaintext without ANSI colors |

Key fields:

  • thread_id on every post — pass to mm thread
  • ref on channel entries — pass to mm messages
  • is_bot / bot_name — webhook/bot posts flagged automatically
  • root on reply-mentions — the original message being replied to
  • reactions — emoji counts like {"+1": 3}

Global options

--team       Filter to a specific team
--debug      Enable debug output

Agent skill

This repo ships an agent skill at skills/mm-cli/ so coding agents (Claude Code, Cursor, etc.) know when and how to invoke mm. Install via:

npx skills add hieptuanle/mm-cli

The skill bundles a SKILL.md plus reference docs for setup, commands, workflows, and common scenarios.

Develop

pnpm type-check     # tsc --noEmit
pnpm dev            # tsc --watch
pnpm build          # emit dist/