SDKs
Next.js SDK
Package: @veriq/next
Client component that captures errors, Web Vitals, navigation breadcrumbs, console calls, and clicks. Works with App Router and Pages Router.
Install with Claude Code
Paste this prompt into Claude Code. It will install the SDK, configure your app, and add the DSN env var automatically.
Add the @veriq/next SDK to my Next.js project.
Steps:
1. Run: npm install @veriq/next
2. In app/layout.tsx, import VeriqClient from '@veriq/next' and render <VeriqClient dsn={process.env.NEXT_PUBLIC_VERIQ_DSN!} /> inside <body>
3. Add NEXT_PUBLIC_VERIQ_DSN=[YOUR_DSN] to .env.local
4. Optionally add NEXT_PUBLIC_APP_VERSION and NEXT_PUBLIC_ENV env vars
5. Verify by triggering a test error: import { captureException } from '@veriq/next' and call captureException(new Error('test')) from a button click
My DSN: [paste your DSN from Project Settings → API Keys]Install
VeriqClient
Add to your root layout inside <body>:
Env vars
Click breadcrumbs
VeriqClient attaches a window-level click listener automatically — no setup required. Every click is recorded as a ui.click breadcrumb with a CSS-like selector for the clicked element (tag, id, up to 3 classes — e.g. button#submit.btn.btn-primary) and up to 40 characters of the element's trimmed text content.
Input values are never captured — text is read from textContent, which is empty for form fields. This is web/Next.js-only for now; the React Native SDK doesn't capture tap breadcrumbs yet.