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-android

v0.1.25

Published

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

Downloads

3,035

Readme

@klera/native-driver-android

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

Status

A28-2 (this wave) is the package scaffold. Every method on the Kotlin side currently throws mobile_e2e_not_implemented — the runtime catches that and replies no_driver_linked, so the engine's adb fallback kicks in for now.

Subsequent waves implement the real bodies:

  • A28-3 — tap / type / scroll via FabricUIManager
  • A28-4 — multi-touch (multiTap, pinch)
  • A28-5 — screenshot via PixelCopy + frame capture (ADR-0026)
  • A28-6 — system UI (dismissAlert / dismissActionSheet / dismissKeyboard) via AccessibilityService, hardware back button, orientation, clipboard

Requirements

klera requires React Native's New Architecture (Bridgeless / Fabric, default since RN 0.74) — see ADR-0036. The Kotlin module targets the Fabric dispatch surface; no legacy UIManager path is shipped.

Installing

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

Add the config plugin to your app.json:

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

Then prebuild and rebuild the Android project:

npx expo prebuild --platform android
npm run android

Wiring

Pass KleraDriver to RuntimeClient alongside the usual provider and dispatcher:

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

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

(Note: 10.0.2.2 is the Android emulator's loopback alias for the host's 127.0.0.1. On a physical device, point the URL at the host machine's LAN IP and ensure both are on the same network.)

Dev-only

Keep the package in devDependencies so production builds never link the Kotlin module. Some methods will reach for internal RN APIs (FabricUIManager event injection) that are not safe for release builds. Same constraint as @klera/native-driver-ios.

Behaviour when unlinked

If the native module is not linked (Expo Go, iOS build, production build that skipped the autolink), 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 adb" (ADR-0028 A28-7 + A28-9). No flow changes required — the same YAML runs against the same engine regardless of which driver answered.