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

replicate-interceptor-rn

v0.1.0

Published

React Native interceptor package for the Replicate iOS Simulator developer tool

Readme

replicate-interceptor-rn

This plugin is a companion for the Replicate App — install Replicate on your Mac, add this plugin to your React Native app, and you're ready to record, restore, and tamper with your iOS Simulator sessions.


Replicate is a macOS developer tool that lets you save and restore full iOS Simulator app state snapshots. It captures your app's data container, records all network traffic, and lets you tamper with requests and responses — so you can reproduce any app state instantly and test edge cases without touching production.

Replicate

This plugin hooks into your React Native app's network layer by patching XMLHttpRequest once. Since fetch and axios both use XHR under the hood in RN, they're covered automatically — no extra config needed. Replicate activates it on demand by writing a session config before launch. When that file is absent — normal dev runs, CI, production — init() returns immediately and patches nothing.


Install

npm install replicate-interceptor-rn
cd ios && pod install

Optionally, install react-native-keychain to enable Keychain capture and restore (keeps login state across snapshot restores):

npm install react-native-keychain
cd ios && pod install

Setup

index.js

Keep AppRegistry.registerComponent synchronous — do not await anything before it:

import { AppRegistry } from 'react-native';
import App from './src/App';
import { name as appName } from './app.json';

AppRegistry.registerComponent(appName, () => App);

App.tsx

Call init() before any navigation or auth logic renders:

import React, { useEffect, useState } from 'react';
import { ReplicateInterceptor } from 'replicate-interceptor-rn';
import RootNavigator from './navigation/RootNavigator';

export default function App() {
  const [ready, setReady] = useState(false);

  useEffect(() => {
    ReplicateInterceptor.init().finally(() => setReady(true));
  }, []);

  if (!ready) return null;
  return <RootNavigator />;
}

That's it. Replicate handles the rest.


Requirements

  • React Native ≥ 0.72
  • iOS Simulator (macOS host)
  • Replicate macOS app