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

hass-cli

v0.1.0

Published

Home Assistant CLI replacement

Readme

hass-cli

Home Assistant CLI replacement focused on full feature coverage.

Install dependencies

bun install

Configure environment

Copy .env.example to .env and fill values:

cp .env.example .env

Required variables:

  • HOMEASSISTANT_WS: Home Assistant WebSocket endpoint (example: ws://homeassistant.local:8123/api/websocket)
  • HOMEASSISTANT_TOKEN: Home Assistant long-lived access token

Run

bun run index.ts doctor

CLI usage

hass-cli doctor
hass-cli ping
hass-cli entity list
hass-cli entity list --all
hass-cli entity list --room kitchen
hass-cli entity list --device-id abc123def456
hass-cli entity list --integration mqtt
hass-cli entity list --domain light
hass-cli entity get light.kitchen_main
hass-cli entity update light.kitchen_main --name "Kitchen Main" --room kitchen
hass-cli automation list
hass-cli automation get automation.good_morning
hass-cli automation enable automation.good_morning
hass-cli automation disable automation.good_morning
hass-cli automation trigger automation.good_morning
hass-cli automation trace automation.good_morning
hass-cli service list --domain light
hass-cli service call light turn_on --entity-id light.kitchen_main --data '{"brightness": 180}'
hass-cli dashboard list
hass-cli dashboard get dashboard-newipad
hass-cli dashboard update dashboard-newipad --json '{"title":"NewIpad"}'
hass-cli dashboard create cli-temp-dash --title "CLI Temp Dash" --icon mdi:test-tube
hass-cli dashboard delete cli-temp-dash --yes
hass-cli logbook --hours 6 --limit 100
hass-cli history light.kitchen_main --hours 24
hass-cli room list
hass-cli device list
hass-cli device get c1c1e66232e21ca47077d90c256ff2d6
hass-cli integration list
hass-cli integration status
hass-cli help

entity list prints the first 120 matches by default; pass --all to print all matching entities.

automation trigger performs a manual trigger without a trigger id or trigger data payload.

Running hass-cli with no command now defaults to:

  • help when required environment is configured
  • doctor output when required environment is missing