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

@klera/native-driver-ios

v0.1.25

Published

In-app native DeviceDriver for iOS — the preferred device-action path (ADR-0019). Ships as an Expo Module auto-linked via its config plugin; apps that use Expo Go fall back to the engine's idb-backed driver automatically.

Readme

@klera/native-driver-ios

In-app native DeviceDriver for iOS — the preferred device-action path for klera flows (ADR-0019). Ships as an Expo Module auto-linked via its config plugin; apps still on Expo Go fall back to the engine's idb-backed driver automatically.

Requirements

klera requires React Native's New Architecture (Bridgeless / Fabric, default since RN 0.74) — see ADR-0036. The runtime probes global.RN$Bridgeless at start-up and refuses to connect on Old Architecture. This native driver itself is architecture-agnostic at the UIKit layer (UIApplication.shared, UIAlertController, etc. are unchanged across architectures), but it only ever ships against hosts the runtime accepts.

Installing

npm install --save-dev @klera/native-driver-ios

Add the config plugin to your app.json:

{
  "expo": {
    "plugins": ["@klera/native-driver-ios"]
  }
}

Then prebuild and rebuild the iOS project:

npx expo prebuild --platform ios
npm run ios

Wiring

Pass KleraDriver to RuntimeClient alongside the usual provider and dispatcher:

import { RuntimeClient } from "@klera/runtime";
import { KleraDriver } from "@klera/native-driver-ios";

const client = new RuntimeClient({
  url: "ws://127.0.0.1:7345",
  info: { runtimeVersion: "1.0.0", platform: "ios", appId: "com.example.app" },
  provider,
  dispatcher,
  deviceDriver: KleraDriver,
});

When a dismissAlert step runs, the engine sends a device_action over the existing WebSocket bridge; the runtime hands it to KleraDriver.execute, which calls the Swift module via the Expo Module bridge; UIKit does the tap on the real UIAlertController.

Capabilities shipped

  • dismissAlert(label) — taps the UIAlertAction whose title matches label. Works for both .alert and .actionSheet styles.

See docs/compatibility-matrix.md at the repo root for the wider parity roadmap. Each capability wave adds a method here + a matching branch in the JS wrapper + a Swift implementation.

Dev-only

The podspec flags this module as dev-only via the KLERA_DEV_ONLY compile flag. The Swift code uses one non-public UIKit API (UIAlertAction.handler) — the same pattern Detox, Appium, and EarlGrey use. Keep the module in devDependencies so release builds never link it.

Behaviour when unlinked

If the native module is not linked (Expo Go, Android build, production build that skipped the pod), requireNativeModule throws at call time. The runtime catches this and replies to the bridge with no_driver_linked, which the engine's composite driver interprets as "fall back to idb". No flow changes required — the same YAML runs against the same engine regardless of which driver answered.