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

pikvm

v1.0.0

Published

Node.js library for interacting with PiKVM using the HTTP API

Downloads

198

Readme

pikvm

Node.js library for interacting with PiKVM using the HTTP API.

Installation

npm install pikvm

Usage

const { PiKVMClient } = require('pikvm');

const client = new PiKVMClient({
  host: '192.168.1.100',
  username: 'admin',
  password: 'admin',
  secure: true,
  rejectUnauthorized: false
});

// Get system information
client.getInfo().then(info => {
  console.log('System info:', info);
});

// ATX power management
client.powerOn().then(() => console.log('Power on'));
client.powerOff().then(() => console.log('Power off'));
client.reset().then(() => console.log('Reset'));

// MSD operations
client.getMSDInfo().then(info => console.log('MSD info:', info));
client.setMSDImage('debian.iso', true).then(() => console.log('ISO mounted'));
client.connectMSD().then(() => console.log('MSD connected'));
client.disconnectMSD().then(() => console.log('MSD disconnected'));

// HID control
client.sendKeys(['a', 'b', 'c']);
client.sendMouseMove(10, 20);
client.sendMouseButton('left', true);

// GPIO
client.getGPIO().then(gpio => console.log('GPIO:', gpio));
client.setGPIO('channel1', true);

API

Constructor

new PiKVMClient(config)

Config options:

  • host (required): PiKVM hostname or IP
  • username (required): Username
  • password (required): Password
  • port (optional): Port number (default: 443 for HTTPS, 80 for HTTP)
  • secure (optional): Use HTTPS (default: true)
  • rejectUnauthorized (optional): Reject unauthorized certificates (default: false)

Methods

System

  • getInfo() - Get system information

ATX Power

  • getATXInfo() - Get ATX status
  • powerOn() - Power on
  • powerOff() - Power off (short press)
  • forcePowerOff() - Force power off (long press)
  • reset() - Reset system

MSD

  • getMSDInfo() - Get MSD information
  • setMSDImage(image, cdrom) - Set image (cdrom: true for CD-ROM mode)
  • connectMSD() - Connect drive
  • disconnectMSD() - Disconnect drive
  • removeMSDImage(image) - Remove image

HID

  • sendKeys(keys) - Send keyboard keys
  • sendMouseMove(x, y) - Move mouse
  • sendMouseButton(button, state) - Mouse button event
  • sendMouseWheel(delta) - Mouse wheel

GPIO

  • getGPIO() - Get GPIO state
  • setGPIO(channel, state) - Set GPIO channel
  • pulseGPIO(channel, delay) - Pulse GPIO channel

Testing

npm test

License

MIT