New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

@fixify/agent

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fixify/agent

Fixify performance profiling agent for Node.js

latest
Source
npmnpm
Version
1.3.0
Version published
Weekly downloads
9
28.57%
Maintainers
1
Weekly downloads
 
Created
Source

@fixify/agent

Lightweight Node.js performance monitoring agent for Fixify.

npm version License: MIT Node.js

Drop two lines into your Node.js application and start seeing CPU, memory, event loop, HTTP, and GC metrics in real-time on your Fixify dashboard.

Installation

npm install @fixify/agent
# or
pnpm add @fixify/agent

Quick Start

import { init } from '@fixify/agent';

init({
  apiKey: 'your-api-key',
  serverUrl: 'https://api.fixiry.io',
});

Get your API key at fixiry.io — free account, no credit card needed.

Full Options

import { init, stop } from '@fixify/agent';

const agent = init({
  apiKey: 'your-api-key',
  serverUrl: 'https://api.fixiry.io',
  collectInterval: 5000,
  traceEnabled: true,
  logEnabled: true,
  slowThreshold: 200,
  profilingEnabled: false,
  profileDuration: 5000,
  profileCooldown: 60000,
});

// Graceful shutdown
process.on('SIGTERM', () => {
  stop();
  process.exit(0);
});

Options Reference

OptionTypeDefaultDescription
apiKeystringrequiredProject API key from your Fixify dashboard
serverUrlstringrequiredFixify server URL (https://api.fixiry.io for cloud)
collectIntervalnumber5000How often to push metrics, in milliseconds
traceEnabledbooleantrueCapture individual HTTP request traces
logEnabledbooleantrueIntercept and stream console.* output
slowThresholdnumber200Mark requests slower than this many ms as slow
profilingEnabledbooleanfalseEnable V8 CPU profiling for flame graphs
profileDurationnumber5000How long each CPU profile capture runs (ms)
profileCooldownnumber60000Minimum gap between profile captures (ms)

What Gets Collected

CollectorData
CPUUsage percentage, core count, load average
MemoryHeap used/total, RSS, external, array buffers
Event LoopLag mean, p50, p99 percentiles
HTTPRequest count, durations, status codes, throughput
ErrorsUncaught exceptions, unhandled promise rejections with stack traces
ProcessPID, uptime, Node.js version, platform
TracesPer-request method, URL, status code, duration, slow flag
Logsconsole.log/info/warn/error/debug with level tagging
GCPause counts, durations, major/minor breakdown
HeapV8 heap space-by-space breakdown
DependenciesOutgoing HTTP calls grouped by hostname
CPU ProfilesV8 CPU samples for flame graph visualization (opt-in)

Self-Hosted

Running your own Fixify server? Point serverUrl at your instance:

init({
  apiKey: 'your-api-key',
  serverUrl: 'http://your-server:4000',
});

See the Fixify monorepo for self-hosting instructions.

Compatibility

  • Node.js >= 18
  • ESM only ("type": "module" or .mjs extension)
  • Works with Express, Fastify, Koa, raw http, and any Node.js HTTP server

CommonJS Usage

The agent is ESM-only. If your project uses CommonJS, use dynamic import:

const { init } = await import('@fixify/agent');
init({ apiKey: '...', serverUrl: '...' });

License

MIT — see LICENSE

Keywords

nodejs

FAQs

Package last updated on 02 Mar 2026

Related posts