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

@shaykec/appxray-react-native

v0.1.5

Published

appxray SDK for React Native apps — gives AI agents inside-out access to your mobile app

Downloads

607

Readme

@shaykec/appxray-react-native

appxray SDK for React Native apps — gives AI coding agents inside-out access to your iOS and Android mobile app.

npm

Instant Setup — Paste This to Your AI Agent

Copy this into Cursor, Claude Code, or any MCP-capable AI agent chat and it will do the rest:

Integrate appxray into my React Native app:

  1. Add to MCP config (.cursor/mcp.json): { "mcpServers": { "appxray": { "command": "npx", "args": ["-y", "@shaykec/appxray-mcp-server"], "env": { "APPXRAY_AUTO_CONNECT": "true" } } } }
  2. Run npm install @shaykec/appxray-react-native
  3. Create src/appxray-setup.ts that calls appxray.init({ appName: "MyApp" }) and exports init/shutdown functions
  4. In App.tsx, call initAppXray() inside a useEffect with shutdownAppXray() as cleanup
  5. Optional: wrap Zustand stores with appxrayMiddleware("storeName") (import from @shaykec/appxray-react-native/middleware/zustand)
  6. Verify the build succeeds and the app is discoverable

What It Does

Embed this lightweight SDK in your React Native app, and AI agents (via the appxray MCP server) can:

  • Inspect the component tree with props and state
  • Read and write state stores (Zustand, Redux)
  • Monitor network requests and responses
  • Read/write AsyncStorage
  • Navigate programmatically
  • Interact with the UI — tap, type, swipe, fill forms
  • Install API mocks without touching code
  • Trace function calls with an automatic Babel transformer

Install

npm install @shaykec/appxray-react-native

Quick Start

// src/appxray-setup.ts
import appxray from "@shaykec/appxray-react-native";

export function initAppXray() {
  appxray.init({ appName: "MyApp" });
}
export function shutdownAppXray() {
  appxray.shutdown();
}
// App.tsx
import { useEffect } from "react";
import { initAppXray, shutdownAppXray } from "./appxray-setup";

export default function App() {
  useEffect(() => {
    initAppXray();
    return () => shutdownAppXray();
  }, []);

  return <MainNavigator />;
}

Zustand Integration

import { create } from "zustand";
import { appxrayMiddleware } from "@shaykec/appxray-react-native/middleware/zustand";

export const useStore = create<AppState>()(
  appxrayMiddleware("app")(
    (set) => ({ /* your store */ })
  )
);

Function Tracing

Add the Babel transformer for automatic function-level tracing:

// babel.config.js
module.exports = {
  presets: ["module:@react-native/babel-preset"],
  plugins: [
    ["@shaykec/appxray-react-native/trace-transformer", { include: ["src/**"] }],
  ],
};

Exports

| Import Path | Description | |-------------|-------------| | @shaykec/appxray-react-native | Core SDK and init | | @shaykec/appxray-react-native/provider | React context provider | | @shaykec/appxray-react-native/middleware/zustand | Zustand middleware | | @shaykec/appxray-react-native/trace-runtime | Trace runtime helpers | | @shaykec/appxray-react-native/trace-transformer | Babel transformer |

MCP Server Required

This SDK exposes your app's internals via WebSocket. To connect an AI agent, add the MCP server to your agent's config:

{
  "mcpServers": {
    "appxray": {
      "command": "npx",
      "args": ["-y", "@shaykec/appxray-mcp-server"],
      "env": { "APPXRAY_AUTO_CONNECT": "true" }
    }
  }
}

Related Packages

License

MIT