@innoapm/sdk-browser
v0.4.0
Published
Browser SDK for the innoAPM platform
Readme
@innoapm/sdk-browser
Browser SDK for innoAPM — an error tracking and application performance monitoring platform.
Auto-captures window.onerror, unhandled promise rejections, and rich breadcrumbs (console, fetch, click events, SPA navigations).
Install
npm install @innoapm/sdk-browserQuick start
import { init } from "@innoapm/sdk-browser";
init({
dsn: "http://PUBLIC_KEY@your-innoapm-host/PROJECT_ID",
environment: "production",
release: window.__APP_VERSION__,
});The DSN's public key is safe to ship to the browser — it can only write events to its project, nothing else.
Manual capture
import { captureException, captureMessage, addBreadcrumb } from "@innoapm/sdk-browser";
try {
doWork();
} catch (err) {
captureException(err, { screen: "checkout" });
}
captureMessage("payment retried", "warning");
addBreadcrumb({ category: "ui", message: "cart opened" });Using Next.js?
Use @innoapm/sdk-nextjs instead — it wraps this SDK plus the server-side one and handles next.config integration.
Docs
Full usage guide and DSN format live in the main repo.
License
MIT © Innoworks Software Solutions Pvt Ltd
