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

illuma-rpa

v1.1.0

Published

Cross-platform desktop automation for Node.js - mouse, keyboard, screen capture

Readme

illuma-rpa

Cross-platform desktop automation for Node.js. Control mouse, keyboard, and capture screenshots programmatically.

npm version License

Features

  • 🖱️ Mouse control - move, click, double-click, drag, scroll
  • ⌨️ Keyboard control - type text, press keys, key combinations
  • 📸 Screen capture - full screen or region screenshots
  • 🪟 Window management - get active window, list windows, focus, resize
  • 🌐 Cross-platform - Windows, macOS, Linux (x64 & ARM64)
  • Pre-built binaries - no compilation required

Installation

npm install illuma-rpa

Quick Start

import { mouse, keyboard, screen, Key } from 'illuma-rpa';

// Move mouse to position
await mouse.moveTo(100, 200);

// Click
await mouse.click();
await mouse.click('right');
await mouse.doubleClick();

// Drag
await mouse.drag(100, 100, 300, 300);

// Scroll
await mouse.scroll('down', 3);

// Type text
await keyboard.type('Hello, World!');

// Press keys
await keyboard.press(Key.Enter);
await keyboard.press(Key.Ctrl, Key.C);  // Ctrl+C

// Take screenshot
const screenshot = await screen.capture();
console.log(`Screenshot: ${screenshot.width}x${screenshot.height}`);

// Capture region
const region = await screen.captureRegion(0, 0, 500, 500);

API Reference

Mouse

import { mouse } from 'illuma-rpa';

// Move
await mouse.moveTo(x, y);
await mouse.moveSmooth(x, y);  // Smooth movement

// Click
await mouse.click();                    // Left click
await mouse.click('right');             // Right click
await mouse.click('middle');            // Middle click
await mouse.doubleClick();

// Drag
await mouse.drag(startX, startY, endX, endY);

// Scroll
await mouse.scroll('up', 3);
await mouse.scroll('down', 3);

// Get position
const pos = mouse.getPosition();
console.log(pos.x, pos.y);

Keyboard

import { keyboard, Key } from 'illuma-rpa';

// Type text
await keyboard.type('Hello');
await keyboard.typeDelayed('Hello', 50);  // 50ms between chars

// Press single key
await keyboard.press(Key.Enter);
await keyboard.press(Key.Tab);

// Key combinations
await keyboard.press(Key.Ctrl, Key.C);     // Copy
await keyboard.press(Key.Ctrl, Key.V);     // Paste
await keyboard.press(Key.Alt, Key.Tab);    // Switch window

// Hold and release
await keyboard.hold(Key.Shift);
await keyboard.type('hello');  // Types "HELLO"
await keyboard.release(Key.Shift);

Screen

import { screen } from 'illuma-rpa';

// Full screenshot
const shot = await screen.capture();
console.log(shot.width, shot.height);
console.log(shot.image);  // Raw pixel buffer

// Region screenshot
const region = await screen.captureRegion(x, y, width, height);

// Get screen size
const size = screen.getSize();
console.log(size.width, size.height);

Window

import { window } from 'illuma-rpa';

// Get active window
const active = await window.getActive();
console.log(active.title);

// List all windows
const windows = await window.getAll();

// Focus window
await window.focus(windowHandle);

// Resize/move window
await window.resize(handle, { width: 800, height: 600 });
await window.move(handle, { x: 100, y: 100 });

Key Reference

import { Key } from 'illuma-rpa';

// Modifiers
Key.Ctrl, Key.Alt, Key.Shift, Key.Meta (Win/Cmd)

// Navigation
Key.Up, Key.Down, Key.Left, Key.Right
Key.Home, Key.End, Key.PageUp, Key.PageDown

// Editing
Key.Enter, Key.Tab, Key.Backspace, Key.Delete, Key.Escape, Key.Space

// Function keys
Key.F1, Key.F2, ... Key.F12

Use with Electron

// In Electron main process
import { mouse, keyboard, screen } from 'illuma-rpa';

ipcMain.handle('click', async (_, x, y) => {
  await mouse.moveTo(x, y);
  await mouse.click();
});

ipcMain.handle('screenshot', async () => {
  return await screen.capture();
});

Building from Source

If you need to build the native binaries yourself:

# Prerequisites:
# Windows: npm install -g windows-build-tools
# macOS: xcode-select --install
# Linux: sudo apt-get install cmake libxtst-dev libpng++-dev

cd libnut-core
npm install
npm run build:release

License

Apache-2.0

Based on libnut-core and nut.js.