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

@goliapkg/smix

v9.0.0

Published

Playwright-shape iOS Simulator / Android emulator UI automation SDK for React Native + Expo + Detox-compatible TypeScript test runners.

Readme

@goliapkg/smix

TypeScript types and host-side building blocks for smix — AI-native UI automation for the iOS Simulator and Android emulator.

Live driving runs through the napi addon. This package ships the same typed API surface as the Swift / Kotlin / Rust SDKs; Smix.launchApp, App.tap, App.fill, and the rest drive a device by calling into @goliapkg/smix-node. Smix.launchApp loads the per-platform addon automatically (via loadNodeDriver); the addon is built by a per-triple prebuild matrix in CI, and its npm release follows in a later version — you can also inject a NodeDriver explicitly for tests or a custom transport. Three surfaces still throw SmixNotImplementedError pending their transport: App.screenshot and App.openUrl need a runner wire route, and App.launchFresh needs host-side state clearing. To drive a device without the addon today, use the smix CLI or one of the Swift / Kotlin / Rust SDKs.

What works today

  • Selector DSL — the full selector language, encoding to the exact JSON wire shape the Rust core resolves.
  • Session lifecycleSession.open / stillValid / relaunchApp / renewActivation / close against a running smix runner, over HTTP.
  • ExpectationFailure — parse and produce smix's AI-readable failure JSON.
  • A11yNode — typed accessibility-tree model with flatten / findById / rectCenter helpers for working with smix tree --json output.

Installation

bun add -D @goliapkg/smix
# OR
npm install -D @goliapkg/smix

Test-target only: keep it in devDependencies, never bundled into a production RN / Expo app.

Selector

import { Selector, literal, regex } from '@goliapkg/smix'

Selector.id('btn-login')
Selector.text(literal('Sign In'))
Selector.text(regex('^Sub', 'i'))
Selector.label('Settings')
Selector.role('button', literal('Submit'))
Selector.localizedText({ en: 'Submit', ja: '送信' })

// Fluent modifier chaining (returns a new Selector)
Selector.id('btn').below(Selector.text(literal('Address'))).nth(0)
Selector.role('button').near(Selector.text(literal('Confirm')))

Wire JSON (untagged + flattened — byte-identical to Rust smix-selector):

{"id": "btn-login", "below": {"text": "Address"}, "nth": 0}

Session lifecycle

import { HttpSimRuntime, Session } from '@goliapkg/smix'

const runtime = new HttpSimRuntime('http://127.0.0.1:22087')
const session = await Session.open(runtime, 'com.example.app')
await session.relaunchApp()
await session.close()

HttpSimRuntime also exposes resolver / labelsResolver, which resolve a selector against a caller-supplied tree JSON via the runner's /select/resolve routes.

ExpectationFailure

import { ExpectationFailure } from '@goliapkg/smix'

try {
  // a driving call, once the native transport lands
} catch (e) {
  if (e instanceof ExpectationFailure) {
    e.code            // 'ELEMENT_NOT_FOUND' | 'AMBIGUOUS' | 'TIMEOUT' | ...
    e.visibleElements // A11yNode[] — context for AI diagnosis
    e.suggestions     // string[]
    e.toJson()        // single-line JSON for agent consumption
  }
}

License

Apache-2.0 OR MIT (dual, at your option).