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

@fduch2k/mmost-cli

v0.1.1

Published

Mattermost command-line utility

Downloads

367

Readme

mmost CLI

mmost is a command-line utility for interacting with Mattermost.

Installation

npm install -g @fduch2k/mmost-cli

or

npx @fduch2k/mmost-cli --help

Configuration

Set environment variables before running commands:

| Variable Name | Description | Required | | ---------------------- | -------------------------------- | -------- | | MATTERMOST_URL | Mattermost base URL | Yes | | MATTERMOST_TOKEN | Mattermost personal access token | Yes | | MATTERMOST_TEAM_ID | Mattermost team ID | No* | | MATTERMOST_TEAM_NAME | Mattermost team name | No* |

* Provide at least one of MATTERMOST_TEAM_ID or MATTERMOST_TEAM_NAME.

Usage

mmost <command> [--option value]

Get full help:

mmost --help

Get command-specific help:

mmost help create-post

Output Format

By default, all commands output JSON (agent-friendly format).

Use --human to get human-readable Markdown output:

mmost search-users --term john --human
mmost get-me --human
mmost --help --human

Use --json to explicitly request JSON (same as default):

mmost search-users --term john --json

--json and --human are mutually exclusive. Using both together produces an error.

Commands

  • get-me
  • get-users (--username or --user-id)
  • search-users (--term, --page, --per-page)
  • search-channels (--term, --page, --per-page)
  • get-channels (--channel-id or --name)
  • get-my-channels
  • search-posts (--terms, --page, --per-page)
  • get-posts (--post-id)
  • get-posts-unread (--channel-id)
  • create-post (--channel-id, --message, --root-id)
  • get-posts-thread (--root-id, --from-post, --per-page)
  • pin-post (--post-id)
  • unpin-post (--post-id)
  • get-posts-pinned (--channel-id)
  • add-reaction (--post-id, --emoji-name)
  • remove-reaction (--post-id, --emoji-name)
  • get-reactions (--post-id)

Examples

mmost search-users --term john
mmost search-users --term john --human
mmost get-channels --name town-square,off-topic
mmost create-post --channel-id abc123 --message "Release is live"
mmost add-reaction --post-id post123 --emoji-name +1,eyes

Agent Skill

Install the Mattermost skill for your coding agent:

npx skills add fduch2k/mmost-cli

This installs the mattermost skill from skills/mattermost/SKILL.md into your agent's skill directory. Supports OpenCode, Claude Code, Cursor, Codex, and 40+ other agents.

All commands output JSON by default — no flags needed for agent use:

mmost --help
mmost help create-post

To get human-readable output:

mmost --help --human
mmost help create-post --human

Credits

Based on mcp-mattermost by @dakatan.