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

@k5s/hom3

v1.0.2

Published

k9s-inspired TUI for Home Assistant

Readme

hom3

k9s-inspired terminal UI for Home Assistant

HOM3 Screenshot

Navigate your entire Home Assistant setup from the terminal — just like k9s for Kubernetes.


Features

  • Resource-based navigation — jump to any device type with :lights, :sensors, :climate, etc.
  • Live state streaming — subscribes to HA WebSocket, updates in real-time
  • Area filtering — filter by area with :lights kitchen or use the area selector in the header
  • Fuzzy filter — press / to filter entities by name, entity_id, or state
  • Toggle & controlt toggles lights/switches/fans/locks; +/- adjusts brightness, temperature, volume
  • Detail panel — attributes, domain-specific controls, and timing for the selected entity
  • Multi-home context switching — manage multiple HA instances and switch between them with C or :homes
  • Cyberpunk/synthwave theme — cyan, magenta, neon green on dark

Quick Start

Install from npm (recommended)

npm install -g @k5s/hom3

Then run:

hom3

Install from source

git clone https://github.com/you/hom3
cd hom3
npm install
npm run build
npm start

Configure

mkdir -p ~/.config/hom3
cat > ~/.config/hom3/config.json << 'EOF'
{
  "homes": [
    {
      "name": "Home",
      "url": "http://homeassistant.local:8123",
      "token": "your_long_lived_access_token"
    }
  ]
}
EOF

Get a token: HA → Profile → Long-Lived Access Tokens


Keybindings

| Key | Action | |-----|--------| | / k | Move up | | / j | Move down | | g / Home | Jump to top | | G / End | Jump to bottom | | PgUp / PgDn | Page up/down | | Enter | Activate selected entity | | : | Open command mode | | / | Filter (fuzzy search) | | t | Toggle selected entity | | + / - | Adjust brightness, temperature, volume, etc. | | d | Toggle detail panel | | n | Rename selected entity | | a | Set area for selected entity | | r | Refresh all states | | C | Open context switcher (multi-home) | | ? | Toggle help overlay | | q / Ctrl+C | Quit |


View Commands

Type : then any of the following:

| Command | View | |---------|------| | :all | All entities | | :lights | Lights | | :switches | Switches | | :sensors | Sensors | | :binary_sensors / :bs | Binary sensors | | :climate | Climate | | :covers | Covers | | :fans | Fans | | :media / :media_players | Media players | | :automations / :auto | Automations | | :scripts | Scripts | | :scenes | Scenes | | :locks | Locks | | :cameras | Cameras | | :vacuums | Vacuums | | :alarms | Alarm panels | | :weather | Weather | | :buttons | Buttons | | :numbers | Number inputs | | :selects | Select inputs | | :inputs | Input helpers | | :homes / :ctx | Context switcher (multi-home) | | :quit | Quit |

Append an area name to scope a view: :lights kitchen, :sensors bedroom


Multi-Home Context Switching

HOM3 supports multiple Home Assistant instances, similar to how k9s handles multiple Kubernetes clusters.

Open the context switcher with C or :homes — the main table switches to a contexts view listing all configured homes. Navigate with j/k, press Enter to connect, Esc to cancel.

The active home name is shown as a badge in the header (top-right of the title bar).


Configuration

HOM3 loads config in this order of precedence:

| Source | Variables / Flags | |--------|-------------------| | CLI flags | --url, --token, --name | | Environment variables | HASS_URL, HASS_TOKEN, HASS_NAME | | Config file | ~/.config/hom3/config.json |

Single home

{
  "url": "http://homeassistant.local:8123",
  "token": "your_long_lived_access_token"
}

Multiple homes

{
  "homes": [
    {
      "name": "Home",
      "url": "http://homeassistant.local:8123",
      "token": "your_long_lived_access_token"
    },
    {
      "name": "Cabin",
      "url": "http://192.168.1.100:8123",
      "token": "another_token"
    }
  ]
}

Project Structure

src/
├── index.ts        # Entry point, config loading
├── app.ts          # Main app controller, key bindings, event loop
├── hass-client.ts  # Home Assistant WebSocket client
├── renderer.ts     # All rendering logic (rows, detail, bars)
├── widgets.ts      # blessed widget factories
├── theme.ts        # Colors, icons, state formatters
└── types.ts        # TypeScript types