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

@mibridge/cli

v1.0.2

Published

[![npm version](https://img.shields.io/npm/v/@mibridge/cli.svg)](https://www.npmjs.com/package/@mibridge/cli) [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT) [![TypeScript](https://img.shields.io/b

Readme

@mibridge/cli

npm version License: MIT TypeScript Node.js Open Source

Command-line interface for controlling Xiaomi smart home devices. Built on top of @mibridge/core.

Part of the mibridge project.

Installation

npm install -g @mibridge/cli

Requirements

  • Node.js 18 or later
  • A Xiaomi account with devices linked to it

Getting started

# Authenticate with your Xiaomi account
mibridge login --region de

# List your devices
mibridge devices

# Check device status
mibridge status <device-id>

Commands

login

Authenticate with your Xiaomi account. Supports OTP/2FA.

mibridge login --region de

| Option | Default | Description | |---|---|---| | --region | de | Cloud region (cn, de, eu, ...) |

logout

Clear the saved session.

mibridge logout

devices

List all devices linked to your account.

mibridge devices

status

Display the current state of a device.

mibridge status <device-id>

clean

Start a cleaning session. Without options, cleans the entire map.

mibridge clean <device-id>
mibridge clean <device-id> --rooms 1,2,3 --mode vacuum --suction strong --water medium

| Option | Description | |---|---| | --rooms | Comma-separated room IDs to clean | | --mode | Clean mode: vacuum, mop, vacuumThenMop | | --suction | Suction level: quiet, standard, strong, turbo | | --water | Water level: off, low, medium, high | | --repeat | Number of passes per room (default: 1) |

rooms

List the rooms available on a device's map.

mibridge rooms <device-id>

maps

List the maps saved on a device.

mibridge maps <device-id>

watch

Stream real-time status updates from a device.

mibridge watch <device-id>
mibridge watch <device-id> --interval 2000

| Option | Default | Description | |---|---|---| | --interval | 5000 | Poll interval in milliseconds |

do

Execute a raw MIoT action on a device. Useful for debugging or accessing features not yet exposed by the SDK.

mibridge do <device-id> <siid> <aiid> [params]

Configuration

Create a .xiaomirc file in your working directory to set defaults:

{
  "region": "de",
  "aliases": {
    "vacuum": "DEVICE_ID_HERE"
  }
}

With aliases configured, you can use the alias instead of the full device ID:

mibridge status vacuum
mibridge clean vacuum --rooms 1,2

See .xiaomirc.example at the root of the repository for the full reference.

Contributing

Contributions are welcome. Please open an issue before submitting a pull request for significant changes.

License

MIT — see LICENSE for details.