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

breachr

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

breachr

Official Breachr SDK for tracking API performance metrics.

latest
npmnpm
Version
0.0.1-alpha.1
Version published
Maintainers
1
Created
Source

Breachr Node.js SDK

The official Breachr SDK for sending API performance telemetry to the Breachr ingestion API.

Installation

npm install breachr
# or
yarn add breachr
# or
pnpm add breachr

Quick Start

import { Breachr } from "breachr";

const client = new Breachr({
  apiKey: process.env.BREACHR_API_KEY!,
});

await client.trackApiPerformance({
  serviceName: "billing",
  endpoint: "/v1/invoices",
  method: "POST",
  statusCode: 201,
  latencyMs: 248,
  environment: "prod",
  region: "eu-west-1",
  metadata: {
    provider: "stripe",
  },
});

Configuration

OptionTypeDefaultDescription
apiKeystringrequiredBreachr API key.
baseUrlstringhttps://api.breachr.comOverride for self-hosted or staging targets.
timeoutMsnumber3000Request timeout in milliseconds.
maxRetriesnumber3Maximum retry attempts for retryable errors.
debugbooleanfalseEnables verbose console debug output.

Event Fields

FieldTypeRequiredNotes
serviceNamestringLogical service or application name.
endpointstringEndpoint path or identifier (e.g. /v1/invoices).
methodstring (HTTP verb)Automatically normalised to uppercase.
statusCodenumberHTTP response status code (100-599).
latencyMsnumberRequest latency in milliseconds.
environmentstringe.g. dev, staging, prod.
regionstringGeographic region (e.g. us-east-1).
requestIdstringRequest trace identifier.
metadataRecord<string, string/number/boolean/null>Additional context. Sensitive keys are redacted automatically.
timestampstring | DateDefaults to current time when omitted.

User, organization and account identifiers are inferred server-side from the API key and must not be supplied.

License

MIT © Breachr

Keywords

breachr

FAQs

Package last updated on 08 Nov 2025

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