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

@fluentui-react-native/desktop-driver

v0.3.0

Published

W3C WebDriver-compatible automation for React Native desktop applications

Readme

React Native Desktop Driver

@fluentui-react-native/desktop-driver is a W3C WebDriver Classic-compatible remote end for automating React Native desktop applications. It drives macOS, React Native Windows Fabric, and React Native Win32 Paper without Appium and provides one portable WebdriverIO and story-test contract across those endpoints.

The package contains the client-neutral WebDriver service, typed clients, WebdriverIO integration, serializable test plans, bounded agent operations, evidence management, native-helper source and build tooling, and deterministic fake hosts for contract tests. It does not depend on Storybook, React, or React Native.

Supported targets

| Endpoint | Operating system | Architecture | Native implementation | | --------------------------- | ----------------- | ----------------------- | ----------------------------------------------------------- | | React Native macOS Fabric | macOS 14 or later | Apple Silicon (arm64) | Swift, AXUIElement, Quartz Event Services, ScreenCaptureKit | | React Native Windows Fabric | Windows 11 | x64 | C++20, UI Automation, SendInput, Windows Graphics Capture | | React Native Win32 Paper | Windows 11 | x64 | Same Windows helper and protocol |

V1 permits one active WebDriver session per physical target. Native builds run only on the target operating system. Installation never compiles or downloads a helper.

Start here

For a repository checkout, use Node 22.12 or later and Yarn 4:

yarn
yarn workspace @fluentui-react-native/desktop-driver build

Build the native helper explicitly on the machine that will run it:

# Windows or Win32
desktop-driver build-driver --platform windows

# macOS; use a stable identity for repeatable privacy authorization
desktop-driver build-driver --platform macos \
  --macos-signing-identity "Apple Development: Developer Name (TEAMID)"

Then resolve the verified helper, register a controlled application target, and start the loopback service:

import { createDesktopDriverServer, NativeDesktopHost, resolveNativeDesktopDriver } from '@fluentui-react-native/desktop-driver';

const artifact = await resolveNativeDesktopDriver({
  platform: 'windows',
});
const host = new NativeDesktopHost({
  application: {
    executablePath: 'C:\\apps\\MyReactNativeApp.exe',
    windowTitle: 'My React Native App',
  },
  artifact,
  endpoint: 'windows',
});
const service = await createDesktopDriverServer({
  targets: [
    {
      endpoint: 'windows',
      host,
      id: 'my-react-native-app',
      platformName: 'windows',
      renderer: 'fabric',
    },
  ],
});

console.log(service.url);
// Keep the service alive while tests run, then await service.close().

Connect through the sanctioned WebdriverIO surface:

import { connectDesktopWebdriver } from '@fluentui-react-native/desktop-driver/wdio';

const desktop = await connectDesktopWebdriver({
  platformName: 'windows',
  targetId: 'my-react-native-app',
  url: service.url,
});

try {
  const button = await desktop.browser.$('~save-button');
  await button.click();
} finally {
  await desktop.delete();
  await service.close();
}

The example launches the registered application. Use launchMode: 'attach' only when another trusted owner supplies and maintains the application lifecycle. The standalone desktop-driver serve command intentionally exposes a fake target for protocol and integration tests; it is not a native service shortcut.

See Getting started for installation, toolchains, first builds, and diagnostic commands.

Documentation

| Guide | Use it for | | --------------------------------------------------- | ---------------------------------------------------------------------------------------------- | | Getting started | Initial setup, package development, first helper build, and troubleshooting | | Architecture | Package layers, process boundaries, request flow, and ownership | | Service integration | Embedding the remote end, registering targets, launch/attach behavior, and clients | | Native helpers | Build and resolution policy, cache layout, verification, and configuration | | macOS native provider | Swift implementation, signing, TCC permissions, diagnostics, and native qualification | | Windows native provider | C++ implementation, toolchain, application identity, capture, and native qualification | | Test integration | WebdriverIO, authored story plans, fake harnesses, artifacts, and native tests | | CI integration | Package gates, native jobs, real-app smoke, signing, and artifacts | | Security model | Loopback boundary, registered targets, helper trust, process ownership, and sensitive evidence | | WebDriver contract | Supported W3C routes, capabilities, elements, errors, and Storybook extensions | | Native wire protocol | Private framed stdio protocol between Node and the native helper | | Remaining work | Qualification and release work that is not complete | | Changelog | Versioned package changes |

Contributors and coding agents start with AGENTS.md.

Public entry points

| Export | Purpose | | ------------ | ----------------------------------------------------------------------------------------- | | Package root | Native-helper build/resolution, DesktopHost, server, low-level client, and common types | | /authoring | Serializable story plans, selectors, capabilities, and result types | | /wdio | WebdriverIO connection, custom commands, assertions, and story-plan runner | | /client | Low-level typed W3C client | | /server | Embeddable remote end, session manager, and target registry | | /agent | Bounded JSON-safe inspection, action, and evidence API | | /artifacts | Confined, atomic evidence persistence | | /runner | Plan selection, sharding, execution, and result classification | | /storybook | Story manifest and orchestration contracts, without a Storybook dependency | | /testing | Fake host, fake Storybook orchestrator, and protocol harnesses | | /cli | Embeddable Commander command and CLI runner |

The service implements native application semantics rather than pretending to be a browser. Unsupported browser features return unsupported operation instead of fabricated success.