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

hyperx-cloud-flight-wireless

v1.1.0

Published

Enhanced module for interfacing with HyperX Cloud Flight Wireless with robust reconnection handling

Readme

🎧 HyperX Cloud Flight Wireless

Enhanced Node.js module for interfacing with HyperX Cloud Flight Wireless headsets

This is a fork of srn/hyperx-cloud-flight-wireless with significant improvements to connection reliability and event handling.

✨ Improvements

This fork includes several critical improvements:

  • 🔄 Robust reconnection handling - Properly reconnects after power cycles
  • 🔌 Better device detection - More reliable device discovery after disconnection
  • 🛡️ Error resilience - Improved error handling with automatic recovery
  • 🧹 Proper resource cleanup - Prevents memory leaks and stale connections
  • Faster event handling - More responsive status updates
  • 🔋 More reliable battery reporting - Consistent battery level updates

📦 Install

$ npm install AlexAdiaconitei/hyperx-cloud-flight-wireless

🚀 Usage

const hyperxCloudFlight = require('hyperx-cloud-flight-wireless')()

// Event listeners
hyperxCloudFlight.on('power', state) // 'on' | 'off'
hyperxCloudFlight.on('muted', muted) // Boolean
hyperxCloudFlight.on('volume', direction) // 'up' | 'down'
hyperxCloudFlight.on('charging', charging) // Boolean
hyperxCloudFlight.on('battery', percentage) // 0-100 | null
hyperxCloudFlight.on('error', error) // instanceof Error

// Enhanced API methods
hyperxCloudFlight.clearListeners() // Remove all event listeners
hyperxCloudFlight.close() // Cleanly close connection and release resources

📝 Feature Support

| Feature | Status | Description | | ---------------- | ------ | ------------------------------------------------------- | | Power State | ✅ | Detect when headset is powered on/off | | Microphone State | ✅ | Track when microphone is muted/unmuted | | Volume Control | ✅ | Detect volume up/down button presses | | Battery Level | ✅ | Estimate battery percentage (0-100%) | | Charging Status | ✅ | Detect when headset is charging | | Auto Reconnect | ✅ | Automatically reconnect after disconnection/power cycle |

🔧 Configuration Options

The module accepts a configuration object with the following options:

const hyperx = require('hyperx-cloud-flight-wireless')({
  debug: false, // Enable/disable debug logging
  updateDelay: 30000, // Update interval in milliseconds (default: 5min)
})

🐧 Linux Support

To work with Linux it is necessary to run as root, or define rules for udev:

echo 'KERNEL=="hidraw*", SUBSYSTEM=="hidraw", MODE="0664", GROUP="plugdev"' | sudo tee -a /etc/udev/rules.d/99-hidraw-permissions.rules && sudo udevadm control --reload-rules

Disconnect and reconnect the device after applying these rules.

📊 Technical Notes

The battery percentage is an estimate based on the device's status report. The implementation uses HID communications to interface with the headset's USB dongle.

📄 License

MIT © Søren Brokær

Enhanced fork maintained by Alex Adiaconitei