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

dreame-cli

v0.1.0

Published

Bun-based CLI for Dreame vacuums

Readme

dreame-cli

Bun-based CLI for controlling Dreame vacuums. This is an unofficial project and is not affiliated with Dreame.

Features

  • Login and device discovery
  • Status and property inspection
  • Map listing, room listing, and room-based cleaning
  • Map images (saved map) and live map overlay (best-effort)

Requirements

  • Bun runtime (the CLI runs directly from TypeScript via Bun)

Installation

Run with bunx (no install)

bunx dreame-cli login --username [email protected] --password "your-password" --country us
bunx dreame-cli status

Global install

bun add -g dreame-cli

Then run:

dreame-cli status

You can also use the shorter alias:

dreame status

From source

bun install
bun run src/index.ts login --username [email protected] --password "your-password" --country us
bun run src/index.ts status

Configuration

Config is stored at ~/.config/dreame-cli/config.json.

Environment variables (optional):

  • DREAME_USERNAME
  • DREAME_PASSWORD
  • DREAME_COUNTRY
  • DREAME_ACCOUNT_TYPE

Commands

The binary is available as dreame-cli or dreame (short alias). Examples below use dreame.

  • dreame login --username <email> --password <password> [--country us] [--account-type dreame]
  • dreame devices
  • dreame status [--device-id <id> | --device-name <name>] [--json]
  • dreame maps [--device-id <id> | --device-name <name>] [--map-key <key>]
  • dreame map-image [--device-id <id> | --device-name <name>] [--map-key <key>] [--map-id <id> | --map-index <n>] [--out <path>]
  • dreame map-live [--device-id <id> | --device-name <name>] [--map-key <key>] [--map-id <id> | --map-index <n>] [--out <path>]
  • dreame rooms [--device-id <id> | --device-name <name>] [--map-key <key>] [--map-id <id> | --map-index <n>]
  • dreame clean --rooms <name[,name]> | --segments <id[,id]> [--mode sweep|mop|both] [--suction quiet|standard|strong|turbo] [--water low|medium|high] [--repeats <n>] [--map-key <key>] [--map-id <id> | --map-index <n>]

Map notes

  • Some accounts require a --map-key to decrypt map data.
  • map-live uses the live stream when available. When the device is idle it falls back to the most recent recovery snapshot, which may not include a path/trace. In that case the output can look like a plain saved map.

Security

This CLI stores your refresh token and device identifiers in the config file. Treat it as sensitive.

Contributing

Issues and pull requests are welcome. Please keep changes focused and document any new flags.

Acknowledgements

Map decoding logic is inspired by the Dreame Vacuum Home Assistant integration.

License

MIT. See LICENSE.