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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@loadmill/agent

v0.1.181

Published

Loadmill agent library

Readme

Loadmill Agent

Users of Loadmill can use @loadmill/agent to run API and Load tests locally or on their servers.

Setup

In order to use the Loadmill Agent you will need to generate an API Token.

Installation

Using npm:

npm i @loadmill/agent -g

Using yarn:

yarn add @loadmill/agent -g

API

CLI

Start an agent:

loadmill-agent start -t INSERT_TOKEN_HERE

The start command accepts the following options:

  • --token - (REQUIRED). can be retrieved through the UI, see above.
  • --loads-capacity - (default = 50). Optionally you can supply the number of users this agent can simulate. can be 0 in order to not run load tests.
  • --no-api - Can be supplied in order to prevent the agent from running API tests.
  • --pool - Can be supplied in order to set the agent pool.
  • --team-agent - Allow other members of your team to run tests on this agent.
  • --config - Alternatively, you can supply a path to a yaml file that will contain all the options above.

Parameters

You may set loadmill parameter values that will override any value in any run for the desired parameters.

You can set these parameters via command line arguments by passing name=value pairs:

loadmill-agent start -t INSERT_TOKEN_HERE host=test.myapp.com port=4443

Sensitive Data

When testing with sensitive dynamic data supply LOADMILL_AGENT_SENSITIVE_DATA=true environment variable. By doing so Loadmill will redact:

  • Request body
  • Response body
  • Parameters values

Extended Example

loadmill-agent start -t INSERT_TOKEN_HERE --no-api --loads-capacity 80

loadmill-agent start -t INSERT_TOKEN_HERE --pool myPoolId

loadmill-agent start --config /path/to/config.yml

Working with insecure certificates

In case you are testing a system that uses https but has a self-signed or invalid SSL certificate, you need to set env var - NODE_TLS_REJECT_UNAUTHORIZED=0 at the beginning of the start command to run your tests via the Loadmill Agent. It should look like this: NODE_TLS_REJECT_UNAUTHORIZED=0 loadmill-agent start -t INSERT_TOKEN_HERE IMPORTANT: The Loadmill agent won’t be able to verify that it is talking to the right website in this case.

Programmatically

Start the agent:

const {start} = require('@loadmill/agent');
const stop = start({
  token: 'INSERT_TOKEN_HERE',
  // loadsCapacity: 80,
  // api: false
});

// Stop the agent at a later time

Learn More