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

@ddgutierrezc/legato-react-native

v1.0.0

Published

Expo Modules binding package for Legato host apps.

Readme

@ddgutierrezc/legato-react-native

Expo Modules binding package for Legato host apps.

Status

  • Milestone 1 verified on iOS and Android Expo dev-build hosts.
  • Intended for Expo prebuild / development builds.
  • Expo Go is not supported for native playback validation.

Expo config plugin (milestone 1 baseline)

Add "@ddgutierrezc/legato-react-native" to your Expo plugins list to enable baseline native wiring during prebuild.

{
  "expo": {
    "plugins": ["@ddgutierrezc/legato-react-native"]
  }
}

What this plugin automates

  • Automates native baseline wiring for Expo prebuild/dev-build hosts.
  • iOS: ensures UIBackgroundModes includes audio exactly once.
  • Android: ensures foreground-service permissions and a valid expo.modules.legato.LegatoPlaybackService manifest declaration.

Milestone-1 option surface

  • Use the plugin as a plain string entry: "@ddgutierrezc/legato-react-native".
  • Milestone 1 does not expose advanced option knobs (no custom channels, no service class overrides, no arbitrary plist/manifest patch options).

What this plugin does NOT automate

  • Does not automate runtime playback orchestration (you still call runtime APIs in app code).
  • Does not automate lifecycle handling policy (you still register lifecycle listeners and validate behavior in your app).
  • Does not guarantee OEM-specific background reliability beyond baseline native wiring.

Host boundary

  • Expo Go is not supported for native playback validation.
  • Supported host for this claim is Expo dev build generated via expo prebuild and run with expo run:ios / expo run:android.

Installation

Install the package together with the published contract package:

npm install @ddgutierrezc/legato-react-native @ddgutierrezc/legato-contract

Add the Expo plugin to your app config:

{
  "expo": {
    "plugins": ["@ddgutierrezc/legato-react-native"]
  }
}

Then regenerate native projects and run the host app:

npx expo prebuild --clean
npx expo run:ios
npx expo run:android

What remains app-owned

  • runtime playback orchestration in app code
  • lifecycle policy and listener integration
  • app-specific UX around playback notifications and interruptions
  • validation on your target devices and OEMs

Capacitor parity mapping

This milestone aligns the React Native package to the same baseline surface used by @ddgutierrezc/legato-capacitor.

| Capacitor baseline export | React Native export | Notes | |---|---|---| | audioPlayer | audioPlayer | Command/query parity target for setup, queue mutation, transport, and snapshot queries. | | mediaSession | mediaSession | Remote command listener parity target. | | Legato | Legato | Unified facade parity target across player + media session. | | AUDIO_PLAYER_EVENTS / MEDIA_SESSION_EVENTS / LEGATO_EVENTS | same names | Event constants and listener tuple parity. | | createLegatoSync / createAudioPlayerSync | same names | Snapshot-first sync semantics (start() resync then subscribe). |

In-scope vs out-of-scope boundaries

In-scope for expo-react-native-parity-v1:

  • Baseline API shape parity with Capacitor exports.
  • Public type strictness for parity-covered inputs/outputs/events.
  • Runtime semantics parity evidence in Expo dev-build hosts (iOS + Android).

Out-of-scope for this milestone:

  • New product features not present in Capacitor baseline.
  • Expo Go runtime parity claims.
  • OEM/device-specific reliability guarantees beyond baseline host proof.

Troubleshooting parity validation

  • Host mismatch: Ensure validation runs in Expo dev builds only (expo prebuild, expo run:ios, expo run:android). Expo Go is not supported for native playback parity claims.
  • Missing evidence: Complete all required artifacts in docs/evidence/parity-readiness-checklist.md before claiming parity.
  • Unexpected behavior gaps: Record the mismatch and disposition in the evidence checklist; parity claim must stay blocked until disposition is resolved.

Package contents

  • Expo config plugin export via app.plugin.js
  • JavaScript binding surface under build/**
  • iOS native module file ios/LegatoModule.swift
  • CocoaPods spec legato-react-native.podspec
  • Android native module and playback service scaffolding under android/src/**

Repository

  • Source: https://github.com/ddgutierrezc/legato/tree/main/packages/react-native
  • Issues: https://github.com/ddgutierrezc/legato/issues

Contributing

Contributions are very welcome! Please refer to guidelines described in the contributing guide.