New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@errpulse/node

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@errpulse/node

ErrPulse Node.js backend SDK — catch every backend error automatically

latest
Source
npmnpm
Version
0.5.1
Version published
Weekly downloads
23
-81.45%
Maintainers
1
Weekly downloads
 
Created
Source

@errpulse/node

@errpulse/node

Backend error monitoring SDK for Node.js, Express, and Next.js. Part of ErrPulse — the error monitoring tool that runs with one command.

Installation

npm install @errpulse/node

Quick Start

// Zero-config — auto-captures uncaught exceptions, rejections, console.error
import "@errpulse/node";

That's it. Errors are sent to http://localhost:3800 by default.

What Gets Caught

Error TypeHow
Uncaught exceptionsprocess.on('uncaughtException')
Unhandled promise rejectionsprocess.on('unhandledRejection')
Express route errors (4xx/5xx)Error handler middleware
Next.js API route errorswithErrPulse() wrapper
console.error callsMonkey-patch
console.log/warn/info/debugMonkey-patch (opt-in)
Memory warningsPeriodic process.memoryUsage() check
All HTTP requestsRequest handler middleware

Configuration

import { init } from "@errpulse/node";

init({
  serverUrl: "http://localhost:3800",
  projectId: "my-api",
  enabled: true,
  sampleRate: 1.0,
  captureConsoleErrors: true,
  captureConsoleLogs: false, // opt-in: capture console.log/warn/info/debug to Logs dashboard
  captureUncaughtExceptions: true,
  captureUnhandledRejections: true,
  monitorMemory: true,
  memoryThresholdMB: 512,
  memoryCheckIntervalMs: 30000,
  beforeSend: (event) => event, // Modify or drop events before sending
});

Config Reference

OptionTypeDefaultDescription
serverUrlstring"http://localhost:3800"ErrPulse server URL
projectIdstringundefinedProject identifier for multi-project setups
enabledbooleantrueEnable or disable the SDK
sampleRatenumber1.0Sample rate from 0.0 to 1.0 (1.0 = capture all)
captureConsoleErrorsbooleantrueCapture console.error calls
captureConsoleLogsbooleanfalseCapture console.log/warn/info/debug to Logs view
captureUncaughtExceptionsbooleantrueCapture uncaught exceptions
captureUnhandledRejectionsbooleantrueCapture unhandled promise rejections
monitorMemorybooleantrueMonitor memory usage and emit warnings
memoryThresholdMBnumber512Memory threshold in MB before warning
memoryCheckIntervalMsnumber30000How often to check memory (ms)
beforeSendfunctionundefinedCallback to modify or drop events before sending

Express Integration

import express from "express";
import { init, expressRequestHandler, expressErrorHandler } from "@errpulse/node";

init({ serverUrl: "http://localhost:3800", projectId: "my-api" });

const app = express();
app.use(expressRequestHandler()); // Track all requests — must be first
// ... your routes ...
app.use(expressErrorHandler()); // Catch route errors — must be last

The request handler captures:

  • HTTP method, URL, status code, and response duration
  • Correlation ID (from X-ErrPulse-Correlation-ID header, or auto-generated)
  • Request and response headers (sensitive headers redacted)
  • Request and response bodies (capped at 16 KB)

Next.js Integration

import { withErrPulse } from "@errpulse/node";

export const GET = withErrPulse(async (req) => {
  const data = await db.query();
  return Response.json({ data });
});

Manual Capture

import { captureError, captureMessage } from "@errpulse/node";

captureError(new Error("Payment failed"), { userId: "123" });
captureMessage("Deployment started", "info", { version: "2.0" });

Graceful Shutdown

import { close } from "@errpulse/node";

process.on("SIGTERM", () => {
  close(); // Flushes buffered events and removes all listeners
  process.exit(0);
});

Error Correlation

When paired with @errpulse/react, the backend SDK reads the X-ErrPulse-Correlation-ID header injected by the frontend. The dashboard shows the full chain: user action -> frontend request -> backend error.

Documentation

License

MIT

Keywords

error-monitoring

FAQs

Package last updated on 11 Apr 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts