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

meross-ts

v1.0.0

Published

A TypeScript implementation for controlling Meross devices.

Readme

Meross Controller

A node lib to interact with smart home devices through Meross Cloud. Also contains a Bun script (/src/program.ts) that gives the user an interactive application to control their devices. Got it to a useful state for myself, feel free to make a PR

Features

  • 🔐 Authenticate with Meross cloud services
  • 🔍 Auto-discover Meross devices
  • 🎮 Interactive control interface
  • 📊 Get device status
  • 🔄 Toggle
  • 💻 Full TypeScript support with Bun runtime

Prerequisites

  • Bun runtime installed
  • Meross account with devices configured
  • Meross devices connected to your network

Setup

  1. Install dependencies:

    bun install
  2. Create env file and configure your credentials:

    touch .env
  3. Edit .env with your Meross account details:

    [email protected]
    MEROSS_PASSWORD=your-actual-password

Usage

Run the interactive application:

bun dev

The script will:

  1. Authenticate with your Meross account
  2. Discover all Meross devices
  3. Present an interactive menu for control

API Usage

You can also use the MerossController class directly in your own code:

import { MerossGarageController } from './src/meross-controller';

const controller = new MerossGarageController({
  email: '[email protected]',
  password: 'your-password'
});

// Connect to Meross cloud
const devices = await controller.connectToMerossCloud();

// Get device
const device = controller.getDevice(deviceUuid);

// Get device status
const status = await controller.getDeviceStatus(deviceUuid);

// Take action
await controller.controlGarageDoor(deviceUuid, channelId, !channel.open);

// Clean up
await controller.disconnect();

Security Notes

  • Never commit your .env file with real credentials
  • Consider using environment variables in production
  • Uses a modified meross-cloud-ts package for communication with Meross

Troubleshooting

  • Authentication fails: Verify your Meross email and password
  • No devices found: Ensure your devices are online and configured in the Meross app
  • Control commands fail: Check that your device is responsive in the official Meross app
  • Status not available: Some models don't support status queries

Supported Commands

  • Toggle garage door (open/close)
  • Get current door status
  • List all devices
  • Show device information
  • Interactive control menu

Dependencies

  • meross-cloud-ts: Unofficial Node.js library for Meross IoT devices (I've included patches to get the package working)
  • bun: Fast JavaScript runtime and package manager

License

This project is for educational and personal use. Meross is a trademark of their respective owners.