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-tanstack-query-devtools-dashboard

v0.1.3

Published

Web dashboard and bridge server for React Native TanStack Query Devtools. Runs as a CLI that starts an HTTP server (dashboard UI) and a WebSocket server (bridge relay), then renders the official TanStack Query Devtools panel for connected devices.

Readme

react-native-tanstack-query-devtools-dashboard

Web dashboard and bridge server for React Native TanStack Query Devtools. Runs as a CLI that starts an HTTP server (dashboard UI) and a WebSocket server (bridge relay), then renders the official TanStack Query Devtools panel for connected devices.

Usage

Run without installing:

pnpm dlx react-native-tanstack-query-devtools-dashboard

Or install globally:

npm install -g react-native-tanstack-query-devtools-dashboard
rn-tanstack-query-devtools

The command starts two servers and prints their URLs:

Dashboard: http://localhost:42831
WebSocket: ws://localhost:9090

Open the dashboard URL in your browser. Connected apps appear automatically in the Connected Apps panel. Click View devtools to open the TanStack Query Devtools panel for that device.

CLI options

rn-tanstack-query-devtools [--host 0.0.0.0] [--port 42831] [--ws-port 9090] [--log-level info] [--no-android-tools] [--no-ios-tools]

| Flag | Default | Description | |---|---|---| | --host | 0.0.0.0 | Bind address | | --port | 42831 | HTTP port for the dashboard UI | | --ws-port | 9090 | WebSocket port for the bridge relay | | --log-level | info | Structured log level: none, error, info, debug | | --no-android-tools | false | Disable Android tooling | | --no-ios-tools | false | Disable iOS tooling | | --help, -h | | Print usage info |

Environment variables are also supported:

| Variable | Maps to | |---|---| | RN_TQ_DEVTOOLS_HOST / HOST | --host | | RN_TQ_DEVTOOLS_PORT / PORT | --port | | RN_TQ_DEVTOOLS_WS_PORT / WS_PORT | --ws-port | | RN_TQ_DEVTOOLS_LOG_LEVEL | --log-level |

Architecture

Backend

  • HTTP server -- serves the dashboard SPA and a REST API for Android and iOS device management
  • WebSocket server -- relays messages between devices (role react-query-device) and dashboards (role react-query-dashboard) using the protocol defined in react-native-tanstack-query-devtools-core

Frontend

  • React 19 SPA built with Vite
  • Hydrates a mirror QueryClient from device snapshots
  • Renders the official @tanstack/react-query-devtools panel against the mirror client
  • Forwards devtools actions (refetch, invalidate, etc.) back to the device

Data flow

Device app                Bridge server              Dashboard browser
  |                           |                           |
  |-- hello (device role) --> |                           |
  |<-- ready (clientId) ----- |                           |
  |                           | <-- hello (dashboard) --- |
  |                           | --- ready (clientId) ---> |
  |                           | --- deviceList ---------> |
  |-- snapshot -------------> | --- snapshot ------------> |
  |                           |                           |
  |                           | <-- action (refetch) ---- |
  |<-- action (refetch) ----- |                           |
  |-- snapshot (result) ----> | --- snapshot ------------> |

Platform integration

The dashboard UI includes panels for:

  • ADB Devices -- lists connected Android devices/emulators and lets you reconnect them while refreshing the required reverse port rules
  • Direct Connect -- connect to a device by IP:port (e.g., wireless ADB)
  • iOS Devices -- lists discovered simulators and physical devices, then shows the right host guidance for each

Android tooling removes the need to run adb reverse commands manually. iOS tooling focuses on discovery and diagnostics: simulators use localhost, while physical devices need a LAN-reachable host. Disable each platform independently with --no-android-tools or --no-ios-tools.

REST API

The dashboard exposes a small API used by its own frontend:

| Method | Path | Description | |---|---|---| | GET | /api/status | Server config + connected devices | | GET | /api/adb/devices | List ADB devices | | POST | /api/adb/reconnect | Connect/reconnect a device and refresh reverse rules | | POST | /api/adb/connect | Connect to a device by address | | POST | /api/adb/pairing/start | Start a QR-based ADB pairing session | | GET | /api/adb/pairing/:id | Poll a pairing session | | GET | /api/ios/status | iOS tooling availability and support | | GET | /api/ios/devices | List discovered iOS simulators and devices | | GET | /api/ios/connection-hints | Recommended host guidance per iOS device | | POST | /api/ios/refresh | Refresh iOS devices and host guidance | | GET | /config.json | Dashboard frontend config (WebSocket URL, etc.) |