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

appium-wincore-java-bridge

v1.0.0

Published

Java Access Bridge (Swing / AWT) UI-tree bridge for appium-wincore-driver, as an installable Appium plugin

Readme

appium-wincore-java-bridge

Java Access Bridge (Swing / AWT) UI-tree bridge for appium-wincore-driver, as an installable Appium plugin.

The problem

Java Swing / AWT windows are opaque to out-of-process UI Automation — UIA sees a single childless Pane. The controls only exist in the JVM's own accessibility model (javax.accessibility / AccessibleContext).

The fix

A small agent JAR (appium-desktop-agent.jar) is loaded into the target JVM via the Java Attach API and walks the AccessibleContext tree, serving it over a loopback-TCP JSON protocol. The driver's server reaches it through a tree provider (ITreeProvider) contributed by this package's WincoreServer plugin (native/plugin/WincoreJavaBridge.dll).

Once attached, a Java window's subtree is stitched into the normal tree — standard findElement, getPageSource, click, getText, XPath all work against the Java controls (element ids carry a java: prefix; the driver routes them transparently).

Install

appium plugin install --source=npm appium-wincore-java-bridge
appium --use-plugins=wincore-java-bridge

Requires Appium 3 and appium-wincore-driver. The plugin registers its server-side tree provider by appending its native/plugin/ directory to the WINCORE_SERVER_PLUGINS environment variable at load, before any session starts.

Usage

Attach is a command, not a capability. Start the session on the target Java window (appTopLevelWindow capability, or switchToWindow first), then:

await driver.executeScript('windows: attachJavaSwing', []);
// optionally: await driver.executeScript('windows: attachJavaSwing', [{ jdkPath: 'C:\\jdk-21' }]);

// from here, the normal API reaches the Swing controls:
const btn = await driver.$('~submitButton');
await btn.click();

| Command | Params | Description | |---|---|---| | windows: attachJavaSwing | jdkPath? | Inject the JAB agent into the current window's JVM via the Attach API. jdkPath overrides JAVA_HOME / PATH for the one-shot loader. |

The JVM must allow the Attach API (default for a locally-launched app; some hardened deployments disable it). There is no launch-time -javaagent path in this plugin — if you need one, set JAVA_TOOL_OPTIONS=-javaagent:...\appium-desktop-agent.jar in the environment before the app starts.

Build from source

npm install
npm run build:all      # javac the agent (needs a JDK on PATH), publish the plugin DLL, tsc

Contract

The plugin DLL compiles against WincoreServerSdk (ITreeProvider, IServerPlugin). While the contract is still stabilising this is a relative project reference to a sibling appium-wincore-driver checkout; it moves to a published NuGet package once stable.