@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, autonomous self-healing, 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
@codmir/sdk/nextjs@codmir/sdk/react-native@codmir/sdk/browser@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,
});Self-Healing Patches
When Overseer detects a production error, it can autonomously classify and apply a fix without a full redeployment. Three fix types are supported:
All patches go through a review gate — check your Inbox to approve or let Overseer auto-apply safe fixes while you're away. Every patch is linked to its ticket and incident for full traceability.
See the getting started guide for more information, or the npm package for installation details.