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

touchward

v1.0.0

Published

Installer for Touchward — turns a USB touchscreen into an absolute pointing device on macOS. Point, drag, two-finger scroll, three-finger zoom and an on-screen keyboard, without a kernel extension.

Readme

touchward

Installer for Touchward — turns a USB touchscreen into an absolute pointing device on macOS.

npx touchward install

This package is an installer, not the app. Touchward is written in Swift and ships as a signed .app. npm is one way to fetch and place it — it downloads the disk image from GitHub Releases, checks it against a checksum pinned in this package, and copies the bundle into /Applications. Nothing runs on Node.

If you would rather not go through npm: brew install --cask nguyenthienthanh/tap/touchward, or grab the disk image directly.

What Touchward does

macOS has no driver that translates HID digitizer coordinates into a pointer position. On a dual-mode panel the only thing that reaches the WindowServer is the Button 1 bit — a click with no coordinates, which lands wherever the cursor already was. Touchward seizes the device, reads the real coordinates, and posts its own mouse events at the point you actually touched.

Entirely user-space: no kernel extension, no SIP changes.

| | | |---|---| | Point, tap, drag | One finger, absolute — the cursor goes where you touch | | Scroll | Two fingers, both axes | | Zoom | Three fingers, spread or pinch | | Type | An on-screen keyboard, iPad layout, on the touch panel itself | | Your real mouse and keyboard | Never touched |

Commands

npx touchward install      # download, verify the checksum, install into /Applications
npx touchward uninstall    # remove /Applications/Touchward.app
npx touchward version      # the app version this package installs

Installing is an explicit command rather than a postinstall hook on purpose — dropping an app into /Applications as a side effect of npm install is not something a package should do behind your back.

After installing

Touchward needs exactly one permission:

System Settings → Privacy & Security → Accessibility → enable Touchward

That also covers reading the touch panel, so Touchward will not appear under Input Monitoring. That is expected — do not go looking for a checkbox there.

Then open -a Touchward.

Requirements

  • macOS 13 or newer (developed and tested on 26.5.2, Apple silicon).
  • A touchscreen that declares itself a HID Digitizer / Touch Screen, connected and displaying.
  • Exactly one secondary display, or TOUCHWARD_DISPLAY_ID set — Touchward refuses to guess which screen is the panel rather than sending your cursor somewhere you cannot follow it.

The app is signed with a self-signed certificate, so Gatekeeper asks for confirmation on first launch.

Source, issues, docs

github.com/nguyenthienthanh/touchward — Swift, Apache-2.0, 96 unit tests. Nothing about the device is hardcoded: no VID/PID, no serial, no byte offsets; everything is read from the HID descriptor at runtime.