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

@injaneity/pi-computer-use

v0.4.3

Published

Pi extension that lets AI agents observe and control macOS and Windows apps.

Readme

pi-computer-use

pi-computer-use lets AI agents use desktop apps on macOS and Windows.

The macOS helper requires macOS 14 or newer.

An agent can look at an app window, understand the buttons and text inside it, and perform actions like clicking, typing, scrolling, and waiting for something to change. This is useful when the agent needs to work with a normal desktop app instead of an API, a terminal command, or a file.

New to computer use? Start with: Wait, what exactly is Computer Use?

What this package does

This is a Pi extension. After installation, Pi agents get tools for:

  • finding open apps and windows
  • observing what is visible in a window
  • searching the visible interface for text, buttons, and controls
  • inspecting parts of the interface in more detail
  • clicking, typing, scrolling, and pressing UI controls
  • waiting for UI changes

In short: it gives an agent a controlled way to operate desktop software.

What this package is not

pi-computer-use is not a replacement for app APIs or MCP servers. If an app has a reliable direct integration, use that first.

Computer use is most helpful when the only available interface is the app on screen.

Install

pi install git:github.com/injaneity/[email protected]

Start Pi and complete the platform setup flow.

On macOS, grant permissions to:

/Applications/pi-computer-use.app

Required macOS permissions:

  • Accessibility
  • Screen Recording, shown as Screen and System Audio Recording on newer macOS versions

The macOS setup flow registers the helper first, so it should already appear in both Settings panes. Enable the toggles and choose Recheck.

On Windows, use an interactive desktop session. Windows support uses the platform accessibility APIs and does not use the macOS helper app or TCC permission flow.

Use /computer-use inside Pi to show the active configuration and where it came from.

Main tools

  • find_roots
  • observe_ui
  • search_ui
  • expand_ui
  • inspect_ui
  • act_ui
  • read_text
  • wait_for

See docs/usage.md for the full tool reference.

Documentation

Development status

The architecture is centered on immutable, state-scoped observations. Desktop surfaces and CDP pages form one multi-root forest; progressive outline queries remain cached, while live work is ordered per physical resource so independent roots can run in parallel. act_ui accepts one or more intent steps, preserves focus across dependent input, verifies delivery, recovers safely, stores one complete successor state, and returns a compact diff when identity confidence allows. Older direct tools such as screenshot, click, set_text, and computer_actions are no longer part of the public extension surface.

License

MIT