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

tinkerdesk-tool-computer-use

v0.0.4

Published

TinkerDesk 外置工具:computer use——截屏 + 鼠标/键盘/拖拽 + 应用/浏览器自动化控制桌面(cua-driver)。完整工具形态(非 provider)

Readme

tinkerdesk-tool-computer-use

TinkerDesk 外置工具:computer use —— 截屏 + 鼠标/键盘/拖拽 + 应用窗口 + 浏览器自动化控制计算机桌面(基于 cua-driver,trycua/cua 开源 Rust 驱动)。

  • 完整工具形态(不经 provider 接口):dist/index.js 导出 { schema, execute }
  • 单工具 + action 判别(23 类动作:capture/click/type/key/scroll/drag/focus_app/cua_browser_* 等)
  • 内建安全门检:危险按键组合(锁屏/登出/清空废纸篓等)拒绝、危险 type 文本(curl|bash/sudo rm -rf/fork bomb 等)拒绝

安装(重要)

本工具依赖外置组件 cua-driver(Rust 二进制)。安装前请先阅读 install.md——按步骤检查/安装 cua-driver(含版本跟随策略:锁定 cua-driver ≥ 0.13.0)。

构建

源码为 TypeScript,发布/加载入口为 tsc 编译产物 dist/

npm install         # 安装 devDependencies(typescript + @types/node)
npm run build       # tsc -p tsconfig.json → dist/(ES2022 + CommonJS + strict + declaration)

执行 execute 时以 dist/index.js 为准——修改 src/ 后需重新 npm run build

协议

manifest: { id: "computer-use", entry: "dist/index.js", apiVersion: 1, kind: "tool", tool: { name: "computer_use", ... } }
dist/index.js: module.exports = { schema, execute }(tsc 编译输出)
execute(toolCall) → { ok: boolean, output?: string, error?: string }

目录

src/index.ts                 工具入口(schema + execute + action 分发 + 安全门检)
src/lib/schema.ts            23 action 常量 + ComputerUseAction 类型 + 安全规则(危险按键/危险文本)
src/lib/cua-driver-client.ts STDIO MCP 客户端(查找 cua-driver 可执行 + JSON-RPC 通信)
dist/                        构建产物(tsc 编译——发布与加载入口 dist/index.js)
tsconfig.json                ES2022 + CommonJS + strict + declaration,outDir=dist
manifest.json                工具清单(entry: dist/index.js)
install.md                   外置组件 cua-driver 安装说明