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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@muprotocol/cli

v0.2.0

Published

Command line interface for MUP (Model UI Protocol) development

Downloads

7

Readme

@muprotocol/cli

MUP (Model UI Protocol) CLI - Development tools for dynamic UI applications

Installation

npm install -g @muprotocol/cli

Usage

Initialize a new MUP project

mup init my-project
cd my-project

Start development server

mup serve
# or with custom port
mup serve --port 8080

Start development server with hot reload

mup dev

Validate MUP protocol messages

mup validate ./path/to/message.json

Build for production

mup build

Commands

mup init [project-name]

Initialize a new MUP project with the specified name.

Options:

  • --template <template> - Project template to use
  • --force - Overwrite existing files

mup serve

Start MUP development server.

Options:

  • -p, --port <port> - Port number (default: 3000)
  • -h, --host <host> - Host address (default: localhost)
  • --protocol <protocol> - Protocol (ws|wss) (default: ws)
  • -c, --config <config> - Configuration file path
  • --ssl-cert <cert> - SSL certificate file (for wss)
  • --ssl-key <key> - SSL private key file (for wss)
  • -w, --watch - Watch for file changes and reload
  • -v, --verbose - Verbose logging

mup dev

Start MUP development server with hot reload.

Options:

  • -p, --port <port> - Port number (default: 3000)
  • -h, --host <host> - Host address (default: localhost)
  • -c, --config <config> - Configuration file path
  • --open - Open browser automatically
  • -v, --verbose - Verbose logging

mup validate <file>

Validate MUP protocol messages and components.

Options:

  • --schema <schema> - Custom schema file
  • --strict - Enable strict validation
  • -v, --verbose - Verbose output

mup build

Build MUP project for production.

Options:

  • -o, --output <dir> - Output directory (default: dist)
  • -c, --config <config> - Configuration file path
  • --minify - Minify output
  • -v, --verbose - Verbose logging

Configuration

Create a mup.config.js file in your project root:

module.exports = {
  port: 3000,
  host: 'localhost',
  protocol: 'ws',
  timeout: 30000,
  // Additional configuration options
};

Examples

Basic WebSocket Server

# Initialize project
mup init chat-app
cd chat-app

# Start development server
mup serve --port 8080 --verbose

SSL/WSS Server

mup serve --protocol wss --ssl-cert cert.pem --ssl-key key.pem

Production Build

mup build --output ./dist --minify

Requirements

  • Node.js >= 16.0.0
  • npm >= 7.0.0

License

MIT

Contributing

See CONTRIBUTING.md for contribution guidelines.

Support

For issues and questions, please visit our GitHub repository.