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

isim

v0.1.15

Published

Node.js X11 automation bindings built with Rust, Neon, and libxdo.

Readme

isim

CI npm

isim is a small Node.js library for controlling X11 windows from JavaScript. It wraps the common desktop automation operations you usually reach for in xdotool: keyboard input, mouse input, window focus, activation, clicks, and window lookup.

import { currentDisplay } from 'isim';

const win = currentDisplay.activeWindow;

win.raise();
await win.focus();
win.key.press('ctrl+l');
await win.mouse.move(20, 10);
win.click(1);

Support

isim currently targets Linux desktops running X11.

It depends on libxdo and X11 libraries under the hood, so it is not a Wayland-native automation library. It may still work in XWayland scenarios when the target window is visible to X11.

Install

npm install isim

If npm cannot find a prebuilt binary for your platform, or if you are working from source, install the native Linux dependencies first:

sudo apt-get update
sudo apt-get install -y pkgconf libxdo-dev libxfixes-dev

Source builds also require Node.js and Rust.

Usage

Use the default display:

import { currentDisplay } from 'isim';

const active = currentDisplay.activeWindow;
const focused = currentDisplay.focusedWindow;
const underMouse = currentDisplay.windowAtMouse;

Use an explicit display:

import { Display } from 'isim';

const display = new Display(':0');
const win = display.getWindow(0x3400007);

win.raise();
await win.activate();

Send keyboard input:

const win = currentDisplay.activeWindow;

await win.focus();
win.key.press('ctrl+shift+t');

Send mouse input:

const win = currentDisplay.windowAtMouse;

win.mouse.down(1);
win.mouse.up(1);
await win.mouse.move(40, 20);

Use the lower-level native bindings when you need direct access:

import { xdo } from 'isim';

const windowId = xdo.getActiveWindow();
xdo.keyPress('Return', windowId);

API

| API | Description | | --- | --- | | new Display(name?) | Connect to the default X display or a display such as :0. | | display.activeWindow | Window currently active according to the window manager. | | display.focusedWindow | Window that currently owns keyboard focus. | | display.windowAtMouse | Window under the mouse pointer. | | display.currentWindow | Wrapper for libxdo's current-window target. | | display.currentScreen | Wrapper for libxdo's current-screen target. | | display.getWindow(id) | Wrap a specific X11 window ID. | | display.getScreen(id) | Wrap a specific screen ID. | | window.key.down(key) | Press and hold a key sequence. | | window.key.up(key) | Release a key sequence. | | window.key.press(key) | Press and release a key sequence. | | window.mouse.down(button) | Press a mouse button. | | window.mouse.up(button) | Release a mouse button. | | window.mouse.move(x, y) | Move relative to the window. | | window.click(button) | Click a mouse button in the window. | | window.focus() | Focus the window and wait for focus. | | window.activate() | Activate the window and wait for activation. | | window.raise() | Raise the window. | | window.close() | Ask the window to close. | | window.kill() | Kill the window. | | window.pid | Resolve the process ID for the window. | | xdo | Raw native addon exports. |

Most synchronous methods return the underlying libxdo status code. Methods that wait for X11 state changes return Promise<number>.

Development

npm ci
npm run test:node
npm run test:rust
npm run debug

Useful scripts:

| Command | Description | | --- | --- | | npm run test:node | Type-check TypeScript and run JavaScript wrapper tests. | | npm run test:rust | Run the Rust test suite. | | npm test | Run both Node and Rust tests. | | npm run debug | Build a debug native addon. | | npm run build | Build a release native addon. | | npm run dryrun | Start a dry-run release workflow. | | npm run release | Start the release workflow. |