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/coresim

v1.7.0

Published

Native bindings to CoreSimulator.framework for Apple platform simulator control

Readme

@appium/coresim

Fast, native control of the iOS/tvOS/watchOS/visionOS Simulator from Node.js — no simctl subprocess, no CLI output to parse.

Why

Most tools drive the Simulator by shelling out to simctl and parsing its text output. @appium/coresim talks to the same underlying system directly, in-process. That means:

  • Faster — no process spawn per call.
  • More reliable — real errors instead of scraped stderr strings.
  • Async by design — every call returns a Promise and never blocks your app.

Install

npm install @appium/coresim

Works on any platform to install, but simulator control requires macOS. On other platforms (or when the Simulator isn't available), calls reject with a clear NativeSimUnavailableError instead of crashing.

Usage

import {NativeSimctl} from '@appium/coresim';

const sim = new NativeSimctl();

const devices = await sim.getDevices();
console.log(devices.map((d) => `${d.name} (${d.state})`));

const device = await sim.createDevice(
  'My Test Device',
  'com.apple.CoreSimulator.SimDeviceType.iPhone-15',
  'com.apple.CoreSimulator.SimRuntime.iOS-17-4',
);

await sim.bootDevice(device.udid);
await sim.waitForBoot(device.udid); // waits until the simulator is fully ready, not just "booted"

await sim.installApp(device.udid, '/path/to/MyApp.app');
await sim.launchApp(device.udid, 'com.example.MyApp');

await sim.shutdownDevice(device.udid);
await sim.deleteDevice(device.udid);

What it can do

  • Devices — list, create, delete, boot, shut down, and erase simulators; check real boot readiness with getBootStatus()/waitForBoot().

  • Apps — install, remove, launch, terminate, and inspect apps.

  • Processes — spawn a process on the simulator and stream its stdout/stderr live.

  • Screen capture — screenshots, video recording to a file, and a real-time encoded video stream — optionally with the device's own audio, muxed into the recording or interleaved into the stream (audio: true on startVideoRecording/startVideoStream). Audio capture requires:

    • macOS 14.2+ on the host (Core Audio process taps).
    • The host's "System Audio Recording Only" privacy permission (System Settings > Privacy & Security > Screen & System Audio Recording). This can't be granted programmatically, and a denial isn't a thrown error — it silently produces an audio-less/near-silent track.
    • A default audio output device on the host, and a booted simulator that has produced audio at least once (e.g. a foreground app that plays sound) — an empty guest process set throws.
    • Uses a host-side Core Audio API, not anything iOS-version-specific, so it's expected to work on any simulator runtime; only Xcode 26.x has actually been exercised so far.

    On some CI/headless hosts, starting an audio capture can block for a while before failing — see CLAUDE.md for the known root cause and current workaround.

  • Simulator settings — appearance (light/dark), accessibility (increase contrast, content size), location, and permissions.

  • Extras — keychain certificates, push notifications, and Darwin notifications.

Status

Early stage: core device and app lifecycle is implemented and tested; broader coverage is in progress.

See CLAUDE.md for architecture details.