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

@ciesielskico/home-assistant-rxjs

v0.0.3

Published

rxjs addons for home-assistant-js-websocket

Readme

home-assistant-rxjs

rxjs wrapper for home-assistant-js-websocket

Getting started

  1. npm install @ciesielskico/home-assistant-rxjs

  2. Create long-lived access token under http://homeassistant:8123/profile

  3. Create a .env file

HOST=http://homeassistant.local:8123
ACCESS_TOKEN=<long-lived-access-token>
LOGLEVEL=INFO
  1. Initialize HomeAssistantRXJS and define your automations
const home = new HomeAssistantRXJS();
home.initialize();

const motion$ = home.entities.pipe(
  select('binary_sensor.hall_motion_sensor', 'state'),
);

// When motion detected turn the light on
// and after 2 seconds turn it off
motion$
  .pipe(
    filter(state => state === 'on'),
    switchMapTo(home.lights.turnOn('light.hall_light')),
    delay(2000),
    switchMapTo(home.lights.turnOff('light.hall_light')),
  )
  .subscribe();

Deploy as add-on on Home Assistant

  1. Install the Samba share add-on

  2. Open the share under \\192.168.x.<ha-ip>

  3. Create folder ha-rxjs inside addons

  4. Copy src, package.json, config.json, Dockerfile and run.sh

  5. In Home Assistant under Supervisor choose Add-On Store

  6. Refresh (upper-right corner)

  7. Install

  8. Start add-on

Development

Start Typescript dev server

npm run dev

Local build

docker build --build-arg BUILD_FROM="homeassistant/amd64-base:latest" -t ha-rxjs .

Local run

docker run --rm --env-file=.env ha-rxjs

Known bugs

  • app doesn't exit properly (probably to do with connection)
  • require/imports esm throwing warnings