@codmir/sdk
The official Codmir SDK for JavaScript and TypeScript applications. Track errors, replay user sessions, and integrate with the Codmir API.
npm install @codmir/sdk
Get started with Codmir SDK
You can use the SDK for error tracking, session replay, performance monitoring, and API integration.
Import the SDK for your platform: @codmir/sdk/nextjs for Next.js, @codmir/sdk/react-native for mobile, or @codmir/sdk/browser for vanilla JS.
Quick references
Platform imports
Next.js
@codmir/sdk/nextjsReact Native
@codmir/sdk/react-nativeBrowser
@codmir/sdk/browserNode.js
@codmir/sdk/overseerQuick Start (Next.js)
// instrumentation-client.ts
import * as Codmir from '@codmir/sdk/nextjs';
Codmir.init({
dsn: process.env.NEXT_PUBLIC_OVERSEER_DSN,
environment: process.env.NODE_ENV,
replaysSessionSampleRate: 0.1,
replaysOnErrorSampleRate: 1.0,
});See the getting started guide for more information, or the npm package for installation details.