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

opensky-cua

v0.1.2

Published

Open @oai/sky-compatible computer-use library and async REPL, backed by Cua Driver

Readme

opensky

opensky is an open implementation of the OpenAI Computer @oai/sky API. It is a library, an async Node REPL, and an agent skill. Under the hood it calls Cua Driver (cua-driver call …) instead of the proprietary @oai/sky host module.

import { createOpenSky } from "opensky-cua";

const opensky = createOpenSky();
const apps = await opensky.list_apps();
const before = await opensky.get_app_state({ app: "Calculator", disableDiff: true });
await opensky.click({ app: "Calculator", element_index: 13 });
const after = await opensky.get_app_state({ app: "Calculator" });

Install

npm install -g opensky-cua
opensky doctor

opensky doctor downloads the native desktop helper if needed and starts it. On macOS, System Settings will ask for Accessibility and Screen Recording. Enable both for the helper app that appears (it may be labeled CuaDriver), then run opensky doctor again.

From this repo instead of npm:

bun install
bun src/cli.ts doctor

Add / install the skill

The skill lives at skills/opensky/SKILL.md. Agents load it from .agents/skills, .cursor/skills, .claude/skills, or .codex/skills.

Agent Skills CLI (npx skills add)

From a checkout of this project:

# project-level (committed with the repo)
npx skills add . --skill opensky -a cursor -a claude-code -a copilot -y

# user-level (every project on this machine)
npx skills add . --skill opensky -g -y

After the repo is on GitHub:

npx skills add tanishqkancharla/opensky --skill opensky -g -y

List without installing:

npx skills add . --list

opensky skill add / opensky skill install

Copies skills/opensky into the local agent directories:

# project: ./.agents/skills/opensky, ./.cursor/skills/opensky, ...
opensky skill add
opensky skill install

# user: ~/.agents/skills/opensky, ~/.cursor/skills/opensky, ...
opensky skill install --global
opensky skill add -g

skill add is an alias for skill install.

Manual copy:

mkdir -p .cursor/skills
cp -R skills/opensky .cursor/skills/opensky

Then start a new agent session (or /opensky) so the skill is picked up.

Usage

opensky                  # interactive async REPL  (prompt: opensky>)
opensky eval 'await opensky.list_apps()'
opensky eval --json 'return await opensky.get_app_state({app:"Calculator", disableDiff:true})'
opensky run script.js
opensky serve            # persist context across evals (token in OPENSKY_HOME/repl.json)
opensky stop
opensky doctor

The REPL evaluates each snippet as an async function body, so await works. A single expression is returned automatically; otherwise return the value you want printed. Date, Number, and other standard JS globals are in scope.

opensky serve binds 127.0.0.1 and requires the token stored in repl.json (mode 0600). The serve sandbox does not expose process or require. OPENSKY_HOME (default ~/.opensky) is created mode 0700; session.json is mode 0600.

opensky API

Same method contract as @oai/sky, implemented with Cua Driver:

| Method | Cua Driver tools used | | --- | --- | | list_apps() | list_apps | | get_app_state({app, disableDiff?}) | launch_app if needed, list_windows, get_window_state | | click | click / double_click | | drag | drag | | paste | clipboard_read / clipboard_write (text, html, or markdown) + hotkey (cmd/ctrl+v), clipboard restored | | perform_secondary_action | click action (increment/decrement/press/…), bring_to_front, or press_key | | press_key | press_key / hotkey (xdotool-style strings) | | scroll | scroll (element, coordinates, or the window) | | select_text | focus + Home/arrows (prefix/suffix disambiguation) | | set_value | set_value | | type_text | type_text |

opensky.target is "mac", "win", or "linux".

Recommended action loop

const before = await opensky.get_app_state({
  app: "Calculator",
  disableDiff: true,
});

await opensky.click({ app: "Calculator", element_index: 13 });

const after = await opensky.get_app_state({ app: "Calculator" });
console.log(after.text);

Element indices are snapshots. Some identifiers fail silently. An action can take effect even if a later screenshot capture rejects. Refresh state before retrying.

Development

Tests are TypeScript and run with Bun (bun test), which executes src/ directly — no tsc step required for the suite.

curl -fsSL https://bun.sh/install | bash
bun test

npm test is an alias for bun test. npm run build still emits the Node-compatible dist/ used by the published opensky bin.

Tests use a mock cua-driver so they run without a desktop or TCC grants.

Evals

Computer-use harness comparison (opensky vs Cua Driver vs Codex Computer Use) lives in evals/. Each case claims a Cua Fleet VM, runs gpt-5.6-sol, then a judge scores the transcript.

export FLEETS_TOKEN=...
export OPENAI_API_KEY=...
bun run evals -- --harness opensky,cua-driver,codex

Codex Computer Use needs a macOS Fleet image (CUA_EVAL_OS=macos and CUA_EVAL_IMAGE=...). See evals/README.md.