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
8
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.4.0
Version published
Maintainers
1
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.

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 — add first
// ... your routes ...
app.use(expressErrorHandler()); // Catch route errors — add last

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" });

What Gets Caught

Error TypeHow
Uncaught exceptionsprocess.on('uncaughtException')
Unhandled promise rejectionsprocess.on('unhandledRejection')
Express route errorsError handler middleware
Next.js API route errorswithErrPulse() wrapper
console.error callsMonkey-patch
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,
  captureUncaughtExceptions: true,
  captureUnhandledRejections: true,
  monitorMemory: true,
  memoryThresholdMB: 512,
  beforeSend: (event) => event, // Modify or drop events
});

Documentation

License

MIT

Keywords

error-monitoring

FAQs

Package last updated on 29 Mar 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