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

seeless-uia

v0.1.0

Published

Windows UI Automation CLI for AI agents -- native app interaction via UIA

Readme

SeelessUIA

简体中文

Windows UI Automation CLI for AI agents. Exposes desktop applications through Microsoft UI Automation (UIA) as structured accessibility trees — with stable element refs and native interaction commands.

Uses the snapshot + ref model: take a snapshot to discover elements, then interact by ref. Designed for AI agent workflows where context tokens are expensive and structured data beats pixel inference.

What this is

  • A UIA-first automation layer for Windows desktop apps. Best for Win32, WPF, WinForms, and UWP applications that expose meaningful accessibility trees.
  • Provides stable refs (e1, e2, ...) that agents can click, fill, expand, and verify.
  • Returns structured state: role, name, value, checked, expanded, selected, automationId, bounding rect.
  • Runs as a lightweight CLI + persistent TCP daemon (auto-start), suitable for agent pipelining.

What this is not

  • Not a universal visual desktop agent. It does not "see" the screen — it reads UIA trees. Apps that don't expose UIA (canvas renders, custom frameworks, some Electron apps) will return empty or incomplete snapshots.
  • Not a replacement for agent-browser in browser scenarios. If you're automating a web page inside a browser, use agent-browser / CDP directly.
  • Not a screenshot-to-action tool. Screenshot is available but intended for visual verification by a local VLM model — not as the primary discovery mechanism.

Quick Start

# Install
npm install -g seeless-uia

# Requires: Windows, .NET 10 Runtime
# Explore Calculator
seeless-uia app launch calc
seeless-uia wait 2000
seeless-uia snapshot -i          # Get interactive elements with refs
seeless-uia click e28            # Click "5"
seeless-uia get text control:Text  # Read the display

# Explore VS Code
seeless-uia app launch code
seeless-uia wait 2000
seeless-uia snapshot -i          # Tabs, buttons, tree items, status bar
seeless-uia find text "资源管理器" click

The Core Loop

1. windows          Discover windows → w1, w2, w3
2. snapshot w1 -i    Take snapshot → e1, e2, e3...
3. click e2          Interact by ref
4. snapshot -i --diff  Verify changes (added/removed/modified)

Refs are valid until the window state changes. After dialogs, tab switches, or expansions, take a fresh snapshot.

Token-saving tips:

  • Verify text with get value, find text "X" text, or wait --text "X" — no snapshot needed
  • snapshot -i --diff gives only changed elements (but costs the same as a full snapshot internally)
  • Prefer plain text output over --json for AI consumption — fewer chars, no escape overhead

Core Commands

| Category | Commands | |----------|----------| | Discovery | windows, window wN, app launch <name>, ping, close [wN] | | Snapshot | snapshot [wN] [-i] [-c] [-d <n>] [--diff] [--json] | | Interaction | click, dblclick, fill, type, press, hover, scroll, check, uncheck, focus, expand, collapse, select | | Read | get text, get value, get box, get count, get attr | | Check | is visible, is enabled, is checked | | Find | find role/text/label/placeholder <criteria> <action> | | Wait | wait <sel>, wait <ms>, wait --text <text> | | Raw | keyboard type, keydown/up, mouse move/down/up/wheel, clipboard read/write/copy/paste, screenshot |

Full command reference in the skill docs.

Compatibility

SeelessUIA depends on applications exposing UIA accessibility trees. Coverage varies by UI framework:

| Framework | Support | Notes | |-----------|---------|-------| | UWP | Good | Settings, Calculator — full tree access | | WPF | Good | Standard controls well-exposed | | Win32 | Partial | Standard controls work; system/elevated processes may return empty trees | | Electron | Partial | File trees, tabs, buttons exposed; headings/ARIA/input areas often missing | | Custom renderers | Poor | Canvas, custom-drawn controls rarely expose UIA |

See docs/compatibility.md for tested applications. Contributions welcome.

Snapshot Output

- document "project - Visual Studio Code" [ref=e1] scrollable
  - tablist [actions-container]
    - tab "资源管理器 (Ctrl+Shift+E)" [ref=e2] selectable
    - tab "搜索 (Ctrl+Shift+F)" [ref=e3] selectable
  - tree "文件资源管理器" [ref=e48] clickable
    - treeitem "src" [ref=e49] selectable
      - generic "E:\\project\\src" [ref=e50] clickable

Each line carries: indented tree depth, role, name, attributes [ref, state, hints], interactivity kind (clickable, selectable, editable...).

Installation from Source

git clone https://github.com/yaki1210/Seeless-UIA
cd Seeless-UIA
dotnet build SeelessUIA.slnx -c Release
# Run directly:
src\bin\Release\net10.0-windows\SeelessUIA.exe windows

Requirements: Windows, .NET 10 SDK with Windows Desktop workload.

Documentation

Architecture

CLI → TCP daemon (auto-start, port 9222) → UIA COM API. The daemon holds one RefMap + WindowRegistry across commands. Snapshot runs a 5-stage pipeline: Build → Clean → Detect Interactivity → Assign Refs → Render.

License

MIT