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

node-red-contrib-levoit-purifier

v0.2.0

Published

Node-RED node for Levoit air purifiers (Vital 100S, Core 200S/300S/400S/600S) via VeSync cloud API

Readme

node-red-contrib-levoit-purifier

Node-RED node for controlling Levoit air purifiers via the VeSync cloud API.

Features

  • Two-step OAuth authentication — supports the current VeSync API (2025+)
  • EU and US region support — automatic cross-region redirect
  • Dynamic device discovery — devices populate in dropdown from the VeSync API
  • Air purifier control — power on/off, fan speed, mode (auto/manual/sleep), display, child lock
  • Status polling — periodic status updates with PM2.5, filter life, air quality
  • Zero dependencies — uses only Node.js built-in https and crypto modules
  • Credentials stored securely — via Node-RED's built-in credential system

Supported Devices

| Model | Tested | |-------|--------| | Vital 100S (LAP-V102S) | ✅ | | Vital 200S | Should work | | Core 200S | Should work | | Core 300S | Should work | | Core 400S | Should work | | Core 600S | Should work |

Installation

Via Node-RED Palette Manager

Search for node-red-contrib-levoit-purifier in Manage palette → Install.

Via npm

cd ~/.node-red
npm install node-red-contrib-levoit-purifier

Quick Start

  1. Drag a levoit purifier node onto your flow
  2. Create a new Levoit Config — enter your VeSync app email, password, and select your region
  3. Click Test Connection to verify credentials
  4. Deploy the flow
  5. Open the purifier node again — your devices will appear in the dropdown
  6. Select your device, set poll interval, and deploy

Usage

Control via input messages

// Turn on / off
{ "payload": "on" }
{ "payload": "off" }

// Set fan speed (1-4)
{ "payload": { "action": "speed", "value": 2 } }

// Set mode: "manual", "auto", "sleep"
{ "payload": { "action": "mode", "value": "auto" } }

// Poll status
{ "payload": "status" }

// Display on/off
{ "payload": "display_on" }
{ "payload": "display_off" }

// Child lock
{ "payload": "child_lock_on" }
{ "payload": "child_lock_off" }

Output

The node outputs msg.payload with the current device status on every poll and after every command.

License

MIT

Credits

API protocol based on research from pyvesync, homebridge-levoit-air-purifier, and openHAB VeSync binding.

Disclaimer

This software is NOT an official Levoit or VeSync product. Levoit and VeSync are registered trademarks of VeSync Co., Ltd.