SDKs
Node.js SDK
Package: @veriq/node
Works with Express, Fastify, Hono, and any Node.js server. Captures unhandled errors and unhandled promise rejections automatically.
Install with Claude Code
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/node SDK to my Node.js project.
Steps:
1. Run: npm install @veriq/node
2. At the top of your entry file (before other imports), add:
import veriq from '@veriq/node';
veriq.init({ dsn: process.env.VERIQ_DSN!, environment: process.env.NODE_ENV });
3. Add VERIQ_DSN=[YOUR_DSN] to your .env file
4. Unhandled errors and rejected promises are captured automatically — no middleware needed
My DSN: [paste your DSN from Project Settings → API Keys]Install
Initialize
Call init() at the very top of your entry file, before any other imports:
Manual capture
Express / Fastify
Unhandled exceptions are captured automatically. For Fastify, add a global error handler to also capture handled errors: