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

react-native-freedome

v1.0.0

Published

React Native bindings over @freedome/client: FreeDomeProvider, useFreeDome, useConnection, usePlayback, useAudio, useDomeDiscovery (react-native-zeroconf), encrypted token storage, freedome://pair links.

Readme

react-native-freedome

React Native bindings for Freedome domes over @freedome/client: one provider, a handful of hooks, secure token storage, mDNS discovery and freedome://pair links.

Licence: NativeMindNONC — see LICENSE. Non-commercial use is free under the licence terms; commercial use requires a licence from NativeMind sales (https://freedome.nativemind.us/commercial). Support: [email protected]. Upgrading from 0.1.x: see MIGRATION.md.

Install

npm install react-native-freedome @freedome/client
# optional native modules (dev build / prebuild, not Expo Go):
npm install react-native-encrypted-storage   # token storage in Keychain / EncryptedSharedPreferences
npm install react-native-zeroconf            # mDNS discovery of _freedome._tcp

Peer dependencies: react ≥ 18.2, react-native ≥ 0.74; react-native-encrypted-storage and react-native-zeroconf are optional and only loaded from their subpaths. Hermes needs crypto.getRandomValues (e.g. expo-crypto or react-native-get-random-values). iOS discovery needs NSBonjourServices: ["_freedome._tcp"] and NSLocalNetworkUsageDescription.

Use

import { FreeDomeProvider, useConnection, usePlayback, PlayTargets } from 'react-native-freedome';
import { encryptedTokenStore } from 'react-native-freedome/encrypted-storage';
import { zeroconfBrowser } from 'react-native-freedome/zeroconf';

export default function App() {
  return (
    <FreeDomeProvider
      appId="net.example.app"
      appName="Example"
      appVersion="1.0.0"
      tokenStore={encryptedTokenStore()}
      discovery={zeroconfBrowser()}
    >
      <Remote />
    </FreeDomeProvider>
  );
}

function Remote() {
  const { state, errorCode, pairingCode, connect, pair } = useConnection();
  const player = usePlayback();
  // connect('192.168.1.20') or pair('freedome://pair?host=…&code=…'); show pairingCode until approved on the dome
  // player.play(PlayTargets.show(showId)); player.pause(); player.seek(30_000); player.setVolume(0.5)
}

| API | What it does | | ---------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | <FreeDomeProvider> | Owns one FreedomeClient (or follows an external client); endpoint auto-connects; app lifecycle → background grace / resume; props tokenStore, discovery, transports, options, logger | | useFreeDome() | { client, state, connected, error, pairingCode, connect, pair, disconnect, logout, quickPlay (deprecated) } | | useConnection() | state machine state, isOnline, isBusy, errorCode, pairingCode, connect / pair / disconnect | | usePlayback({playerId, venueId}) | player state (status, stale) + play / pause / resume / stop / next / previous / seek(ms) / setVolume(0..1) | | useAudio({venueId, zones, generator}) | audio state, zones, generator state + setMasterGain / setMasterMute / setMaster / setZoneGain / setZoneMute / startGenerator / stopGenerator | | useDomeDiscovery({browser, timeoutMs}) | nearby domes (_freedome._tcp, deduplicated by TXT id), scanning, error, start / stop | | usePairingLinks() | pairs when the app opens a freedome://pair?… link (register the freedome URL scheme) | | EncryptedTokenStore(storage) | TokenStore over any {getItem, setItem, removeItem} secure storage | | /encrypted-storage, /zeroconf | encryptedTokenStore(), zeroconfBrowser() — the native-module wiring |

Errors carry stable codes (FreedomeError.code: unauthenticated, forbidden, offline, timeout, not-connected, validation, discovery-unavailable, …). Live control (playback, audio master / zones / generator) fails fast while offline and is never queued.

Tests

pnpm -F react-native-freedome test — jest with the react-native preset and @testing-library/react-native (renderHook, react-test-renderer 19) in Node 22, no device; @freedome/client is mapped to its sources and its in-memory fake (@freedome/client/testing). test:integration runs the provider against a freedome/fake-dome container (FD_FAKE_URL, FD_FAKE_KEY; see tool/docker-check.sh integration).