@interfere/react
v8.1.0
Published
Client-side React SDK for Interfere. Error tracking, session replay, and analytics.
Maintainers
Readme
Framework Guides
| Framework | Package | Guide |
| --- | --- | --- |
| Next.js | @interfere/next | docs/next.md |
| Vite | @interfere/vite + @interfere/react | docs/vite.md |
Installation
npm install @interfere/reactPrerequisites
- 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: "[email protected]",
name: "Jane",
source: { type: "clerk", name: "Clerk" },
});
const sessionId = session.getId();
}Documentation
Visit interfere.com/docs for the full documentation.
License
MIT
