npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@reaatech/mcp-load-test-profiles

v0.1.0

Published

Load profile generators (ramp, soak, spike, custom) for MCP load testing

Readme

@reaatech/mcp-load-test-profiles

npm version License: MIT CI

Status: Pre-1.0 — APIs may change in minor versions. Pin to a specific version in production.

Async generator-based concurrency profile generators for MCP load testing. Produces { concurrency, phase } tuples at 1-second intervals to feed the engine's session pool.

Installation

npm install @reaatech/mcp-load-test-profiles
# or
pnpm add @reaatech/mcp-load-test-profiles

Feature Overview

  • Four profile types — ramp, soak, spike, and custom (arbitrary curve)
  • Phase tracking — each yield includes a phase label (warmup, ramp_up, hold, active, baseline, spike, cooldown) for metrics filtering
  • Linear interpolation — smooth concurrency transitions in ramp and custom profiles
  • Configurable warmup — optional warmup period where metrics are typically discarded
  • 1-second resolution — generators yield at roughly 1-second intervals for engine feedback loops

Quick Start

import { rampProfileGenerator } from "@reaatech/mcp-load-test-profiles";

const generator = rampProfileGenerator({
  type: "ramp",
  minConcurrency: 1,
  maxConcurrency: 50,
  rampDurationMs: 30000,      // 30 seconds to reach 50
  holdDurationMs: 10000,      // 10 seconds at peak
  rampDownDurationMs: 5000,   // 5 seconds back to 1
  warmupDurationMs: 5000,     // 5 seconds of warmup at min
});

for await (const { concurrency, phase } of generator) {
  // Adjust session pool to `concurrency`
  // Filter metrics based on `phase`
  console.log(`${phase}: ${concurrency} sessions`);
}

API Reference

rampProfileGenerator(profile: RampProfile)

Gradually increases concurrency from min to max, holds, then optionally ramps down.

Phases: warmupramp_upholdramp_down

interface RampProfile {
  type: "ramp";
  minConcurrency: number;
  maxConcurrency: number;
  rampDurationMs: number;
  holdDurationMs: number;
  rampDownDurationMs?: number;
  warmupDurationMs?: number;
}

soakProfileGenerator(profile: SoakProfile)

Sustained constant-concurrency load to detect memory leaks and long-term degradation.

Phases: warmupactivecooldown

interface SoakProfile {
  type: "soak";
  concurrency: number;
  durationMs: number;
  warmupDurationMs?: number;
  sampleIntervalMs: number;
}

spikeProfileGenerator(profile: SpikeProfile)

Alternating baseline/spike cycles to test resilience against sudden bursts.

Phases: baselinespikebaselinespike → ... → cooldown

interface SpikeProfile {
  type: "spike";
  baselineConcurrency: number;
  spikeConcurrency: number;
  spikeDurationMs: number;
  spikeCount: number;
  cooldownMs: number;
}

customProfileGenerator(profile: CustomProfile)

Arbitrary concurrency curve with linear interpolation between user-defined points.

Phases: warmupactive

interface CustomProfile {
  type: "custom";
  concurrencyCurve: Array<{ timeMs: number; concurrency: number }>;
  warmupDurationMs?: number;
}

Usage Patterns

Custom Concurrency Curve

import { customProfileGenerator } from "@reaatech/mcp-load-test-profiles";

const generator = customProfileGenerator({
  type: "custom",
  concurrencyCurve: [
    { timeMs: 0,     concurrency: 1 },
    { timeMs: 10000, concurrency: 25 },
    { timeMs: 20000, concurrency: 50 },
    { timeMs: 30000, concurrency: 10 }, // sudden drop
    { timeMs: 40000, concurrency: 100 }, // spike
  ],
});

for await (const { concurrency } of generator) {
  console.log(concurrency);
  // 1, 3, 5, ..., 25, 28, ..., 50, 42, ..., 10, 19, ..., 100
}

Filtering Metrics by Phase

for await (const { concurrency, phase } of rampProfileGenerator(profile)) {
  if (phase === "warmup") {
    // Don't record metrics — server is still scaling up
  } else {
    // Record metrics normally
  }
}

Related Packages

License

MIT