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

hint.dev

v1.8.1

Published

React Native SDK for session recording, replay, and remote control

Readme

hint.dev

React Native SDK for session recording, replay, remote control, and guided support tours.

Installation

npm install hint.dev \
  react-native-view-shot @react-native-async-storage/async-storage

For Expo:

npx expo install hint.dev \
  react-native-view-shot @react-native-async-storage/async-storage
# Requires a development build (Expo Go does not support the native
# screenshot / remote-control modules).
npx expo prebuild && npx expo run:ios   # or run:android

Upgrading on Android

This SDK ships an autolinked native Android module (PixelCopy) that captures views with elevation/shadows/MapView correctly — react-native-view-shot silently drops those on Android. After upgrading, you must rebuild the Android app for autolinking to pick it up:

cd android && ./gradlew clean && cd ..
npx react-native run-android
# Expo bare / development build:
npx expo run:android --no-build-cache

Requires Android 7.0+ (API 24). On older devices and on iOS, capture automatically falls back to react-native-view-shot.

Known limitation: PixelCopy captures the activity's window only, so React Native Modal, react-native-modal, react-native-paper Dialog, and bottom-sheet libraries that use the Modal API render in a separate Window and will not appear in screenshots. @gorhom/bottom-sheet renders inline in the React tree and is captured normally. If PixelCopy ever throws on a device, the SDK logs a warning and silently falls back to view-shot for the rest of the session.

Quick Start (recommended)

Drop a single <SessionReplayProvider> at your app root. It wires up:

  • SessionReplay.init(config)
  • screenshot capture (using react-native-view-shot)
  • wireframe root attach
  • gesture (tap / swipe) capture
  • the guided-tour overlay (consent prompt + edge halo + laser pointer + End Tour pill)
  • the remote-control overlay (visualizes incoming taps)
  • iOS keyboard auto-pause for screenshot capture (avoids password-field flicker)
import { SessionReplayProvider } from 'hint.dev';
import SessionReplay from 'hint.dev';
import { NavigationContainer } from '@react-navigation/native';

export default function App() {
  return (
    <SessionReplayProvider
      config={{
        serverUrl: 'https://smartlook.replit.app/api',
        appId: 'app_XXXXXXXXXXXX',
        teamId: 'team_XXXXXXXXXXXX', // optional but recommended — server verifies it matches the app
        user: { userId: 'user_123', userName: 'Jane Smith' },
        enableScreenshots: true,
        enableRemoteControl: true,
        enableWireframeRecording: true,
      }}
      onReady={(sessionId) => console.log('session', sessionId)}
    >
      <NavigationContainer
        onStateChange={(state) => {
          const route = state?.routes[state.index];
          if (route) SessionReplay.trackScreen(route.name);
        }}
      >
        {/* your screens */}
      </NavigationContainer>
    </SessionReplayProvider>
  );
}

Important — Do NOT double-mount the guided tour

SessionReplayProvider already mounts <GuidedTourOverlay /> for you. Wrapping additionally with <GuidedTourProvider> or rendering <GuidedTourOverlay /> manually creates two overlays stacked on top of each other — the user has to click Allow / End Tour twice (once per overlay).

SDK 1.7.12+ guards against this with a singleton check: extra instances silently no-op and log a warning in dev mode. Easiest fix: remove the extra wrapper.

To opt out of the auto-mount and place the overlay yourself:

<SessionReplayProvider config={...} enableGuidedTour={false}>
  ...
</SessionReplayProvider>

Customizing the consent prompts

Pass renderers directly to the provider:

<SessionReplayProvider
  config={...}
  renderGuidedTourConsent={({ agentName, onAccept, onDecline }) => (
    <MySheet title={`${agentName ?? 'Support'} wants to guide you`}
             onAccept={onAccept} onDecline={onDecline} />
  )}
  renderGuidedTourVoiceConsent={({ onAccept, onDecline }) => (
    <MyVoicePrompt onAccept={onAccept} onDecline={onDecline} />
  )}
>
  ...
</SessionReplayProvider>

Note: the built-in consent prompt is rendered as an inline absolutely- positioned View, not a native <Modal>. RN Modals leave a stale native window behind for several frames after dismiss, which silently swallows touches in the overlay that mounts next (e.g. the End Tour pill).

Privacy

SessionReplay.pause();   // ... sensitive operation ... SessionReplay.resume();

<SessionReplay.PrivacyLayer redact>
  <CreditCardForm />
</SessionReplay.PrivacyLayer>

While the iOS keyboard is up, screenshot capture is paused automatically to avoid UIKit's secure-text-entry redaction (which would otherwise make password fields flicker every time a frame is captured).

API

  • SessionReplay.init(config) — initialize and start recording
  • SessionReplay.trackScreen(name) — track screen navigation
  • SessionReplay.trackEvent(name, data) — log custom events
  • SessionReplay.pause() / SessionReplay.resume() — pause/resume recording
  • SessionReplay.stop() — end the session
  • SessionReplay.startLiveSession() / endLiveSession() — toggle live streaming
  • SessionReplay.onRemoteCommand(handler) — listen for remote commands
  • SessionReplay.setScreenshotCapture(fn) — manual override (Provider does this for you)
  • SessionReplay.setCaptureSuppressed(bool) — manual capture pause toggle
  • SessionReplay.attachRoot(ref) — manual wireframe root (Provider does this for you)

Data retention

All session data, events, and screenshots are deleted 48 hours after session creation. Cleanup runs hourly on the server.

License

MIT