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

@ktmcp-cli/smartme

v1.0.0

Published

Production-ready CLI for smart-me energy monitoring API

Readme

"Six months ago, everyone was talking about MCPs. And I was like, screw MCPs. Every MCP would be better as a CLI."

Peter Steinberger, Founder of OpenClaw Watch on YouTube (~2:39:00) | Lex Fridman Podcast #491

smart-me CLI

A production-ready command-line interface for the smart-me energy monitoring API. Monitor electricity consumption, read meter values, and manage energy devices directly from your terminal.

Disclaimer: This is an unofficial CLI tool and is not affiliated with, endorsed by, or supported by smart-me AG.

Features

  • Devices — List and inspect energy meters and smart devices
  • Values — Get live power readings (watts, voltage, current, power factor)
  • Meters — Read energy consumption counters (kWh)
  • Users — Manage user accounts
  • JSON output — All commands support --json for scripting and piping
  • Colorized output — Clean, readable terminal output with chalk

Why CLI > MCP

MCP servers are complex, stateful, and require a running server process. A CLI is:

  • Simpler — Just a binary you call directly
  • Composable — Pipe output to jq, grep, awk, and other tools
  • Scriptable — Use in shell scripts, CI/CD pipelines, cron jobs
  • Debuggable — See exactly what's happening with --json flag
  • AI-friendly — AI agents can call CLIs just as easily as MCPs, with less overhead

Installation

npm install -g @ktmcp-cli/smartme

Authentication Setup

Use your smart-me account credentials (username and password).

Configure the CLI

smartme config set --username YOUR_EMAIL --password YOUR_PASSWORD

Verify

smartme config show

Commands

Configuration

smartme config set --username <email> --password <pass>
smartme config show

Devices (Meters)

# List all devices
smartme devices list

# Get a specific device
smartme devices get <device-id>

# Find device by serial number
smartme devices find --serial 12345678

Values (Live Readings)

# Get current live values
smartme values get <device-id>

# Get historical values
smartme values history <device-id>
smartme values history <device-id> --date 2024-01-15T12:00:00

Meters (Energy Consumption)

# Get meter/energy consumption values
smartme meters values <device-id>

# Get counter readings (OBIS)
smartme meters counters <device-id>

Users

# Get current user info
smartme users me

# List all users
smartme users list

JSON Output

All commands support --json for machine-readable output:

# Monitor all devices
smartme devices list --json

# Get live power consumption
smartme values get <device-id> --json | jq '.ActivePower'

# Get energy counter reading
smartme meters values <device-id> --json | jq '.CounterReading'

Examples

Monitor energy consumption

# Check current power draw across all meters
smartme devices list --json | jq '.[].ActivePower'

# Get detailed live readings for a meter
smartme values get <device-id>

Track energy usage

# Get current counter (kWh)
smartme meters values <device-id> --json | jq '.CounterReading'

# Get historical counter at specific time
smartme values history <device-id> --date 2024-01-01T00:00:00 --json

Contributing

Issues and pull requests are welcome at github.com/ktmcp-cli/smartme.

License

MIT — see LICENSE for details.


Part of the KTMCP CLI project — replacing MCPs with simple, composable CLIs.