npm.io
9.0.2 • Published 10h ago

@interfere/react

Licence
MIT
Version
9.0.2
Deps
6
Size
167 kB
Vulns
0
Weekly
424

@interfere/react

Client-side React SDK for Interfere — error tracking, session replay, and analytics.

Documentation · Feature Requests · Report a Bug · Get Help


Framework Guides

Framework Package Guide
Next.js @interfere/next docs/next.md
Vite @interfere/vite + @interfere/react docs/vite.md

Installation

npm install @interfere/react
Prerequisites
  • React >=19

Quick Start

import { InterfereProvider } from "@interfere/react/provider";

function App() {
  return (
    <InterfereProvider>
      <YourApp />
    </InterfereProvider>
  );
}

Features

  • Error tracking — automatic capture of uncaught errors and unhandled rejections
  • Session replay — full visual playback of user sessions
  • Page analytics — SPA-aware pageviews and UI interaction events
  • Rage click detection — surface frustrated user behavior
  • User identity — attach user context to sessions
  • Offline resilient — events are persisted and delivered in the background

Hooks

import { useInterfere } from "@interfere/react/provider";

function MyComponent() {
  const { identity, session } = useInterfere();

  identity.set({
    identifier: "usr_123",
    email: "jane@example.com",
    name: "Jane",
    source: { type: "clerk", name: "Clerk" },
  });

  const sessionId = session.getId();
}

Documentation

Visit interfere.com/docs for the full documentation.

License

MIT

Keywords